Passed
Branch feature/scrutinizer (2b33b8)
by Svyatoslav
03:26
created
common/models/Log.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
             [['old_data', 'new_data'], 'string'],
54 54
             [['user', 'old_data', 'new_data'], 'default', 'value' => ''],
55 55
             [['user_ip'], 'default', 'value' => 0],
56
-            [['log_date'], 'default', 'value' => function () {
56
+            [['log_date'], 'default', 'value' => function() {
57 57
                 return time();
58 58
             }],
59 59
         ];
Please login to merge, or discard this patch.
backend/views/mailer-accounts/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     <?php $form = ActiveForm::begin(); ?>
19 19
     <?= $form->field($model, 'email')->textInput(['maxlength' => true])->label('Email part (before @)') ?>
20 20
     <?= $form->field($model, 'domain_id')->dropDownList(['' => ''] + $domainsList) ?>
21
-    <?php if (! $model->isNewRecord) : ?>
21
+    <?php if (!$model->isNewRecord) : ?>
22 22
         <?= $form->field($model, 'password')->checkbox() ?>
23 23
     <?php endif; ?>
24 24
     <div class="form-group">
Please login to merge, or discard this patch.
backend/views/mailer-accounts/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             [
36 36
                 'class' => EnumColumn::class,
37 37
                 'attribute' => 'domain_id',
38
-                'value' => function (MailerAccount $model) {
38
+                'value' => function(MailerAccount $model) {
39 39
                     return Html::a($model->domain->name, ['/mailer-domains/view', 'id' => $model->domain_id]);
40 40
                 },
41 41
                 'enum' => $domainsList,
Please login to merge, or discard this patch.
backend/views/mailer-accounts/view.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@
 block discarded – undo
30 30
             'id',
31 31
             [
32 32
                 'attribute' => 'email',
33
-                'value' => function (MailerAccount $model) {
34
-                    return Html::a($model->email, 'mailto:'.$model->email);
33
+                'value' => function(MailerAccount $model) {
34
+                    return Html::a($model->email, 'mailto:' . $model->email);
35 35
                 },
36 36
                 'format' => 'raw',
37 37
             ],
38 38
             [
39 39
                 'attribute' => 'domain_id',
40
-                'value' => function (MailerAccount $model) {
40
+                'value' => function(MailerAccount $model) {
41 41
                     return Html::a($model->domain->name, ['/mailer-domains/view', 'id' => $model->domain_id]);
42 42
                 },
43 43
                 'format' => 'raw',
Please login to merge, or discard this patch.
backend/views/mailer-aliases/index.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
                 'class' => EnumColumn::class,
36 36
                 'attribute' => 'domain_id',
37 37
                 'value' => function (MailerAlias $model) {
38
-                     return Html::a($model->domain->name, ['/mailer-domains/view', 'id' => $model->domain_id]);
38
+                        return Html::a($model->domain->name, ['/mailer-domains/view', 'id' => $model->domain_id]);
39 39
                 },
40 40
                 'enum' => $domainsList,
41 41
                 'filter' => $domainsList,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             [
35 35
                 'class' => EnumColumn::class,
36 36
                 'attribute' => 'domain_id',
37
-                'value' => function (MailerAlias $model) {
37
+                'value' => function(MailerAlias $model) {
38 38
                      return Html::a($model->domain->name, ['/mailer-domains/view', 'id' => $model->domain_id]);
39 39
                 },
40 40
                 'enum' => $domainsList,
Please login to merge, or discard this patch.
backend/views/users/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
                 'class' => ActionColumn::class,
59 59
                 'template' => '{view} {update} {delete}',
60 60
                 'visibleButtons' => [
61
-                    'delete' => function (User $user) {
61
+                    'delete' => function(User $user) {
62 62
                         return $user->isDeleteAllowed();
63 63
                     },
64 64
                 ],
Please login to merge, or discard this patch.
backend/views/mailer-domains/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             'name',
33 33
             [
34 34
                 'attribute' => 'accounts',
35
-                'value' => function (MailerDomain $model) {
35
+                'value' => function(MailerDomain $model) {
36 36
                     return Html::a(
37 37
                         Html::tag('span', $model->getAccounts()->count(), ['class' => 'badge']),
38 38
                         ['/mailer-accounts', 'MailerAccountSearch' => ['domain_id' => $model->id]]
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             ],
45 45
             [
46 46
                 'attribute' => 'aliases',
47
-                'value' => function (MailerDomain $model) {
47
+                'value' => function(MailerDomain $model) {
48 48
                     return Html::a(
49 49
                         Html::tag('span', $model->getAliases()->count(), ['class' => 'badge']),
50 50
                         ['/mailer-aliases', 'MailerAliasSearch' => ['domain_id' => $model->id]]
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             [
58 58
                 'class' => ActionColumn::class,
59 59
                 'visibleButtons' => [
60
-                    'delete' => function (MailerDomain $user) {
60
+                    'delete' => function(MailerDomain $user) {
61 61
                         return $user->isDeleteAllowed();
62 62
                     },
63 63
                 ],
Please login to merge, or discard this patch.
backend/views/mailer-domains/view.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
             'name',
35 35
             [
36 36
                 'attribute' => 'accounts',
37
-                'value' => function (MailerDomain $model) {
37
+                'value' => function(MailerDomain $model) {
38 38
                     return Html::a(
39 39
                         Html::tag('span', $model->getAccounts()->count(), ['class' => 'badge']),
40 40
                         ['/mailer-accounts', 'MailerAccountSearch' => ['domain_id' => $model->id]]
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             ],
45 45
             [
46 46
                 'attribute' => 'aliases',
47
-                'value' => function (MailerDomain $model) {
47
+                'value' => function(MailerDomain $model) {
48 48
                     return Html::a(
49 49
                         Html::tag('span', $model->getAliases()->count(), ['class' => 'badge']),
50 50
                         ['/mailer-aliases', 'MailerAliasSearch' => ['domain_id' => $model->id]]
Please login to merge, or discard this patch.
backend/views/logs/_list.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         'columns' => [
27 27
             [
28 28
                 'attribute' => 'log_date',
29
-                'value' => function (Log $log) {
29
+                'value' => function(Log $log) {
30 30
                     return
31 31
                         Html::tag('span', '', ['class' => "glyphicon glyphicon-time"]) . ' ' .
32 32
                         date('Y-m-d H:i', $log->log_date);
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             [
44 44
                 'class' => EnumColumn::class,
45 45
                 'attribute' => 'item_type',
46
-                'value' => function (Log $model) use ($itemTypes) {
46
+                'value' => function(Log $model) use ($itemTypes) {
47 47
                     if (isset($itemTypes[$model->item_type])) {
48 48
                         return Html::a($itemTypes[$model->item_type], ['/' . $itemTypes[$model->item_type]]);
49 49
                     }
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
             ],
56 56
             [
57 57
                 'attribute' => 'item_id',
58
-                'value' => function (Log $model) use ($itemTypes) {
58
+                'value' => function(Log $model) use ($itemTypes) {
59 59
                     if (isset($itemTypes[$model->item_type])) {
60 60
                         return Html::a('#' . $model->item_id, [
61
-                            '/' . $itemTypes[$model->item_type].'/view',
61
+                            '/' . $itemTypes[$model->item_type] . '/view',
62 62
                             'id' => $model->item_id
63 63
                         ]);
64 64
                     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             ],
77 77
             [
78 78
                 'attribute' => 'user',
79
-                'value' => function (Log $log) {
79
+                'value' => function(Log $log) {
80 80
                     if ($log->user) {
81 81
                         return $log->user;
82 82
                     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             ],
88 88
             [
89 89
                 'attribute' => 'user_ip',
90
-                'value' => function (Log $log) {
90
+                'value' => function(Log $log) {
91 91
                     if (!$log->user_ip) {
92 92
                         return '';
93 93
                     }
Please login to merge, or discard this patch.