Passed
Branch master (a30b17)
by Paweł
09:34
created
Category
modules/admin/controllers/AccountController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                     'tag.*',
123 123
                     'count(tag.id) as occurs',
124 124
                 ])
125
-                ->innerJoinWith(['media' => function (Query $q) use ($model) {
125
+                ->innerJoinWith(['media' => function(Query $q) use ($model) {
126 126
                     $q->andWhere(['media.account_id' => $model->id]);
127 127
                 }])
128 128
                 ->groupBy('tag.id'),
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                     'account.*',
155 155
                     'count(account.id) as occurs',
156 156
                 ])
157
-                ->innerJoinWith(['mediaAccounts.media' => function (Query $q) use ($model) {
157
+                ->innerJoinWith(['mediaAccounts.media' => function(Query $q) use ($model) {
158 158
                     $q->andWhere(['media.account_id' => $model->id]);
159 159
                 }])
160 160
                 ->groupBy('account.id'),
Please login to merge, or discard this patch.
modules/admin/views/account/dashboard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
                                     [
167 167
                                         'label' => $model->lastAccountStats->getAttributeLabel('er'),
168 168
                                         'yAxisID' => 'er',
169
-                                        'data' => array_map(function ($item) {
169
+                                        'data' => array_map(function($item) {
170 170
                                             return number_format($item * 100, 2);
171 171
                                         }, ArrayHelper::getColumn($monthAccountStats, 'er')),
172 172
                                         'fill' => false,
Please login to merge, or discard this patch.
modules/admin/views/account/media-accounts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                             [
32 32
                                 'attribute' => 'username',
33 33
                                 'format' => 'raw',
34
-                                'value' => function (\app\models\Account $model, $key, $index, $column) {
34
+                                'value' => function(\app\models\Account $model, $key, $index, $column) {
35 35
                                     if ($model->monitoring) {
36 36
                                         $value = Html::a($model->usernamePrefixed, ['account/dashboard', 'id' => $model->id]);
37 37
                                     } else {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                             'occurs',
45 45
                             [
46 46
                                 'format' => 'raw',
47
-                                'value' => function (\app\models\Account $model) {
47
+                                'value' => function(\app\models\Account $model) {
48 48
                                     return \app\modules\admin\widgets\MonitoringButton::widget([
49 49
                                         'model' => $model,
50 50
                                         'linkCssClass' => 'btn btn-xs',
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
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
                 [
28 28
                     'attribute' => 'name',
29
-                    'content' => function (\app\models\Tag $model) {
29
+                    'content' => function(\app\models\Tag $model) {
30 30
                         return Html::a($model->namePrefixed, ['tag/stats', 'id' => $model->id]);
31 31
                     },
32 32
                 ],
Please login to merge, or discard this patch.
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.