@@ -150,7 +150,7 @@ |
||
| 150 | 150 | public function saveUsernames(array $usernames) |
| 151 | 151 | { |
| 152 | 152 | $createdAt = (new \DateTime())->format('Y-m-d H:i:s'); |
| 153 | - $rows = array_map(function ($username) use ($createdAt) { |
|
| 153 | + $rows = array_map(function($username) use ($createdAt) { |
|
| 154 | 154 | return [ |
| 155 | 155 | $username, |
| 156 | 156 | $createdAt, |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | ['class' => \yii\grid\SerialColumn::class], |
| 31 | 31 | [ |
| 32 | 32 | 'attribute' => 'username', |
| 33 | - 'content' => function (\app\models\Account $model) { |
|
| 33 | + 'content' => function(\app\models\Account $model) { |
|
| 34 | 34 | $html = []; |
| 35 | 35 | if ($model->disabled) { |
| 36 | 36 | $html[] = '<span class="fa fa-exclamation-triangle text-danger" title="Not found."></span>'; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | ], |
| 65 | 65 | [ |
| 66 | 66 | 'attribute' => 's_tags', |
| 67 | - 'value' => function (Account $model) { |
|
| 67 | + 'value' => function(Account $model) { |
|
| 68 | 68 | $tags = $model->getTags()->select('tag.name')->column(); |
| 69 | 69 | if ($tags) { |
| 70 | 70 | return implode(', ', $tags); |
@@ -34,7 +34,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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([ |