Passed
Push — master ( 8cf58c...3a8f57 )
by Paweł
02:46
created
modules/admin/views/monitoring/tags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
                 [
34 34
                     'attribute' => 'name',
35
-                    'content' => function (\app\models\Tag $model) {
35
+                    'content' => function(\app\models\Tag $model) {
36 36
                         $html = [];
37 37
                         $html[] = Html::a($model->namePrefixed, ['tag/stats', 'id' => $model->id]);
38 38
                         $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;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $this->saveTags($tags);
86 86
 
87 87
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
88
-        $rows = array_map(function ($id) use ($media, $createdAt) {
88
+        $rows = array_map(function($id) use ($media, $createdAt) {
89 89
             return [
90 90
                 $media->id,
91 91
                 $id,
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $userIds = $this->getUserIds($userId);
134 134
         $tagIds = $this->getTagIds($tags);
135 135
         foreach ($userIds as $userId) {
136
-            $tmp = array_map(function ($tagId) use ($account, $userId, $createdAt) {
136
+            $tmp = array_map(function($tagId) use ($account, $userId, $createdAt) {
137 137
                 return [
138 138
                     $account->id,
139 139
                     $tagId,
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     public function saveTags(array $tags)
159 159
     {
160 160
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
161
-        $rows = array_map(function ($tag) use ($createdAt) {
161
+        $rows = array_map(function($tag) use ($createdAt) {
162 162
             return [
163 163
                 $tag,
164 164
                 Inflector::slug($tag),
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                 ->andWhere(['active' => 1])
204 204
                 ->column();
205 205
         } else {
206
-            $userIds = (array)$userId;
206
+            $userIds = (array) $userId;
207 207
         }
208 208
 
209 209
         return $userIds;
Please login to merge, or discard this patch.