@@ -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; |
@@ -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; |