@@ -7,7 +7,7 @@ |
||
| 7 | 7 | return [ |
| 8 | 8 | 'definitions' => [ |
| 9 | 9 | TimestampBehavior::class => [ |
| 10 | - 'value' => function () { |
|
| 10 | + 'value' => function() { |
|
| 11 | 11 | return (new DateTime('now', new DateTimeZone('UTC')))->format('Y-m-d H:i:s'); |
| 12 | 12 | }, |
| 13 | 13 | ], |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | use yii\helpers\ArrayHelper; |
| 4 | 4 | |
| 5 | -$webConfig = require __DIR__.'/web.php'; |
|
| 5 | +$webConfig = require __DIR__ . '/web.php'; |
|
| 6 | 6 | |
| 7 | 7 | $db = require __DIR__ . '/test_db.php'; |
| 8 | 8 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | $config['modules']['gii'] = [ |
| 73 | 73 | 'class' => 'yii\gii\Module', |
| 74 | 74 | ]; |
| 75 | - $config['modules']['fixture'] = [ // Fixture generation command line. |
|
| 75 | + $config['modules']['fixture'] = [// Fixture generation command line. |
|
| 76 | 76 | 'class' => FixtureController::class, |
| 77 | 77 | 'templatePath' => 'tests/fixtures/templates', |
| 78 | 78 | 'fixtureDataPath' => 'tests/fixtures/data', |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | [ |
| 33 | 33 | 'attribute' => 'ip', |
| 34 | 34 | 'format' => 'html', |
| 35 | - 'value' => function (Proxy $model) { |
|
| 35 | + 'value' => function(Proxy $model) { |
|
| 36 | 36 | return Html::a($model->ip, ['proxy/update', 'id' => $model->id]); |
| 37 | 37 | }, |
| 38 | 38 | ], |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | <?php endif; ?> |
| 57 | 57 | |
| 58 | 58 | <?php if (isset($routes['download'])): ?> |
| 59 | - <?= Html::a('<span class="fa fa-download"></span>', ArrayHelper::merge(Yii::$app->request->get(), (array)$routes['download'], ['id' => $model->id]), [ |
|
| 59 | + <?= Html::a('<span class="fa fa-download"></span>', ArrayHelper::merge(Yii::$app->request->get(), (array) $routes['download'], ['id' => $model->id]), [ |
|
| 60 | 60 | 'class' => 'btn btn-default', |
| 61 | 61 | ]) ?> |
| 62 | 62 | <?php endif; ?> |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | <?php endif; ?> |
| 57 | 57 | |
| 58 | 58 | <?php if (isset($routes['download'])): ?> |
| 59 | - <?= Html::a('<span class="fa fa-download"></span>', ArrayHelper::merge(Yii::$app->request->get(), (array)$routes['download'], ['id' => $model->id]), [ |
|
| 59 | + <?= Html::a('<span class="fa fa-download"></span>', ArrayHelper::merge(Yii::$app->request->get(), (array) $routes['download'], ['id' => $model->id]), [ |
|
| 60 | 60 | 'class' => 'btn btn-default', |
| 61 | 61 | ]) ?> |
| 62 | 62 | <?php endif; ?> |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | 'occurs', |
| 61 | 61 | [ |
| 62 | 62 | 'format' => 'raw', |
| 63 | - 'value' => function (Account $account) use ($model, $categories) { |
|
| 63 | + 'value' => function(Account $account) use ($model, $categories) { |
|
| 64 | 64 | return OnOffMonitoringButton::widget([ |
| 65 | 65 | 'model' => $account, |
| 66 | 66 | 'form' => new MonitoringForm([ |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | ], |
| 51 | 51 | [ |
| 52 | 52 | 'format' => 'raw', |
| 53 | - 'value' => function (Tag $tag) use ($model) { |
|
| 53 | + 'value' => function(Tag $tag) use ($model) { |
|
| 54 | 54 | return OnOffMonitoringButton::widget([ |
| 55 | 55 | 'model' => $tag, |
| 56 | 56 | 'form' => new MonitoringForm([ |
@@ -19,9 +19,9 @@ |
||
| 19 | 19 | <?php foreach ($authAuthChoice->getClients() as $client): ?> |
| 20 | 20 | <div class="form-group text-center"> |
| 21 | 21 | <?php if ($client->getId() == 'google'): ?> |
| 22 | - <?= Html::a(Html::img('/img/btn_google_sign_in.png'), ['/admin/auth/auth', 'authclient' => $client->getName(),]) ?> |
|
| 22 | + <?= Html::a(Html::img('/img/btn_google_sign_in.png'), ['/admin/auth/auth', 'authclient' => $client->getName(), ]) ?> |
|
| 23 | 23 | <?php else: ?> |
| 24 | - <?= Html::a("<span class='fa fa-$client->name'></span> Sign in with " . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(),], ['class' => "btn btn-block btn-social btn-$client->name "]) ?> |
|
| 24 | + <?= Html::a("<span class='fa fa-$client->name'></span> Sign in with " . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(), ], ['class' => "btn btn-block btn-social btn-$client->name "]) ?> |
|
| 25 | 25 | <?php endif; ?> |
| 26 | 26 | </div> |
| 27 | 27 | <?php endforeach; ?> |