@@ -3,7 +3,7 @@ |
||
| 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 | ], |
@@ -122,7 +122,7 @@ discard block |
||
| 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 |
||
| 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'), |
@@ -62,7 +62,7 @@ |
||
| 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', |
@@ -1,6 +1,6 @@ |
||
| 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 | |