Completed
Push — master ( b93f48...f361ba )
by Paweł
03:49
created
commands/StatsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
     private function whereInterval($interval): Expression
139 139
     {
140 140
         return new Expression('DATE_FORMAT(created_at, \'%Y-%m-%d %H\') > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL :interval HOUR), \'%Y-%m-%d %H\')', [
141
-            'interval' => (int)$interval,
141
+            'interval' => (int) $interval,
142 142
         ]);
143 143
     }
144 144
 }
145 145
\ No newline at end of file
Please login to merge, or discard this patch.
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.
models/Account.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                     BaseActiveRecord::EVENT_BEFORE_UPDATE => ['uid'],
65 65
                 ],
66 66
                 'preserveNonEmptyValues' => true,
67
-                'value' => function () {
67
+                'value' => function() {
68 68
                     do {
69 69
                         $uid = Yii::$app->security->generateRandomString(64);
70 70
                         $uidExist = static::find()
Please login to merge, or discard this patch.
modules/admin/views/account/media-accounts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                             [
35 35
                                 'attribute' => 'username',
36 36
                                 'format' => 'raw',
37
-                                'value' => function (Account $model, $key, $index, $column) {
37
+                                'value' => function(Account $model, $key, $index, $column) {
38 38
                                     if ($model->monitoring) {
39 39
                                         $value = Html::a($model->usernamePrefixed, ['account/dashboard', 'id' => $model->id]);
40 40
                                     } else {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                             ],
47 47
                             [
48 48
                                 'label' => 'Er',
49
-                                'value' => function (Account $account) use ($formatter) {
49
+                                'value' => function(Account $account) use ($formatter) {
50 50
                                     if ($account->lastAccountStats) {
51 51
                                         $er = $account->lastAccountStats->er;
52 52
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                             'occurs',
60 60
                             [
61 61
                                 'format' => 'raw',
62
-                                'value' => function (Account $account) use ($model) {
62
+                                'value' => function(Account $account) use ($model) {
63 63
                                     return OnOffMonitoringButton::widget([
64 64
                                         'model' => $account,
65 65
                                         'form' => new AccountMonitoringForm([
Please login to merge, or discard this patch.
models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
                     BaseActiveRecord::EVENT_BEFORE_UPDATE => ['access_token'],
37 37
                 ],
38 38
                 'preserveNonEmptyValues' => true,
39
-                'value' => function () {
39
+                'value' => function() {
40 40
                     do {
41 41
                         $token = Yii::$app->security->generateRandomString(64);
42 42
                         $tokenExist = static::find()
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.