Passed
Branch master (206b08)
by Paweł
03:03
created
modules/admin/views/monitoring/tags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
                 ],
Please login to merge, or discard this patch.
modules/admin/widgets/CreateMonitoringModal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
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) : '');
Please login to merge, or discard this patch.
modules/admin/controllers/MonitoringController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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!');
Please login to merge, or discard this patch.
components/TagManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.