@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | [ |
| 28 | 28 | 'attribute' => 'name', |
| 29 | - 'content' => function (\app\models\Tag $model) { |
|
| 29 | + 'content' => function(\app\models\Tag $model) { |
|
| 30 | 30 | return Html::a($model->namePrefixed, ['tag/stats', 'id' => $model->id]); |
| 31 | 31 | }, |
| 32 | 32 | ], |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | { |
| 67 | 67 | static::$proxies = static::$proxies ?? Proxy::find()->joinWith('tags')->active()->all(); |
| 68 | 68 | |
| 69 | - return ArrayHelper::map(static::$proxies, 'id', function (Proxy $model) { |
|
| 69 | + return ArrayHelper::map(static::$proxies, 'id', function(Proxy $model) { |
|
| 70 | 70 | $tags = ArrayHelper::getColumn($model->tags, 'name'); |
| 71 | 71 | |
| 72 | 72 | return $model->ip . ($tags ? ' # ' . implode(',', $tags) : ''); |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | $account = $accountManager->monitor($username, $form->proxy_id, $form->proxy_tag_id); |
| 109 | 109 | if (!$account->hasErrors()) { |
| 110 | 110 | \Yii::$app->session->setFlash('success', 'OK!'); |
| 111 | - $tags = array_filter((array)$form->tags); |
|
| 111 | + $tags = array_filter((array) $form->tags); |
|
| 112 | 112 | if ($tags) { |
| 113 | 113 | $tagManager = \Yii::createObject(TagManager::class); |
| 114 | 114 | $tagManager->saveForAccount($account, $tags, \Yii::$app->user->id); |
@@ -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([ |