Completed
Push — master ( 444e05...1ae730 )
by Paweł
14s queued 12s
created
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/controllers/MonitoringController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
components/builders/TagBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
components/builders/AccountBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
components/http/ProxyManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.