@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public function search($params) |
| 47 | 47 | { |
| 48 | - $userId = (int)\Yii::$app->user->id; |
|
| 48 | + $userId = (int) \Yii::$app->user->id; |
|
| 49 | 49 | |
| 50 | 50 | $query = Account::find() |
| 51 | 51 | ->select([ |
@@ -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([ |