Passed
Branch master (b79dfd)
by Eugene
06:36
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/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/user/views/management/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             [
24 24
                 'label' => Yii::t('user', 'Avatar'),
25 25
                 'format' => 'raw',
26
-                'value' => function ($model) {
26
+                'value' => function($model) {
27 27
                     return Html::img($model->avatar, [
28 28
                         'alt' => Yii::t('user', 'Avatar'),
29 29
                         'style' => 'width:60px; object-fit:cover;',
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             [
44 44
                 'attribute' => 'status',
45 45
                 'headerOptions' => ['width' => '120'],
46
-                'content' => function ($model) {
46
+                'content' => function($model) {
47 47
                     $label = User::STATUS_ACTIVE === $model->status ? 'success' : 'default';
48 48
                     $label = User::STATUS_BLOCKED === $model->status ? 'danger' : $label;
49 49
                     return "<span class='visible-md-block visible-xs-block
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     'clientOptions' => ['format' => 'yyyy-mm-d']
70 70
                 ]),
71 71
                 'format' => 'html',
72
-                'content' => function ($model) {
72
+                'content' => function($model) {
73 73
                     return Yii::$app->formatter->asDatetime($model->created_at);
74 74
                 },
75 75
             ],
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                     'clientOptions' => ['format' => 'yyyy-mm-d']
83 83
                 ]),
84 84
                 'format' => 'html',
85
-                'content' => function ($model) {
85
+                'content' => function($model) {
86 86
                     return Yii::$app->formatter->asDatetime($model->last_login_at);
87 87
                 },
88 88
             ],
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                 'class' => yii\grid\DataColumn::className(),
91 91
                 'label' => \Yii::t('user', 'Role'),
92 92
                 'attribute' => 'authAssignments.item_name',
93
-                'value' => function ($model) {
93
+                'value' => function($model) {
94 94
                     return $model->getRoleName() ?: 'no role';
95 95
                 },
96 96
             ],
Please login to merge, or discard this patch.
modules/user/views/management/view.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
     <h1><?= Html::encode($model->first_name); ?></h1>
18 18
     <div class="form-group">
19 19
         <?= Html::img(
20
-            $model->avatar ? : User::DEFAULT_AVATAR_URL,
20
+            $model->avatar ?: User::DEFAULT_AVATAR_URL,
21 21
             ['alt' => 'User avatar', 'width' => 200, 'height' => 200, 'class' => 'avatar-border']
22 22
         ) ?>
23 23
     </div>
Please login to merge, or discard this patch.
modules/user/views/default/profile.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
 
19 19
     <div class="form-group">
20 20
         <?= Html::img(
21
-            $model->avatar ? : User::DEFAULT_AVATAR_URL,
21
+            $model->avatar ?: User::DEFAULT_AVATAR_URL,
22 22
             ['alt' => 'User avatar', 'width' => 200, 'height' => 200, 'class' => 'avatar-border']
23 23
         ) ?>
24 24
     </div>
Please login to merge, or discard this patch.