Clean code
This commit is contained in:
parent
aa9f6f562e
commit
6c3ddc15f2
@ -1417,7 +1417,7 @@ class DolGraph
|
|||||||
|
|
||||||
//var_dump($iinstack);
|
//var_dump($iinstack);
|
||||||
if ($iinstack) {
|
if ($iinstack) {
|
||||||
// Change color with offset of $$iinstack
|
// Change color with offset of $iinstack
|
||||||
//var_dump($newcolor);
|
//var_dump($newcolor);
|
||||||
if ($iinstack % 2) { // We increase agressiveness of reference color for color 2, 4, 6, ...
|
if ($iinstack % 2) { // We increase agressiveness of reference color for color 2, 4, 6, ...
|
||||||
$ratio = min(95, 10 + 10 * $iinstack); // step of 20
|
$ratio = min(95, 10 + 10 * $iinstack); // step of 20
|
||||||
|
|||||||
@ -366,7 +366,7 @@ class Mos extends DolibarrApi
|
|||||||
$pos = 0;
|
$pos = 0;
|
||||||
$arrayofarrayname = array("arraytoconsume","arraytoproduce");
|
$arrayofarrayname = array("arraytoconsume","arraytoproduce");
|
||||||
foreach ($arrayofarrayname as $arrayname) {
|
foreach ($arrayofarrayname as $arrayname) {
|
||||||
foreach ($$arrayname as $value) {
|
foreach ($arrayname as $value) {
|
||||||
$tmpproduct = new Product($this->db);
|
$tmpproduct = new Product($this->db);
|
||||||
if (empty($value["objectid"])) {
|
if (empty($value["objectid"])) {
|
||||||
throw new RestException(500, "Field objectid required in ".$arrayname);
|
throw new RestException(500, "Field objectid required in ".$arrayname);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user