@@ -774,7 +774,7 @@ discard block |
||
774 | 774 | $colors = \App\Fields\Picklist::getColors($fieldName); |
775 | 775 | $this->colorsFrom = 'picklist'; |
776 | 776 | $this->colorsFromRow = 'picklist_id'; |
777 | - $this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) use ($colors) { |
|
777 | + $this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) use ($colors) { |
|
778 | 778 | if (isset($colors[$row['picklist_id']])) { |
779 | 779 | $this->colors[$row['picklist_id']] = $colors[$row['picklist_id']]; |
780 | 780 | } |
@@ -789,7 +789,7 @@ discard block |
||
789 | 789 | $this->colorsFrom = 'filters'; |
790 | 790 | $this->colorsFromRow = 'color'; |
791 | 791 | $colors = \App\Colors::getAllFilterColors(); |
792 | - $this->iterateAllRows(function (&$row, $groupValue, $dividingValue, $rowIndex) use ($colors) { |
|
792 | + $this->iterateAllRows(function(&$row, $groupValue, $dividingValue, $rowIndex) use ($colors) { |
|
793 | 793 | $this->colors[$dividingValue] = $colors[$this->filterIds[$dividingValue]] ?? null; |
794 | 794 | }); |
795 | 795 | } |
@@ -801,7 +801,7 @@ discard block |
||
801 | 801 | { |
802 | 802 | $this->colorsFrom = 'assigned_user_id'; |
803 | 803 | $this->colorsFromRow = 'assigned_user_id'; |
804 | - $this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) { |
|
804 | + $this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) { |
|
805 | 805 | $this->colors[$row['assigned_user_id']] = \App\Fields\Owner::getColor($row['assigned_user_id']); |
806 | 806 | }); |
807 | 807 | } |
@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | { |
814 | 814 | $this->colorsFrom = 'record_id'; |
815 | 815 | $this->colorsFromRow = 'id'; |
816 | - $this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) { |
|
816 | + $this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) { |
|
817 | 817 | $this->colors[$row['id']] = \App\Colors::getRandomColor('from_id_' . $row['id']); |
818 | 818 | }); |
819 | 819 | } |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | { |
826 | 826 | $this->colorsFrom = 'record_number'; |
827 | 827 | $this->colorsFromRow = 'record_number'; |
828 | - $this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) { |
|
828 | + $this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) { |
|
829 | 829 | $this->colors[$groupValue] = \App\Colors::getRandomColor('generated_' . $groupValue); |
830 | 830 | }); |
831 | 831 | } |
@@ -1066,7 +1066,7 @@ discard block |
||
1066 | 1066 | $firstReturnValueForSort = 1; |
1067 | 1067 | $secondReturnValueForSort = -1; |
1068 | 1068 | } |
1069 | - uksort($dataForSort, function ($a, $b) use ($dataForSort, $firstReturnValueForSort, $secondReturnValueForSort) { |
|
1069 | + uksort($dataForSort, function($a, $b) use ($dataForSort, $firstReturnValueForSort, $secondReturnValueForSort) { |
|
1070 | 1070 | if ($dataForSort[$a]['avg'] === $dataForSort[$b]['avg']) { |
1071 | 1071 | return 0; |
1072 | 1072 | } |
@@ -1169,7 +1169,7 @@ discard block |
||
1169 | 1169 | $this->calculateAverage(); |
1170 | 1170 | $this->normalizeData(); |
1171 | 1171 | $this->setColorsFrom($this->findOutColorsFromRows()); |
1172 | - $this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) { |
|
1172 | + $this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) { |
|
1173 | 1173 | $this->setColorFromRow($row, $groupValue, $dividingValue); |
1174 | 1174 | }); |
1175 | 1175 | return $this->data; |
@@ -1289,7 +1289,7 @@ discard block |
||
1289 | 1289 | } elseif ('date' === $fieldDataType) { |
1290 | 1290 | $value = App\Fields\Date::formatToDisplay($value); |
1291 | 1291 | } elseif ('datetime' === $fieldDataType) { |
1292 | - $value =App\Fields\DateTime::formatToDisplay($value); |
|
1292 | + $value = App\Fields\DateTime::formatToDisplay($value); |
|
1293 | 1293 | } |
1294 | 1294 | return [$fieldModel->getName(), $operator, $value, $lockField]; |
1295 | 1295 | } |