Passed
Push — master ( 420524...d9222d )
by Paweł
02:51
created
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/base/BaseMultiDiff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $toModels = $this->findDataModels($toStatsIds);
24 24
 
25 25
         // jesli znaleziona ostatnia data 'do' jest wczesniejsza niz od, to nie pomijaj modelu
26
-        $ignoredModels = array_filter($toModels, function ($toModel) use ($dbFrom) {
26
+        $ignoredModels = array_filter($toModels, function($toModel) use ($dbFrom) {
27 27
             if (strtotime($toModel['created_at']) > strtotime($dbFrom)) {
28 28
                 return true;
29 29
             }
Please login to merge, or discard this patch.
components/stats/diffs/MultiAccountsDiff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     protected function findDataModels(array $statsIds)
66 66
     {
67
-        $columns = array_map(function ($attr) {
67
+        $columns = array_map(function($attr) {
68 68
             return "account_stats.{$attr}";
69 69
         }, $this->statsAttributes);
70 70
         $columns[] = 'id';
Please login to merge, or discard this patch.
components/stats/diffs/MultipleTagsDiff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
     protected function findDataModels(array $statsIds)
63 63
     {
64
-        $columns = array_map(function ($attr) {
64
+        $columns = array_map(function($attr) {
65 65
             return "tag_stats.{$attr}";
66 66
         }, $this->statsAttributes);
67 67
         $columns[] = 'id';
Please login to merge, or discard this patch.
modules/admin/views/account/_tools-header.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
             <?php endif; ?>
57 57
 
58 58
             <?php if (isset($routes['download'])): ?>
59
-                <?= Html::a('<span class="fa fa-download"></span>', ArrayHelper::merge(Yii::$app->request->get(), (array)$routes['download'], ['id' => $model->id]), [
59
+                <?= Html::a('<span class="fa fa-download"></span>', ArrayHelper::merge(Yii::$app->request->get(), (array) $routes['download'], ['id' => $model->id]), [
60 60
                     'class' => 'btn btn-default',
61 61
                 ]) ?>
62 62
             <?php endif; ?>
Please login to merge, or discard this patch.
modules/admin/views/account/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
                                 'pluginOptions' => [
41 41
                                     'allowClear' => true,
42 42
                                 ],
43
-                                'data' => ArrayHelper::map($proxies, 'id', function (Proxy $proxy) {
43
+                                'data' => ArrayHelper::map($proxies, 'id', function(Proxy $proxy) {
44 44
                                     return "{$proxy->ip}:{$proxy->port}";
45 45
                                 }),
46 46
                             ]) ?>
Please login to merge, or discard this patch.