Passed
Push — master ( 7ba57e...634515 )
by Paweł
03:13
created
components/visualizations/dataproviders/AccountChangesDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     {
47 47
         $formatter = Yii::$app->formatter;
48 48
 
49
-        return array_map(function ($label) use ($formatter) {
49
+        return array_map(function($label) use ($formatter) {
50 50
             return $formatter->format($label, $this->labelFormat);
51 51
         }, $this->getKeys());
52 52
     }
Please login to merge, or discard this patch.
components/visualizations/dataproviders/AccountTrendsDataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $formatter = Yii::$app->formatter;
59 59
 
60
-        return array_map(function ($label) use ($formatter) {
60
+        return array_map(function($label) use ($formatter) {
61 61
             return $formatter->format($label, $this->labelFormat);
62 62
         }, $this->getKeys());
63 63
     }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
             $data = ArrayHelper::getColumn($this->getModels(), $attribute);
73 73
             if ($attribute == 'er') {
74
-                $data = array_map(function ($item) {
74
+                $data = array_map(function($item) {
75 75
                     return number_format($item * 100, 2);
76 76
                 }, $data);
77 77
             }
Please login to merge, or discard this patch.
components/stats/providers/AccountDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
      */
135 135
     protected function findDataModels($ids)
136 136
     {
137
-        $columns = array_map(function ($attr) {
137
+        $columns = array_map(function($attr) {
138 138
             return "account_stats.{$attr}";
139 139
         }, $this->statsAttributes);
140 140
         $columns[] = new Expression('DATE(created_at) as created_at');
Please login to merge, or discard this patch.
components/stats/diffs/AccountDiff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 
57 57
     protected function findDataModel(string $date, $ignoredStatsId = null)
58 58
     {
59
-        $columns = array_map(function ($attr) {
59
+        $columns = array_map(function($attr) {
60 60
             return "account_stats.{$attr}";
61 61
         }, $this->statsAttributes);
62 62
         $columns[] = 'id';
Please login to merge, or discard this patch.
components/stats/diffs/MultiAccountsDiff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $toModels = $this->findDataModels($toStatsIds);
61 61
 
62 62
         // jesli znaleziona ostatnia data 'do' jest wczesniejsza niz od, to nie pomijaj modelu
63
-        $ignoredModels = array_filter($toModels, function ($toModel) use ($dbFrom) {
63
+        $ignoredModels = array_filter($toModels, function($toModel) use ($dbFrom) {
64 64
             if (strtotime($toModel['created_at']) > strtotime($dbFrom)) {
65 65
                 return true;
66 66
             }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     protected function findDataModels(array $statsIds)
97 97
     {
98
-        $columns = array_map(function ($attr) {
98
+        $columns = array_map(function($attr) {
99 99
             return "account_stats.{$attr}";
100 100
         }, $this->statsAttributes);
101 101
         $columns[] = 'id';
Please login to merge, or discard this patch.
components/stats/diffs/MultipleTagsDiff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $toModels = $this->findDataModels($toStatsIds);
58 58
 
59 59
         // jesli znaleziona ostatnia data 'do' jest wczesniejsza niz od, to nie pomijaj modelu
60
-        $ignoredModels = array_filter($toModels, function ($toModel) use ($dbFrom) {
60
+        $ignoredModels = array_filter($toModels, function($toModel) use ($dbFrom) {
61 61
             if (strtotime($toModel['created_at']) > strtotime($dbFrom)) {
62 62
                 return true;
63 63
             }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     protected function findDataModels(array $statsIds)
94 94
     {
95
-        $columns = array_map(function ($attr) {
95
+        $columns = array_map(function($attr) {
96 96
             return "tag_stats.{$attr}";
97 97
         }, $this->statsAttributes);
98 98
         $columns[] = 'id';
Please login to merge, or discard this patch.