Completed
Push — master ( 8e4a64...521cc3 )
by Paweł
04:47
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
@@ -66,7 +66,7 @@
 block discarded – undo
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) : '');
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
@@ -108,7 +108,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
modules/admin/views/account/media-accounts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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([
Please login to merge, or discard this patch.