Passed
Push — master ( 8cf58c...3a8f57 )
by Paweł
02:46
created
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;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $this->saveUsernames($usernames);
106 106
 
107 107
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
108
-        $rows = array_map(function ($id) use ($media, $createdAt) {
108
+        $rows = array_map(function($id) use ($media, $createdAt) {
109 109
             return [
110 110
                 $media->id,
111 111
                 $id,
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     public function saveUsernames(array $usernames)
130 130
     {
131 131
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
132
-        $rows = array_map(function ($username) use ($createdAt) {
132
+        $rows = array_map(function($username) use ($createdAt) {
133 133
             return [
134 134
                 $username,
135 135
                 $createdAt,
Please login to merge, or discard this patch.
modules/admin/views/auth/login.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 ]) ?>
19 19
 <?php foreach ($authAuthChoice->getClients() as $client): ?>
20 20
     <div class="form-group">
21
-        <?= Html::a("<span class='fa fa-$client->name'></span> Sign in with " . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(),], ['class' => "btn btn-block btn-social btn-$client->name "]) ?>
21
+        <?= Html::a("<span class='fa fa-$client->name'></span> Sign in with " . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(), ], ['class' => "btn btn-block btn-social btn-$client->name "]) ?>
22 22
     </div>
23 23
 <?php endforeach; ?>
24 24
 <?php AuthChoice::end() ?>
25 25
\ No newline at end of file
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
@@ -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.