@@ -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 | ]) ?> |
@@ -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 | ]) ?> |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | public function setIdents(Account $account) |
42 | 42 | { |
43 | 43 | $this->account->username = $account->username; |
44 | - $this->account->instagram_id = (string)$account->id; |
|
44 | + $this->account->instagram_id = (string) $account->id; |
|
45 | 45 | |
46 | 46 | return $this; |
47 | 47 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | public function setIsInvalid(?int $invalidationType = null) |
85 | 85 | { |
86 | 86 | $this->account->is_valid = 0; |
87 | - $this->account->invalidation_count = (int)$this->account->invalidation_count + 1; |
|
87 | + $this->account->invalidation_count = (int) $this->account->invalidation_count + 1; |
|
88 | 88 | $this->account->invalidation_type_id = $invalidationType; |
89 | 89 | |
90 | 90 | return $this; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | public function setIsInvalidUnknown(string $message = null) |
94 | 94 | { |
95 | 95 | $this->account->is_valid = 0; |
96 | - $this->account->invalidation_count = (int)$this->account->invalidation_count + 1; |
|
96 | + $this->account->invalidation_count = (int) $this->account->invalidation_count + 1; |
|
97 | 97 | $this->account->last_invalidation_unknown = $message; |
98 | 98 | |
99 | 99 | return $this; |