Test Setup Failed
Branch develop (ba218d)
by Eugene
03:30
created
modules/feedback/controllers/ManagementController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * Lists all Feedback models.
53 53
      *
54
-     * @return mixed
54
+     * @return string
55 55
      */
56 56
     public function actionIndex()
57 57
     {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * Displays a single Feedback model.
69 69
      *
70 70
      * @param integer $id
71
-     * @return mixed
71
+     * @return string
72 72
      */
73 73
     public function actionView($id)
74 74
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
                         'actions' => ['create'],
40 40
                         'allow' => true,
41 41
                         'roles' => ['@'],
42
-                        'matchCallback' => function () {
42
+                        'matchCallback' => function() {
43 43
                             return !Yii::$app->user->can(User::ROLE_ADMIN);
44 44
                         },
45 45
                     ],
Please login to merge, or discard this patch.
modules/mailTemplate/controllers/ManagementController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * Lists all MailTemplate models.
39 39
      *
40
-     * @return mixed
40
+     * @return string
41 41
      */
42 42
     public function actionIndex()
43 43
     {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * Displays a single MailTemplate model.
55 55
      *
56 56
      * @param integer $id
57
-     * @return mixed
57
+     * @return string
58 58
      */
59 59
     public function actionView($id)
60 60
     {
Please login to merge, or discard this patch.
modules/user/controllers/ManagementController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * Lists all Users models.
39 39
      *
40
-     * @return mixed
40
+     * @return string
41 41
      */
42 42
     public function actionIndex()
43 43
     {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * Displays a single Users model.
55 55
      *
56 56
      * @param integer $id
57
-     * @return mixed
57
+     * @return string
58 58
      */
59 59
     public function actionView($id)
60 60
     {
Please login to merge, or discard this patch.
modules/mailTemplate/models/MailTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         return [
51 51
             [['body'], 'string'],
52
-            [['name',], 'required'],
52
+            [['name', ], 'required'],
53 53
             [['updated_at'], 'safe'],
54 54
         ];
55 55
     }
Please login to merge, or discard this patch.
modules/mailTemplate/models/SearchMailTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         return [
20 20
             [['id'], 'integer'],
21 21
             [['key', 'name'], 'string', 'max' => 255],
22
-            [['updated_at',], 'safe'],
22
+            [['updated_at', ], 'safe'],
23 23
         ];
24 24
     }
25 25
 
Please login to merge, or discard this patch.
modules/feedback/views/management/index.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             'email:email',
31 31
             [
32 32
                 'attribute' => 'message',
33
-                'value' => function ($model) {
33
+                'value' => function($model) {
34 34
                     return StringHelper::truncate($model->message, 150);
35 35
                 },
36 36
             ],
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                     ],
47 47
                     ['prompt' => Yii::t('feedback', 'All'), 'class' => 'form-control']
48 48
                 ),
49
-                'content' => function ($model) {
49
+                'content' => function($model) {
50 50
                     $label = Feedback::STATUS_ANSWERED === $model->status ? 'success' : 'danger';
51 51
                     return "<span class='visible-md-block visible-xs-block
52 52
                         visible-sm-block visible-lg-block label label-{$label}'>{$model->status}</span>";
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                     'clientOptions' => ['format' => 'yyyy-mm-d']
71 71
                 ]),
72 72
                 'format' => 'html',
73
-                'content' => function ($model) {
73
+                'content' => function($model) {
74 74
                     return Yii::$app->formatter->asDatetime($model->updated_at);
75 75
                 },
76 76
             ],
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 'contentOptions' => ['style' => 'text-align: center'],
82 82
                 'template' => '{view} {answered} ',
83 83
                 'buttons' => [
84
-                    'answered' => function ($url, $model) {
84
+                    'answered' => function($url, $model) {
85 85
                         return Feedback::STATUS_NEW === $model->status ?
86 86
                             Html::beginForm(
87 87
                                 ['/feedback/management/update?id=' . $model->id],
@@ -97,8 +97,7 @@  discard block
 block discarded – undo
97 97
                                     'data' => ['method' => 'post'],
98 98
                                 ]
99 99
                             )
100
-                            . Html::endForm() :
101
-                            Html::a(
100
+                            . Html::endForm() : Html::a(
102 101
                                 '<span class="glyphicon glyphicon-comment text-muted"></span>',
103 102
                                 '#',
104 103
                                 ['title' => Yii::t('feedback', 'Answered')]
Please login to merge, or discard this patch.
modules/feedback/views/management/create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             <?= $form->field($model, 'message')->textarea(['rows' => 6]) ?>
30 30
 
31 31
 
32
-            <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [ 'captchaAction' => '/site/captcha',
32
+            <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), ['captchaAction' => '/site/captcha',
33 33
                 'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
34 34
             ]) ?>
35 35
 
Please login to merge, or discard this patch.
modules/option/views/management/index.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
                     'clientOptions' => ['format' => 'yyyy-mm-d']
35 35
                 ]),
36 36
                 'format' => 'html',
37
-                'content' => function ($model) {
37
+                'content' => function($model) {
38 38
                     return Yii::$app->formatter->asDatetime($model->created_at);
39 39
                 },
40 40
             ],
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                     'clientOptions' => ['format' => 'yyyy-mm-d']
48 48
                 ]),
49 49
                 'format' => 'html',
50
-                'content' => function ($model) {
50
+                'content' => function($model) {
51 51
                     return Yii::$app->formatter->asDatetime($model->updated_at);
52 52
                 },
53 53
             ],
Please login to merge, or discard this patch.
modules/option/views/management/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 
19 19
     <div class="form-group">
20
-        <?= Html::submitButton(Yii::t('option', 'Update'), ['class' => 'btn btn-success' ]) ?>
20
+        <?= Html::submitButton(Yii::t('option', 'Update'), ['class' => 'btn btn-success']) ?>
21 21
         <?= Html::a(Yii::t('option', 'Cancel'), ['index'], ['class' => 'btn btn-default']); ?>
22 22
     </div>
23 23
 
Please login to merge, or discard this patch.