Passed
Pull Request — master (#129)
by
unknown
04:25
created
components/stats/base/BaseMultiDiff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
components/stats/diffs/MultiAccountsDiff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
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/views/account/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
                             ]) ?>
Please login to merge, or discard this patch.
modules/admin/views/tag/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
                             ]) ?>
Please login to merge, or discard this patch.
components/updaters/AccountUpdater.php 1 patch
Spacing   +3 added lines, -3 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;
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
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;
Please login to merge, or discard this patch.