Passed
Push — master ( 6a407f...8709de )
by Paweł
05:04
created
modules/admin/controllers/MonitoringController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
                     $job = JobFactory::createAccountUpdate($account);
123 123
                     $queue->push($job);
124 124
 
125
-                    $tags = array_filter((array)$form->tags);
125
+                    $tags = array_filter((array) $form->tags);
126 126
                     if ($tags) {
127 127
                         $tagManager = \Yii::createObject(TagManager::class);
128 128
                         $tagManager->saveForAccount($account, $tags, \Yii::$app->user->id);
Please login to merge, or discard this patch.
components/AccountUpdater.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function details(Account $account): \app\models\Account
37 37
     {
38 38
         $this->account->username = $account->username;
39
-        $this->account->instagram_id = (string)$account->id;
39
+        $this->account->instagram_id = (string) $account->id;
40 40
         $this->account->profile_pic_url = $account->profilePicUrl;
41 41
         $this->account->full_name = $account->fullName;
42 42
         $this->account->biography = $account->biography;
Please login to merge, or discard this patch.
modules/admin/views/monitoring/tags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
                     [
47 47
                         'attribute' => 'name',
48
-                        'content' => function (\app\models\Tag $model) {
48
+                        'content' => function(\app\models\Tag $model) {
49 49
                             $html = [];
50 50
                             $html[] = Html::a($model->namePrefixed, ['tag/stats', 'id' => $model->id]);
51 51
                             $html[] = Html::a('<span class="fa fa-external-link text-sm"></span>', Url::tag($model->name), ['target' => '_blank']);
Please login to merge, or discard this patch.
components/TagManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function updateInvalidation(Tag $tag, ?int $invalidationType)
45 45
     {
46
-        $tag->invalidation_count = (int)$tag->invalidation_count + 1;
46
+        $tag->invalidation_count = (int) $tag->invalidation_count + 1;
47 47
         $tag->is_valid = 0;
48 48
         $tag->invalidation_type_id = $invalidationType;
49 49
         $interval = 1;
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $this->saveTags($tags);
86 86
 
87
-        $rows = array_map(function ($id) use ($media) {
87
+        $rows = array_map(function($id) use ($media) {
88 88
             return [
89 89
                 $media->id,
90 90
                 $id,
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $userIds = $this->getUserIds($userId);
133 133
         $tagIds = $this->getTagIds($tags);
134 134
         foreach ($userIds as $userId) {
135
-            $tmp = array_map(function ($tagId) use ($account, $userId, $createdAt) {
135
+            $tmp = array_map(function($tagId) use ($account, $userId, $createdAt) {
136 136
                 return [
137 137
                     $account->id,
138 138
                     $tagId,
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     public function saveTags(array $tags)
158 158
     {
159 159
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
160
-        $rows = array_map(function ($tag) use ($createdAt) {
160
+        $rows = array_map(function($tag) use ($createdAt) {
161 161
             return [
162 162
                 $tag,
163 163
                 Inflector::slug($tag),
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
                 ->andWhere(['active' => 1])
203 203
                 ->column();
204 204
         } else {
205
-            $userIds = (array)$userId;
205
+            $userIds = (array) $userId;
206 206
         }
207 207
 
208 208
         return $userIds;
Please login to merge, or discard this patch.
components/AccountManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function updateInvalidation(Account $account, ?int $invalidationType)
38 38
     {
39
-        $account->invalidation_count = (int)$account->invalidation_count + 1;
39
+        $account->invalidation_count = (int) $account->invalidation_count + 1;
40 40
         $account->is_valid = 0;
41 41
         $account->invalidation_type_id = $invalidationType;
42 42
         $interval = 1;
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $this->saveUsernames($usernames);
106 106
 
107
-        $rows = array_map(function ($id) use ($media) {
107
+        $rows = array_map(function($id) use ($media) {
108 108
             return [
109 109
                 $media->id,
110 110
                 $id,
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     public function saveUsernames(array $usernames)
129 129
     {
130 130
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
131
-        $rows = array_map(function ($username) use ($createdAt) {
131
+        $rows = array_map(function($username) use ($createdAt) {
132 132
             return [
133 133
                 $username,
134 134
                 $createdAt,
Please login to merge, or discard this patch.