@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | [ |
34 | 34 | 'attribute' => 'username', |
35 | 35 | 'format' => 'raw', |
36 | - 'value' => function (Account $model, $key, $index, $column) { |
|
36 | + 'value' => function(Account $model, $key, $index, $column) { |
|
37 | 37 | if ($model->monitoring) { |
38 | 38 | $value = Html::a($model->usernamePrefixed, ['account/dashboard', 'id' => $model->id]); |
39 | 39 | } else { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | ], |
46 | 46 | [ |
47 | 47 | 'label' => (new \app\models\AccountStats())->getAttributeLabel('er'), |
48 | - 'value' => function (Account $account) use ($formatter) { |
|
48 | + 'value' => function(Account $account) use ($formatter) { |
|
49 | 49 | if ($account->monitoring && $account->lastAccountStats) { |
50 | 50 | $er = $account->lastAccountStats->er; |
51 | 51 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'occurs', |
59 | 59 | [ |
60 | 60 | 'format' => 'raw', |
61 | - 'value' => function (Account $account) use ($model) { |
|
61 | + 'value' => function(Account $account) use ($model) { |
|
62 | 62 | return OnOffMonitoringButton::widget([ |
63 | 63 | 'model' => $account, |
64 | 64 | 'form' => new MonitoringForm([ |
@@ -18,7 +18,7 @@ |
||
18 | 18 | ]) ?> |
19 | 19 | <?php foreach ($authAuthChoice->getClients() as $client): ?> |
20 | 20 | <div class="form-group"> |
21 | - <?= Html::a('Sign in with ' . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(),], ['class' => "btn btn-success btn-block $client->name "]) ?> |
|
21 | + <?= Html::a('Sign in with ' . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(), ], ['class' => "btn btn-success btn-block $client->name "]) ?> |
|
22 | 22 | </div> |
23 | 23 | <?php endforeach; ?> |
24 | 24 | <?php AuthChoice::end() ?> |
25 | 25 | \ No newline at end of file |
@@ -32,7 +32,7 @@ |
||
32 | 32 | ['class' => \yii\grid\SerialColumn::class], |
33 | 33 | [ |
34 | 34 | 'attribute' => 'username', |
35 | - 'content' => function (\app\models\Account $model) { |
|
35 | + 'content' => function(\app\models\Account $model) { |
|
36 | 36 | $html = []; |
37 | 37 | $html[] = Html::a($model->displayName, ['account/dashboard', 'id' => $model->id]); |
38 | 38 | $html[] = Html::a('<span class="fa fa-external-link text-sm"></span>', Url::account($model->username), ['target' => '_blank']); |
@@ -109,7 +109,7 @@ |
||
109 | 109 | $account->disabled = 0; |
110 | 110 | if (!$account->hasErrors()) { |
111 | 111 | \Yii::$app->session->setFlash('success', 'OK!'); |
112 | - $tags = array_filter((array)$form->tags); |
|
112 | + $tags = array_filter((array) $form->tags); |
|
113 | 113 | if ($tags) { |
114 | 114 | $tagManager = \Yii::createObject(TagManager::class); |
115 | 115 | $tagManager->saveForAccount($account, $tags, \Yii::$app->user->id); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | public function updateInvalidation(Account $account, ?int $invalidationType) |
38 | 38 | { |
39 | - $account->invalidation_count = (int)$account->invalidation_count + 1; |
|
39 | + $account->invalidation_count = (int) $account->invalidation_count + 1; |
|
40 | 40 | $account->is_valid = 0; |
41 | 41 | $account->invalidation_type_id = $invalidationType; |
42 | 42 | $interval = 1; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $this->saveUsernames($usernames); |
106 | 106 | |
107 | 107 | $createdAt = (new \DateTime())->format('Y-m-d H:i:s'); |
108 | - $rows = array_map(function ($id) use ($media, $createdAt) { |
|
108 | + $rows = array_map(function($id) use ($media, $createdAt) { |
|
109 | 109 | return [ |
110 | 110 | $media->id, |
111 | 111 | $id, |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | public function saveUsernames(array $usernames) |
130 | 130 | { |
131 | 131 | $createdAt = (new \DateTime())->format('Y-m-d H:i:s'); |
132 | - $rows = array_map(function ($username) use ($createdAt) { |
|
132 | + $rows = array_map(function($username) use ($createdAt) { |
|
133 | 133 | return [ |
134 | 134 | $username, |
135 | 135 | $createdAt, |