@@ -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; ?> |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | $job = JobFactory::updateAccount($account); |
| 143 | 143 | $queue->push($job); |
| 144 | 144 | |
| 145 | - $categories = array_filter((array)$form->categories); |
|
| 145 | + $categories = array_filter((array) $form->categories); |
|
| 146 | 146 | if ($categories) { |
| 147 | 147 | /** @var \app\models\User $identity */ |
| 148 | 148 | $identity = Yii::$app->user->identity; |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | public function setIsInvalid(?int $invalidationType = null) |
| 55 | 55 | { |
| 56 | 56 | $this->tag->is_valid = 0; |
| 57 | - $this->tag->invalidation_count = (int)$this->tag->invalidation_count + 1; |
|
| 57 | + $this->tag->invalidation_count = (int) $this->tag->invalidation_count + 1; |
|
| 58 | 58 | $this->tag->invalidation_type_id = $invalidationType; |
| 59 | 59 | |
| 60 | 60 | return $this; |
@@ -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; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | 'and', |
| 39 | 39 | ['active' => 1], |
| 40 | 40 | ['reservation_uid' => null], |
| 41 | - ['<=', 'updated_at', new Expression(sprintf('DATE_ADD(NOW(), INTERVAL %s SECOND)', (int)$this->restTime))], |
|
| 41 | + ['<=', 'updated_at', new Expression(sprintf('DATE_ADD(NOW(), INTERVAL %s SECOND)', (int) $this->restTime))], |
|
| 42 | 42 | ]; |
| 43 | 43 | |
| 44 | 44 | $columns = [ |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | if ($rest === true) { |
| 83 | 83 | Yii::debug(sprintf("REST: %s\n", "{$proxy->ip}:{$proxy->port}"), __METHOD__); |
| 84 | 84 | $attributes['rests'] = new Expression('rests+1'); |
| 85 | - $attributes['rest_until'] = new Expression(sprintf('DATE_ADD(NOW(), INTERVAL rests+%s HOUR)', (int)$this->blockRestTime)); |
|
| 85 | + $attributes['rest_until'] = new Expression(sprintf('DATE_ADD(NOW(), INTERVAL rests+%s HOUR)', (int) $this->blockRestTime)); |
|
| 86 | 86 | } elseif ($rest === false) { |
| 87 | 87 | $attributes['rests'] = 0; |
| 88 | 88 | $attributes['rest_until'] = null; |