@@ -134,7 +134,7 @@ |
||
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'); |
@@ -56,7 +56,7 @@ |
||
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'; |
@@ -23,7 +23,7 @@ |
||
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 | } |
@@ -64,7 +64,7 @@ |
||
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'; |
@@ -61,7 +61,7 @@ |
||
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'; |
@@ -56,7 +56,7 @@ |
||
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; ?> |
@@ -40,7 +40,7 @@ |
||
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 | ]) ?> |