Passed
Push — master ( b25438...d48f81 )
by Andrey
11:24
created
views/admin/positions/view.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
9 9
 /* @var $model app\models\Position */
10 10
 
11 11
 $this->title = $model->getDefaultTranslate('name');
12
-$this->params['breadcrumbs'][] = [
12
+$this->params[ 'breadcrumbs' ][ ] = [
13 13
     'label' => Yii::t('positions', 'Positions'),
14 14
     'url' => [
15
-        $this->params['urlPrefix'].'index'
15
+        $this->params[ 'urlPrefix' ].'index'
16 16
     ]
17 17
 ];
18
-$this->params['breadcrumbs'][] = $this->title;
18
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
19 19
 ?>
20 20
 
21 21
 <style>
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
 
30 30
     <p>
31 31
         <?php echo Html::a(Yii::t('app', 'Update'), [
32
-            $this->params['urlPrefix'].'update',
32
+            $this->params[ 'urlPrefix' ].'update',
33 33
             'id' => $model->id
34 34
         ], [
35 35
             'class' => 'btn btn-primary'
36 36
         ]) ?>
37 37
 
38 38
         <?php echo Html::a(Yii::t('app', 'Delete'), [
39
-            $this->params['urlPrefix'].'delete',
39
+            $this->params[ 'urlPrefix' ].'delete',
40 40
             'id' => $model->id
41 41
         ], [
42 42
             'class' => 'btn btn-danger',
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
             'id',
66 66
             [
67 67
                 'attribute' => 'created_at',
68
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
68
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
69 69
                 'label' => Yii::t('app', 'Created date'),
70 70
             ],
71 71
             [
72 72
                 'attribute' => 'updated_at',
73
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
73
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
74 74
                 'label' => Yii::t('app', 'Updated date'),
75 75
             ],
76 76
         ],
Please login to merge, or discard this patch.
views/admin/positions/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 /* @var $model Itstructure\AdminModule\models\MultilanguageValidateModel */
5 5
 
6 6
 $this->title = Yii::t('positions', 'Create position');
7
-$this->params['breadcrumbs'][] = [
7
+$this->params[ 'breadcrumbs' ][ ] = [
8 8
     'label' => Yii::t('positions', 'Positions'),
9 9
     'url' => [
10
-        $this->params['urlPrefix'].'index'
10
+        $this->params[ 'urlPrefix' ].'index'
11 11
     ]
12 12
 ];
13
-$this->params['breadcrumbs'][] = Yii::t('app', 'Create');
13
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Create');
14 14
 ?>
15 15
 <div class="positions-create">
16 16
 
Please login to merge, or discard this patch.
views/admin/home/_form.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
                             'filebrowserWindowHeight' => '700',
46 46
                             'extraPlugins' => 'pbckcode',
47 47
                             'toolbarGroups' => [
48
-                                ['name' => 'pbckcode']
48
+                                [ 'name' => 'pbckcode' ]
49 49
                             ],
50 50
                             'allowedContent' => true,
51
-                            'language' => $this->params['shortLanguage'],
51
+                            'language' => $this->params[ 'shortLanguage' ],
52 52
                         ]
53 53
                     ],
54 54
                     [
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 'languageModel' => new Language()
68 68
             ]) ?>
69 69
 
70
-            <?php echo $form->field($model, 'default')->checkbox(['value' => 1, 'label' => Yii::t('app', 'Set as default')]) ?>
70
+            <?php echo $form->field($model, 'default')->checkbox([ 'value' => 1, 'label' => Yii::t('app', 'Set as default') ]) ?>
71 71
 
72 72
         </div>
73 73
     </div>
Please login to merge, or discard this patch.
views/admin/home/update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,21 +3,21 @@
 block discarded – undo
3 3
 /* @var $this Itstructure\AdminModule\components\AdminView */
4 4
 /* @var $model Itstructure\AdminModule\models\MultilanguageValidateModel */
5 5
 
6
-$this->title = Yii::t('home', 'Update home page').': ' . $model->mainModel->getDefaultTranslate('title');
7
-$this->params['breadcrumbs'][] = [
6
+$this->title = Yii::t('home', 'Update home page').': '.$model->mainModel->getDefaultTranslate('title');
7
+$this->params[ 'breadcrumbs' ][ ] = [
8 8
     'label' => Yii::t('home', 'Home page'),
9 9
     'url' => [
10
-        $this->params['urlPrefix'].'index'
10
+        $this->params[ 'urlPrefix' ].'index'
11 11
     ]
12 12
 ];
13
-$this->params['breadcrumbs'][] = [
13
+$this->params[ 'breadcrumbs' ][ ] = [
14 14
     'label' => $model->mainModel->getDefaultTranslate('title'),
15 15
     'url' => [
16
-        $this->params['urlPrefix'].'view',
16
+        $this->params[ 'urlPrefix' ].'view',
17 17
         'id' => $model->id
18 18
     ]
19 19
 ];
20
-$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
20
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Update');
21 21
 ?>
22 22
 <div class="home-update">
23 23
 
Please login to merge, or discard this patch.
views/admin/home/index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 /* @var $this Itstructure\AdminModule\components\AdminView */
10 10
 
11 11
 $this->title = Yii::t('home', 'Home page');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="home-index">
15 15
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     <p>
19 19
         <?php echo Html::a(Yii::t('home', 'Create home page'), [
20
-            $this->params['urlPrefix'].'create'
20
+            $this->params[ 'urlPrefix' ].'create'
21 21
         ], [
22 22
             'class' => 'btn btn-success'
23 23
         ]) ?>
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                     /* @var $searchModel HomeSearch */
36 36
                     return Html::a(
37 37
                         Html::encode($searchModel->getDefaultTranslate('title')),
38
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
38
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
39 39
                     );
40 40
                 },
41 41
                 'format' => 'raw',
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
             ],
51 51
             [
52 52
                 'attribute' => 'created_at',
53
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
53
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
54 54
                 'label' => Yii::t('app', 'Created date'),
55 55
             ],
56 56
             [
57 57
                 'attribute' => 'updated_at',
58
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
58
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
59 59
                 'label' => Yii::t('app', 'Updated date'),
60 60
             ],
61 61
             'default' => [
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     }
70 70
 
71 71
                     return Html::a(Yii::t('app', 'Set as default'), Url::to([
72
-                        $this->params['urlPrefix'].'set-default',
72
+                        $this->params[ 'urlPrefix' ].'set-default',
73 73
                         'homeId' => $searchModel->id,
74 74
                     ]), [
75 75
                         'title' => Yii::t('app', 'Set as default'),
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
                 'class' => 'yii\grid\ActionColumn',
82 82
                 'header' => Yii::t('app', 'Actions'),
83 83
                 'template' => '{view} {update} {delete}',
84
-                'urlCreator'=>function($action, $model, $key, $index){
84
+                'urlCreator'=>function($action, $model, $key, $index) {
85 85
                     return Url::to([
86
-                        $this->params['urlPrefix'].$action,
86
+                        $this->params[ 'urlPrefix' ].$action,
87 87
                         'id' => $model->id
88 88
                     ]);
89 89
                 }
Please login to merge, or discard this patch.
views/admin/home/view.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
9 9
 /* @var $model app\models\Home */
10 10
 
11 11
 $this->title = $model->getDefaultTranslate('title');
12
-$this->params['breadcrumbs'][] = [
12
+$this->params[ 'breadcrumbs' ][ ] = [
13 13
     'label' => Yii::t('home', 'Home page'),
14 14
     'url' => [
15
-        $this->params['urlPrefix'].'index'
15
+        $this->params[ 'urlPrefix' ].'index'
16 16
     ]
17 17
 ];
18
-$this->params['breadcrumbs'][] = $this->title;
18
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
19 19
 ?>
20 20
 
21 21
 <style>
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
 
30 30
     <p>
31 31
         <?php echo Html::a(Yii::t('app', 'Update'), [
32
-            $this->params['urlPrefix'].'update',
32
+            $this->params[ 'urlPrefix' ].'update',
33 33
             'id' => $model->id
34 34
         ], [
35 35
             'class' => 'btn btn-primary'
36 36
         ]) ?>
37 37
 
38 38
         <?php echo Html::a(Yii::t('app', 'Delete'), [
39
-            $this->params['urlPrefix'].'delete',
39
+            $this->params[ 'urlPrefix' ].'delete',
40 40
             'id' => $model->id
41 41
         ], [
42 42
             'class' => 'btn btn-danger',
@@ -83,22 +83,22 @@  discard block
 block discarded – undo
83 83
                 'label' => Yii::t('app', 'Default status'),
84 84
                 'value' => function($model) {
85 85
                     /* @var $model app\models\Home */
86
-                    if ($model->default == 1){
87
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Default') . '</i>';
86
+                    if ($model->default == 1) {
87
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Default').'</i>';
88 88
                     } else {
89
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'No') . '</i>';
89
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'No').'</i>';
90 90
                     }
91 91
                 },
92 92
                 'format' => 'raw',
93 93
             ],
94 94
             [
95 95
                 'attribute' => 'created_at',
96
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
96
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
97 97
                 'label' => Yii::t('app', 'Created date'),
98 98
             ],
99 99
             [
100 100
                 'attribute' => 'updated_at',
101
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
101
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
102 102
                 'label' => Yii::t('app', 'Updated date'),
103 103
             ],
104 104
         ],
Please login to merge, or discard this patch.
views/admin/home/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 /* @var $model Itstructure\AdminModule\models\MultilanguageValidateModel */
5 5
 
6 6
 $this->title = Yii::t('home', 'Create home page');
7
-$this->params['breadcrumbs'][] = [
7
+$this->params[ 'breadcrumbs' ][ ] = [
8 8
     'label' => Yii::t('home', 'Home page'),
9 9
     'url' => [
10
-        $this->params['urlPrefix'].'index'
10
+        $this->params[ 'urlPrefix' ].'index'
11 11
     ]
12 12
 ];
13
-$this->params['breadcrumbs'][] = Yii::t('app', 'Create');
13
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Create');
14 14
 ?>
15 15
 <div class="home-create">
16 16
 
Please login to merge, or discard this patch.
views/site/reg.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 /* @var $model app\models\RegForm */
10 10
 
11 11
 $this->title = Yii::t('site', 'Register');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <section id="registration">
15 15
     <div class="container">
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
                 'layout' => 'horizontal',
22 22
                 'fieldConfig' => [
23 23
                     'template' => "{label}\n<div class=\"col-lg-4\">{input}</div>\n<div class=\"col-lg-6\">{error}</div>",
24
-                    'labelOptions' => ['class' => 'col-lg-2 control-label'],
24
+                    'labelOptions' => [ 'class' => 'col-lg-2 control-label' ],
25 25
                 ],
26 26
             ]); ?>
27 27
 
28
-            <?php echo $form->field($model, 'first_name')->textInput(['autofocus' => true])->label(Yii::t('site', 'Name')) ?>
28
+            <?php echo $form->field($model, 'first_name')->textInput([ 'autofocus' => true ])->label(Yii::t('site', 'Name')) ?>
29 29
 
30 30
             <?php echo $form->field($model, 'email')->textInput()->label(Yii::t('site', 'Email')) ?>
31 31
 
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
             <?php echo $form->field($model, 'passwordRepeat')->passwordInput()->label(Yii::t('site', 'Password repeat')) ?>
37 37
 
38 38
             <?php echo $form->field($model, 'verifyCode')->widget(Captcha::class, [
39
-                'captchaAction' => '/'.$this->params['shortLanguage'].'/site/captcha',
39
+                'captchaAction' => '/'.$this->params[ 'shortLanguage' ].'/site/captcha',
40 40
                 'template' => '<div class="row"><div class="col-lg-7">{image}</div></div>
41 41
                             <div class="row"><div class="col-lg-12">{input}</div></div>',
42 42
             ])->label(Yii::t('feedback', 'Verify code')) ?>
43 43
 
44 44
             <div class="form-group">
45 45
                 <div class="col-lg-offset-1 col-lg-5">
46
-                    <?php echo Html::submitButton(Yii::t('app', 'Send'), ['class' => 'btn btn-primary', 'name' => 'register-button']) ?>
46
+                    <?php echo Html::submitButton(Yii::t('app', 'Send'), [ 'class' => 'btn btn-primary', 'name' => 'register-button' ]) ?>
47 47
                 </div>
48 48
                 <div class="col-lg-6">
49 49
 
Please login to merge, or discard this patch.
views/site/login.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use yii\bootstrap\ActiveForm;
9 9
 
10 10
 $this->title = Yii::t('site', 'Sign in');
11
-$this->params['breadcrumbs'][] = $this->title;
11
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
12 12
 ?>
13 13
 <section id="login">
14 14
     <div class="container">
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
                 'layout' => 'horizontal',
21 21
                 'fieldConfig' => [
22 22
                     'template' => "{label}\n<div class=\"col-lg-4\">{input}</div>\n<div class=\"col-lg-6\">{error}</div>",
23
-                    'labelOptions' => ['class' => 'col-lg-2 control-label'],
23
+                    'labelOptions' => [ 'class' => 'col-lg-2 control-label' ],
24 24
                 ],
25 25
             ]); ?>
26 26
 
27
-            <?php echo $form->field($model, 'login')->textInput(['autofocus' => true])->label(Yii::t('site', 'Login')) ?>
27
+            <?php echo $form->field($model, 'login')->textInput([ 'autofocus' => true ])->label(Yii::t('site', 'Login')) ?>
28 28
 
29 29
             <?php echo $form->field($model, 'password')->passwordInput()->label(Yii::t('site', 'Password')) ?>
30 30
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
             <div class="form-group">
36 36
                 <div class="col-lg-offset-1 col-lg-5">
37
-                    <?php echo Html::submitButton(Yii::t('app', 'Send'), ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
37
+                    <?php echo Html::submitButton(Yii::t('app', 'Send'), [ 'class' => 'btn btn-primary', 'name' => 'login-button' ]) ?>
38 38
                 </div>
39 39
                 <div class="col-lg-6">
40 40
 
Please login to merge, or discard this patch.