Passed
Push — master ( 87e014...9ccdad )
by Paweł
02:25
created
modules/admin/views/monitoring/accounts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 ['class' => \yii\grid\SerialColumn::class],
31 31
                 [
32 32
                     'attribute' => 'username',
33
-                    'content' => function (\app\models\Account $model) {
33
+                    'content' => function(\app\models\Account $model) {
34 34
                         return Html::a($model->usernamePrefixed, ['account/dashboard', 'id' => $model->id]) . ' '
35 35
                             . Html::a('<span class="fa fa-external-link text-sm"></span>', Url::account($model->username), ['target' => '_blank']);
36 36
                     },
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 ],
59 59
                 [
60 60
                     'attribute' => 's_tags',
61
-                    'value' => function (Account $model) {
61
+                    'value' => function(Account $model) {
62 62
                         $tags = $model->getTags()->select('tag.name')->column();
63 63
                         if ($tags) {
64 64
                             return implode(', ', $tags);
Please login to merge, or discard this patch.
modules/admin/widgets/TagsWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         foreach ($this->modelTags as $tag) {
121 121
             echo sprintf('<span class="label label-default">%s</span> ', Html::encode($tag->name));
122 122
         }
123
-        if (!$this->modelTags){
123
+        if (!$this->modelTags) {
124 124
             echo \Yii::$app->formatter->nullDisplay;
125 125
         }
126 126
         echo "</p>";
Please login to merge, or discard this patch.
modules/admin/widgets/FavoriteButton.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         echo Html::a(
24 24
             $this->isFavorite() ?
25
-                '<span class="fa fa-star-o text-yellow"></span> Remove from favorites' :
26
-                '<span class="fa fa-star text-yellow"></span> Add to favorites',
25
+                '<span class="fa fa-star-o text-yellow"></span> Remove from favorites' : '<span class="fa fa-star text-yellow"></span> Add to favorites',
27 26
             ['favorite', 'id' => $this->model->id],
28 27
             [
29 28
                 'class' => 'btn btn-block btn-default btn-sm',
Please login to merge, or discard this patch.
requirements.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         dirname(__FILE__) . '/vendor/yiisoft/yii2',
21 21
         dirname(__FILE__) . '/../vendor/yiisoft/yii2',
22 22
     ];
23
-    foreach($searchPaths as $path) {
23
+    foreach ($searchPaths as $path) {
24 24
         if (is_dir($path)) {
25 25
             $frameworkPath = $path;
26 26
             break;
Please login to merge, or discard this patch.
components/MediaManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
         }
60 60
 
61 61
         if ($media->caption) {
62
-            $tags = (array)Text::getTags($media->caption);
62
+            $tags = (array) Text::getTags($media->caption);
63 63
             $this->addTags($media, $tags);
64 64
 
65
-            $usernames = (array)Text::getUsernames($media->caption);
65
+            $usernames = (array) Text::getUsernames($media->caption);
66 66
             ArrayHelper::removeValue($usernames, $this->account->username);
67 67
             $this->addAccounts($media, $usernames);
68 68
         }
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
         $statsData = ArrayHelper::arrayMap($content, [
110 110
             'likes' => 'likes.count',
111 111
             'comments' => 'comments.count',
112
-            'account_followed_by' => function () {
112
+            'account_followed_by' => function() {
113 113
                 return $this->account->lastAccountStats->followed_by;
114 114
             },
115
-            'account_follows' => function () {
115
+            'account_follows' => function() {
116 116
                 return $this->account->lastAccountStats->follows;
117 117
             },
118 118
         ]);
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         $manager->saveUsernames($usernames);
139 139
 
140 140
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
141
-        $rows = array_map(function ($id) use ($media, $createdAt) {
141
+        $rows = array_map(function($id) use ($media, $createdAt) {
142 142
             return [
143 143
                 $media->id,
144 144
                 $id,
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $manager->saveTags($tags);
168 168
 
169 169
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
170
-        $rows = array_map(function ($id) use ($media, $createdAt) {
170
+        $rows = array_map(function($id) use ($media, $createdAt) {
171 171
             return [
172 172
                 $media->id,
173 173
                 $id,
Please login to merge, or discard this patch.