@@ -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 { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | 'occurs', |
| 48 | 48 | [ |
| 49 | 49 | 'format' => 'raw', |
| 50 | - 'value' => function (Account $account) use ($model) { |
|
| 50 | + 'value' => function(Account $account) use ($model) { |
|
| 51 | 51 | return OnOffMonitoringButton::widget([ |
| 52 | 52 | 'model' => $account, |
| 53 | 53 | 'form' => new AccountMonitoringForm([ |
@@ -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) : ''); |