@@ -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 | ], |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | */ |
| 82 | 82 | protected function getProxyPairs(): array |
| 83 | 83 | { |
| 84 | - return ArrayHelper::map(Proxy::find()->active()->all(), 'id', function (Proxy $model) { |
|
| 84 | + return ArrayHelper::map(Proxy::find()->active()->all(), 'id', function(Proxy $model) { |
|
| 85 | 85 | $tags = ArrayHelper::getColumn($model->tags, 'name'); |
| 86 | 86 | |
| 87 | 87 | return $model->ip . ($tags ? ' # ' . implode(',', $tags) : ''); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | if ($account->save()) { |
| 54 | 54 | \Yii::$app->session->setFlash('success', 'OK!'); |
| 55 | 55 | $accountManager = \Yii::createObject(AccountManager::class); |
| 56 | - $accountManager->updateTags($account, (array)$form->tags); |
|
| 56 | + $accountManager->updateTags($account, (array) $form->tags); |
|
| 57 | 57 | } else { |
| 58 | 58 | \Yii::error('Validation error: ' . json_encode($account->errors), __METHOD__); |
| 59 | 59 | \Yii::$app->session->setFlash('error', 'ERR!'); |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | public function saveTags(array $tags) |
| 93 | 93 | { |
| 94 | 94 | $createdAt = (new \DateTime())->format('Y-m-d H:i:s'); |
| 95 | - $rows = array_map(function ($tag) use ($createdAt) { |
|
| 95 | + $rows = array_map(function($tag) use ($createdAt) { |
|
| 96 | 96 | return [ |
| 97 | 97 | $tag, |
| 98 | 98 | Inflector::slug($tag), |