Passed
Push — master ( 4e12fe...ad0383 )
by Andrey
04:42
created
views/admin/qualities/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 /* @var $aboutList app\models\About[] */
6 6
 
7 7
 $this->title = Yii::t('qualities', 'Create quality');
8
-$this->params['breadcrumbs'][] = [
8
+$this->params[ 'breadcrumbs' ][ ] = [
9 9
     'label' => Yii::t('qualities', 'Qualities'),
10 10
     'url' => [
11
-        $this->params['urlPrefix'].'index'
11
+        $this->params[ 'urlPrefix' ].'index'
12 12
     ]
13 13
 ];
14
-$this->params['breadcrumbs'][] = Yii::t('app', 'Create');
14
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Create');
15 15
 ?>
16 16
 <div class="qualities-create">
17 17
 
Please login to merge, or discard this patch.
views/admin/contacts/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                 'style' => 'width: 70px;'
64 64
             ])->label(Yii::t('contacts', 'Map zoom')) ?>
65 65
 
66
-            <?php echo $form->field($model, 'default')->checkbox(['value' => 1, 'label' => Yii::t('app', 'Set as default')]) ?>
66
+            <?php echo $form->field($model, 'default')->checkbox([ 'value' => 1, 'label' => Yii::t('app', 'Set as default') ]) ?>
67 67
 
68 68
         </div>
69 69
     </div>
Please login to merge, or discard this patch.
views/admin/contacts/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('contacts', 'Update contact').': ' . $model->mainModel->getDefaultTranslate('title');
7
-$this->params['breadcrumbs'][] = [
6
+$this->title = Yii::t('contacts', 'Update contact').': '.$model->mainModel->getDefaultTranslate('title');
7
+$this->params[ 'breadcrumbs' ][ ] = [
8 8
     'label' => Yii::t('contacts', 'Contacts'),
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="contact-update">
23 23
 
Please login to merge, or discard this patch.
views/admin/contacts/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('contacts', 'Contacts');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="contact-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('contacts', 'Create contact'), [
20
-            $this->params['urlPrefix'].'create'
20
+            $this->params[ 'urlPrefix' ].'create'
21 21
         ], [
22 22
             'class' => 'btn btn-success'
23 23
         ]) ?>
@@ -35,19 +35,19 @@  discard block
 block discarded – undo
35 35
                     /* @var $searchModel ContactSearch */
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',
42 42
             ],
43 43
             [
44 44
                 'attribute' => 'created_at',
45
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
45
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
46 46
                 'label' => Yii::t('app', 'Created date'),
47 47
             ],
48 48
             [
49 49
                 'attribute' => 'updated_at',
50
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
50
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
51 51
                 'label' => Yii::t('app', 'Updated date'),
52 52
             ],
53 53
             'default' => [
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                     }
62 62
 
63 63
                     return Html::a(Yii::t('app', 'Set as default'), Url::to([
64
-                        $this->params['urlPrefix'].'set-default',
64
+                        $this->params[ 'urlPrefix' ].'set-default',
65 65
                         'contactId' => $searchModel->id,
66 66
                     ]), [
67 67
                         'title' => Yii::t('app', 'Set as default'),
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
                 'class' => 'yii\grid\ActionColumn',
74 74
                 'header' => Yii::t('app', 'Actions'),
75 75
                 'template' => '{view} {update} {delete}',
76
-                'urlCreator'=>function($action, $model, $key, $index){
76
+                'urlCreator'=>function($action, $model, $key, $index) {
77 77
                     return Url::to([
78
-                        $this->params['urlPrefix'].$action,
78
+                        $this->params[ 'urlPrefix' ].$action,
79 79
                         'id' => $model->id
80 80
                     ]);
81 81
                 }
Please login to merge, or discard this patch.
views/admin/contacts/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\Contact */
10 10
 
11 11
 $this->title = $model->getDefaultTranslate('title');
12
-$this->params['breadcrumbs'][] = [
12
+$this->params[ 'breadcrumbs' ][ ] = [
13 13
     'label' => Yii::t('contacts', 'Contacts'),
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',
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
                 'label' => Yii::t('app', 'Default status'),
88 88
                 'value' => function($model) {
89 89
                     /* @var $model app\models\Contact */
90
-                    if ($model->default == 1){
91
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Default') . '</i>';
90
+                    if ($model->default == 1) {
91
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Default').'</i>';
92 92
                     } else {
93
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'No') . '</i>';
93
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'No').'</i>';
94 94
                     }
95 95
                 },
96 96
                 'format' => 'raw',
@@ -105,12 +105,12 @@  discard block
 block discarded – undo
105 105
             ],
106 106
             [
107 107
                 'attribute' => 'created_at',
108
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
108
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
109 109
                 'label' => Yii::t('app', 'Created date'),
110 110
             ],
111 111
             [
112 112
                 'attribute' => 'updated_at',
113
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
113
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
114 114
                 'label' => Yii::t('app', 'Updated date'),
115 115
             ],
116 116
         ],
Please login to merge, or discard this patch.
views/admin/contacts/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('contacts', 'Create contact');
7
-$this->params['breadcrumbs'][] = [
7
+$this->params[ 'breadcrumbs' ][ ] = [
8 8
     'label' => Yii::t('contacts', 'Contacts'),
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="contact-create">
16 16
 
Please login to merge, or discard this patch.
views/admin/positions/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('positions', 'Update position').': ' . $model->mainModel->getDefaultTranslate('name');
7
-$this->params['breadcrumbs'][] = [
6
+$this->title = Yii::t('positions', 'Update position').': '.$model->mainModel->getDefaultTranslate('name');
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'][] = [
13
+$this->params[ 'breadcrumbs' ][ ] = [
14 14
     'label' => $model->mainModel->getDefaultTranslate('name'),
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="positions-update">
23 23
 
Please login to merge, or discard this patch.
views/admin/positions/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('positions', 'Positions');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="positions-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('positions', 'Create position'), [
20
-            $this->params['urlPrefix'].'create'
20
+            $this->params[ 'urlPrefix' ].'create'
21 21
         ], [
22 22
             'class' => 'btn btn-success'
23 23
         ]) ?>
@@ -34,29 +34,29 @@  discard block
 block discarded – undo
34 34
                 'value' => function($searchModel) {
35 35
                     /* @var $searchModel PositionSearch */
36 36
                     return Html::a(
37
-                        Html::encode($searchModel->{'name_'.$this->params['shortLanguage']}),
38
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
37
+                        Html::encode($searchModel->{'name_'.$this->params[ 'shortLanguage' ]}),
38
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
39 39
                     );
40 40
                 },
41 41
                 'format' => 'raw',
42 42
             ],
43 43
             [
44 44
                 'attribute' => 'created_at',
45
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
45
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
46 46
                 'label' => Yii::t('app', 'Created date'),
47 47
             ],
48 48
             [
49 49
                 'attribute' => 'updated_at',
50
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
50
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
51 51
                 'label' => Yii::t('app', 'Updated date'),
52 52
             ],
53 53
             [
54 54
                 'class' => 'yii\grid\ActionColumn',
55 55
                 'header' => Yii::t('app', 'Actions'),
56 56
                 'template' => '{view} {update} {delete}',
57
-                'urlCreator'=>function($action, $model, $key, $index){
57
+                'urlCreator'=>function($action, $model, $key, $index) {
58 58
                     return Url::to([
59
-                        $this->params['urlPrefix'].$action,
59
+                        $this->params[ 'urlPrefix' ].$action,
60 60
                         'id' => $model->id
61 61
                     ]);
62 62
                 }
Please login to merge, or discard this patch.
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.