Test Setup Failed
Branch master (193986)
by Andrey
07:40
created
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 app\models\Home */
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/admin/social/view.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 /* @var $model app\models\Social */
8 8
 
9 9
 $this->title = $model->url;
10
-$this->params['breadcrumbs'][] = [
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('social', 'Social'),
12 12
     'url' => [
13
-        $this->params['urlPrefix'].'index'
13
+        $this->params[ 'urlPrefix' ] . 'index'
14 14
     ]
15 15
 ];
16
-$this->params['breadcrumbs'][] = $this->title;
16
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
17 17
 ?>
18 18
 
19 19
 <style>
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
 
28 28
     <p>
29 29
         <?php echo Html::a(Yii::t('app', 'Update'), [
30
-            $this->params['urlPrefix'].'update',
30
+            $this->params[ 'urlPrefix' ] . 'update',
31 31
             'id' => $model->id
32 32
         ], [
33 33
             'class' => 'btn btn-primary'
34 34
         ]) ?>
35 35
 
36 36
         <?php echo Html::a(Yii::t('app', 'Delete'), [
37
-            $this->params['urlPrefix'].'delete',
37
+            $this->params[ 'urlPrefix' ] . 'delete',
38 38
             'id' => $model->id
39 39
         ], [
40 40
             'class' => 'btn btn-danger',
@@ -51,15 +51,15 @@  discard block
 block discarded – undo
51 51
             'id',
52 52
             [
53 53
                 'label' => Yii::t('app', 'Icon'),
54
-                'value' => function ($model) {
54
+                'value' => function($model) {
55 55
                     /* @var $model app\models\Social */
56
-                    return Html::tag('i', '', ['class' => $model->icon]);
56
+                    return Html::tag('i', '', [ 'class' => $model->icon ]);
57 57
                 },
58 58
                 'format' => 'raw',
59 59
             ],
60 60
             [
61 61
                 'label' => Yii::t('social', 'Url'),
62
-                'value' => function ($model) {
62
+                'value' => function($model) {
63 63
                     /* @var $model app\models\Social */
64 64
                     return Html::a(
65 65
                         Html::encode($model->url),
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
             ],
74 74
             [
75 75
                 'label' => Yii::t('social', 'Parent contact records'),
76
-                'value' => function ($model) {
76
+                'value' => function($model) {
77 77
                     /* @var $model app\models\Social */
78 78
                     $contactRecords = '';
79 79
                     foreach ($model->contacts as $contactRecord) {
80 80
                         $contactRecords .= Html::tag('li',
81 81
                             Html::a($contactRecord->title,
82
-                                Url::to(['/admin/contacts/view', 'id' => $contactRecord->id]),
82
+                                Url::to([ '/admin/contacts/view', 'id' => $contactRecord->id ]),
83 83
                                 [
84 84
                                     'target' => '_blank'
85 85
                                 ]
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
             ],
96 96
             [
97 97
                 'attribute' => 'created_at',
98
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
98
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
99 99
                 'label' => Yii::t('app', 'Created date'),
100 100
             ],
101 101
             [
102 102
                 'attribute' => 'updated_at',
103
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
103
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
104 104
                 'label' => Yii::t('app', 'Updated date'),
105 105
             ],
106 106
         ],
Please login to merge, or discard this patch.
views/admin/social/update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,21 +4,21 @@
 block discarded – undo
4 4
 /* @var $model app\models\Social */
5 5
 /* @var $contactList app\models\Contact[] */
6 6
 
7
-$this->title = Yii::t('social', 'Update social').': ' . $model->url;
8
-$this->params['breadcrumbs'][] = [
7
+$this->title = Yii::t('social', 'Update social') . ': ' . $model->url;
8
+$this->params[ 'breadcrumbs' ][ ] = [
9 9
     'label' => Yii::t('social', 'Social'),
10 10
     'url' => [
11
-        $this->params['urlPrefix'].'index'
11
+        $this->params[ 'urlPrefix' ] . 'index'
12 12
     ]
13 13
 ];
14
-$this->params['breadcrumbs'][] = [
14
+$this->params[ 'breadcrumbs' ][ ] = [
15 15
     'label' => $model->url,
16 16
     'url' => [
17
-        $this->params['urlPrefix'].'view',
17
+        $this->params[ 'urlPrefix' ] . 'view',
18 18
         'id' => $model->id
19 19
     ]
20 20
 ];
21
-$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
21
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Update');
22 22
 ?>
23 23
 <div class="social-update">
24 24
 
Please login to merge, or discard this patch.
views/admin/social/_form.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
             <?php echo $form->field($model, 'icon')->textInput()->label(Yii::t('app', 'Icon html class')); ?>
21 21
             <div class="row" style="margin-bottom: 15px;">
22 22
                 <div class="col-md-12">
23
-                    <?php if(!$model->isNewRecord): ?>
24
-                        <?php echo empty($model->icon) ? '' : Html::tag('i', '', ['class' => $model->icon]) ?>
23
+                    <?php if (!$model->isNewRecord): ?>
24
+                        <?php echo empty($model->icon) ? '' : Html::tag('i', '', [ 'class' => $model->icon ]) ?>
25 25
                     <?php endif; ?>
26 26
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
27 27
                         'target' => '_blank'
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
                     <?php
30 30
                     Modal::begin([
31 31
                         'header' => '<h2>Fe icons</h2>',
32
-                        'toggleButton' => ['label' => 'Fe icons'],
32
+                        'toggleButton' => [ 'label' => 'Fe icons' ],
33 33
                     ]);
34
-                    require __DIR__.'/fe-social-icons.php';
34
+                    require __DIR__ . '/fe-social-icons.php';
35 35
                     Modal::end();
36 36
                     ?>
37 37
                 </div>
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             <?php echo $form->field($model, 'url')->textInput()->label(Yii::t('social', 'Url')); ?>
41 41
 
42 42
             <?php echo $form->field($model, 'contacts')
43
-                ->checkboxList(ArrayHelper::map($contactList, 'id', function ($item) {
43
+                ->checkboxList(ArrayHelper::map($contactList, 'id', function($item) {
44 44
                     /* @var $item app\models\Contact */
45 45
                     return $item->title;
46 46
                 }), [
Please login to merge, or discard this patch.
views/admin/social/index.php 1 patch
Spacing   +10 added lines, -10 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('social', 'Social');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="social-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('social', 'Create social'), [
20
-            $this->params['urlPrefix'].'create'
20
+            $this->params[ 'urlPrefix' ] . 'create'
21 21
         ], [
22 22
             'class' => 'btn btn-success'
23 23
         ]) ?>
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
                 'value' => function($searchModel) {
35 35
                     /* @var $searchModel SocialSearch */
36 36
                     return Html::a(
37
-                        Html::tag('i', '', ['class' => $searchModel->icon]),
38
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
37
+                        Html::tag('i', '', [ 'class' => $searchModel->icon ]),
38
+                        Url::to([ $this->params[ 'urlPrefix' ] . 'view', 'id' => $searchModel->id ])
39 39
                     );
40 40
                 },
41 41
                 'format' => 'raw',
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
             ],
57 57
             'contacts' => [
58 58
                 'label' => Yii::t('social', 'Parent contact records'),
59
-                'value' => function ($searchModel) {
59
+                'value' => function($searchModel) {
60 60
                     /* @var $searchModel SocialSearch */
61 61
                     $contactRecords = '';
62 62
                     foreach ($searchModel->contacts as $contactRecord) {
63 63
                         $contactRecords .= Html::tag('li',
64 64
                             Html::a($contactRecord->title,
65
-                                Url::to(['/admin/contacts/view', 'id' => $contactRecord->id]),
65
+                                Url::to([ '/admin/contacts/view', 'id' => $contactRecord->id ]),
66 66
                                 [
67 67
                                     'target' => '_blank'
68 68
                                 ]
@@ -78,21 +78,21 @@  discard block
 block discarded – undo
78 78
             ],
79 79
             [
80 80
                 'attribute' => 'created_at',
81
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
81
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
82 82
                 'label' => Yii::t('app', 'Created date'),
83 83
             ],
84 84
             [
85 85
                 'attribute' => 'updated_at',
86
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
86
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
87 87
                 'label' => Yii::t('app', 'Updated date'),
88 88
             ],
89 89
             [
90 90
                 'class' => 'yii\grid\ActionColumn',
91 91
                 'header' => Yii::t('app', 'Actions'),
92 92
                 'template' => '{view} {update} {delete}',
93
-                'urlCreator'=>function($action, $model, $key, $index){
93
+                'urlCreator'=>function($action, $model, $key, $index) {
94 94
                     return Url::to([
95
-                        $this->params['urlPrefix'].$action,
95
+                        $this->params[ 'urlPrefix' ] . $action,
96 96
                         'id' => $model->id
97 97
                     ]);
98 98
                 }
Please login to merge, or discard this patch.
views/admin/social/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 $contactList app\models\Contact[] */
6 6
 
7 7
 $this->title = Yii::t('social', 'Create social');
8
-$this->params['breadcrumbs'][] = [
8
+$this->params[ 'breadcrumbs' ][ ] = [
9 9
     'label' => Yii::t('social', 'Social'),
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="social-create">
17 17
 
Please login to merge, or discard this patch.
views/admin/contacts/view.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 /* @var $model app\models\Contact */
8 8
 
9 9
 $this->title = $model->title;
10
-$this->params['breadcrumbs'][] = [
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('contacts', 'Contacts'),
12 12
     'url' => [
13
-        $this->params['urlPrefix'].'index'
13
+        $this->params[ 'urlPrefix' ] . 'index'
14 14
     ]
15 15
 ];
16
-$this->params['breadcrumbs'][] = $this->title;
16
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
17 17
 ?>
18 18
 
19 19
 <style>
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
 
28 28
     <p>
29 29
         <?php echo Html::a(Yii::t('app', 'Update'), [
30
-            $this->params['urlPrefix'].'update',
30
+            $this->params[ 'urlPrefix' ] . 'update',
31 31
             'id' => $model->id
32 32
         ], [
33 33
             'class' => 'btn btn-primary'
34 34
         ]) ?>
35 35
 
36 36
         <?php echo Html::a(Yii::t('app', 'Delete'), [
37
-            $this->params['urlPrefix'].'delete',
37
+            $this->params[ 'urlPrefix' ] . 'delete',
38 38
             'id' => $model->id
39 39
         ], [
40 40
             'class' => 'btn btn-danger',
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 'label' => Yii::t('app', 'Default status'),
78 78
                 'value' => function($model) {
79 79
                     /* @var $model app\models\Contact */
80
-                    if ($model->default == 1){
80
+                    if ($model->default == 1) {
81 81
                         return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Default') . '</i>';
82 82
                     } else {
83 83
                         return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'No') . '</i>';
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
             ],
96 96
             [
97 97
                 'attribute' => 'created_at',
98
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
98
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
99 99
                 'label' => Yii::t('app', 'Created date'),
100 100
             ],
101 101
             [
102 102
                 'attribute' => 'updated_at',
103
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
103
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
104 104
                 'label' => Yii::t('app', 'Updated date'),
105 105
             ],
106 106
         ],
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 app\models\Contact */
5 5
 
6
-$this->title = Yii::t('contacts', 'Update contact').': ' . $model->title;
7
-$this->params['breadcrumbs'][] = [
6
+$this->title = Yii::t('contacts', 'Update contact') . ': ' . $model->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->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/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
                 'style' => 'width: 70px;'
62 62
             ])->label(Yii::t('contacts', 'Map zoom')) ?>
63 63
 
64
-            <?php echo $form->field($model, 'default')->checkbox(['value' => 1, 'label' => Yii::t('app', 'Set as default')]) ?>
64
+            <?php echo $form->field($model, 'default')->checkbox([ 'value' => 1, 'label' => Yii::t('app', 'Set as default') ]) ?>
65 65
 
66 66
         </div>
67 67
     </div>
Please login to merge, or discard this patch.