Passed
Push — master ( f7e125...147acf )
by Paweł
02:31
created
components/AccountManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
     public function saveUsernames(array $usernames)
151 151
     {
152 152
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
153
-        $rows = array_map(function ($username) use ($createdAt) {
153
+        $rows = array_map(function($username) use ($createdAt) {
154 154
             return [
155 155
                 $username,
156 156
                 $createdAt,
Please login to merge, or discard this patch.
modules/admin/views/monitoring/accounts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 ['class' => \yii\grid\SerialColumn::class],
31 31
                 [
32 32
                     'attribute' => 'username',
33
-                    'content' => function (\app\models\Account $model) {
33
+                    'content' => function(\app\models\Account $model) {
34 34
                         $html = [];
35 35
                         if ($model->disabled) {
36 36
                             $html[] = '<span class="fa fa-exclamation-triangle text-danger" title="Not found."></span>';
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 ],
65 65
                 [
66 66
                     'attribute' => 's_tags',
67
-                    'value' => function (Account $model) {
67
+                    'value' => function(Account $model) {
68 68
                         $tags = $model->getTags()->select('tag.name')->column();
69 69
                         if ($tags) {
70 70
                             return implode(', ', $tags);
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
@@ -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 {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                             ],
47 47
                             [
48 48
                                 'label' => 'Er',
49
-                                'value' => function (Account $account) use ($formatter) {
49
+                                'value' => function(Account $account) use ($formatter) {
50 50
                                     if ($account->lastAccountStats) {
51 51
                                         $er = $account->lastAccountStats->er;
52 52
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                             'occurs',
60 60
                             [
61 61
                                 'format' => 'raw',
62
-                                'value' => function (Account $account) use ($model) {
62
+                                'value' => function(Account $account) use ($model) {
63 63
                                     return OnOffMonitoringButton::widget([
64 64
                                         'model' => $account,
65 65
                                         'form' => new AccountMonitoringForm([
Please login to merge, or discard this patch.