Passed
Push — master ( fe727e...818769 )
by Paweł
02:40
created
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.
components/AccountManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             return $this->fetchContent($url, $account);
67 67
         }
68 68
 
69
-        return $this->cache->getOrSet([$url], function () use ($url, $account) {
69
+        return $this->cache->getOrSet([$url], function() use ($url, $account) {
70 70
             return $this->fetchContent($url, $account);
71 71
         }, 3600);
72 72
     }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     public function saveUsernames(array $usernames)
130 130
     {
131 131
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
132
-        $rows = array_map(function ($username) use ($createdAt) {
132
+        $rows = array_map(function($username) use ($createdAt) {
133 133
             return [
134 134
                 $username,
135 135
                 $createdAt,
Please login to merge, or discard this patch.
modules/admin/views/account/media-accounts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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([
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.