Completed
Push — master ( 8e4a64...521cc3 )
by Paweł
04:47
created
config/container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 return [
4 4
     'definitions' => [
5 5
         \yii\behaviors\TimestampBehavior::class => [
6
-            'value' => function () {
6
+            'value' => function() {
7 7
                 return (new DateTime('now', new DateTimeZone('UTC')))->format('Y-m-d H:i:s');
8 8
             },
9 9
         ],
Please login to merge, or discard this patch.
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/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/widgets/CreateMonitoringModal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     {
67 67
         static::$proxies = static::$proxies ?? Proxy::find()->joinWith('tags')->active()->all();
68 68
 
69
-        return ArrayHelper::map(static::$proxies, 'id', function (Proxy $model) {
69
+        return ArrayHelper::map(static::$proxies, 'id', function(Proxy $model) {
70 70
             $tags = ArrayHelper::getColumn($model->tags, 'name');
71 71
 
72 72
             return $model->ip . ($tags ? ' # ' . implode(',', $tags) : '');
Please login to merge, or discard this patch.
config/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 'yii\queue\db\migrations',
63 63
             ],
64 64
         ],
65
-        'fixture' => [ // Fixture generation command line.
65
+        'fixture' => [// Fixture generation command line.
66 66
             'class' => \yii\faker\FixtureController::class,
67 67
             'templatePath' => 'tests/fixtures/templates',
68 68
             'fixtureDataPath' => 'tests/fixtures/data',
Please login to merge, or discard this patch.
config/test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$webConfig = require __DIR__.'/web.php';
3
+$webConfig = require __DIR__ . '/web.php';
4 4
 
5 5
 $db = require __DIR__ . '/test_db.php';
6 6
 
Please login to merge, or discard this patch.
modules/admin/views/monitoring/accounts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 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
                         $html = [];
35 35
                         $html[] = Html::a($model->displayName, ['account/dashboard', 'id' => $model->id]);
36 36
                         $html[] = Html::a('<span class="fa fa-external-link text-sm"></span>', Url::account($model->username), ['target' => '_blank']);
Please login to merge, or discard this patch.
components/AccountManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $this->saveUsernames($usernames);
64 64
 
65 65
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
66
-        $rows = array_map(function ($id) use ($media, $createdAt) {
66
+        $rows = array_map(function($id) use ($media, $createdAt) {
67 67
             return [
68 68
                 $media->id,
69 69
                 $id,
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function saveUsernames(array $usernames)
88 88
     {
89 89
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
90
-        $rows = array_map(function ($username) use ($createdAt) {
90
+        $rows = array_map(function($username) use ($createdAt) {
91 91
             return [
92 92
                 $username,
93 93
                 $createdAt,
Please login to merge, or discard this patch.
components/TagManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $this->saveTags($tags);
43 43
 
44 44
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
45
-        $rows = array_map(function ($id) use ($media, $createdAt) {
45
+        $rows = array_map(function($id) use ($media, $createdAt) {
46 46
             return [
47 47
                 $media->id,
48 48
                 $id,
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $userIds = $this->getUserIds($userId);
91 91
         $tagIds = $this->getTagIds($tags);
92 92
         foreach ($userIds as $userId) {
93
-            $tmp = array_map(function ($tagId) use ($account, $userId, $createdAt) {
93
+            $tmp = array_map(function($tagId) use ($account, $userId, $createdAt) {
94 94
                 return [
95 95
                     $account->id,
96 96
                     $tagId,
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     public function saveTags(array $tags)
116 116
     {
117 117
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
118
-        $rows = array_map(function ($tag) use ($createdAt) {
118
+        $rows = array_map(function($tag) use ($createdAt) {
119 119
             return [
120 120
                 $tag,
121 121
                 Inflector::slug($tag),
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 ->andWhere(['active' => 1])
161 161
                 ->column();
162 162
         } else {
163
-            $userIds = (array)$userId;
163
+            $userIds = (array) $userId;
164 164
         }
165 165
 
166 166
         return $userIds;
Please login to merge, or discard this patch.