@@ -73,11 +73,11 @@ |
||
73 | 73 | 'class' => 'yii\gii\Module', |
74 | 74 | ]; |
75 | 75 | $config['modules']['fixture'] = [ // Fixture generation command line. |
76 | - 'class' => FixtureController::class, |
|
77 | - 'templatePath' => 'tests/fixtures/templates', |
|
78 | - 'fixtureDataPath' => 'tests/fixtures/data', |
|
79 | - 'namespace' => 'app\tests\fixtures', |
|
80 | - 'count' => 10, |
|
76 | + 'class' => FixtureController::class, |
|
77 | + 'templatePath' => 'tests/fixtures/templates', |
|
78 | + 'fixtureDataPath' => 'tests/fixtures/data', |
|
79 | + 'namespace' => 'app\tests\fixtures', |
|
80 | + 'count' => 10, |
|
81 | 81 | ]; |
82 | 82 | } |
83 | 83 |
@@ -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; ?> |
@@ -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; ?> |
@@ -20,9 +20,12 @@ |
||
20 | 20 | <div class="form-group text-center"> |
21 | 21 | <?php if ($client->getId() == 'google'): ?> |
22 | 22 | <?= Html::a(Html::img('/img/btn_google_sign_in.png'), ['/admin/auth/auth', 'authclient' => $client->getName(),]) ?> |
23 | - <?php else: ?> |
|
23 | + <?php else { |
|
24 | + : ?> |
|
24 | 25 | <?= 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 | - <?php endif; ?> |
|
26 | + <?php endif; |
|
27 | +} |
|
28 | +?> |
|
26 | 29 | </div> |
27 | 30 | <?php endforeach; ?> |
28 | 31 | <?php AuthChoice::end() ?> |
29 | 32 | \ No newline at end of file |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function search($params) |
48 | 48 | { |
49 | - $userId = (int)Yii::$app->user->id; |
|
49 | + $userId = (int) Yii::$app->user->id; |
|
50 | 50 | |
51 | 51 | $query = Account::find() |
52 | 52 | ->select([ |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | if ($interval === true) { // auto calculate |
26 | 26 | $interval = 1; |
27 | - for ($i = 1; $i <= (int)$model->invalidation_count; $i++) { |
|
27 | + for ($i = 1; $i <= (int) $model->invalidation_count; $i++) { |
|
28 | 28 | $interval *= $i; |
29 | 29 | } |
30 | 30 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $formatter = Yii::$app->formatter; |
48 | 48 | |
49 | - return array_map(function ($label) use ($formatter) { |
|
49 | + return array_map(function($label) use ($formatter) { |
|
50 | 50 | return $formatter->format($label, $this->labelFormat); |
51 | 51 | }, $this->getKeys()); |
52 | 52 | } |