Test Setup Failed
Branch master (193986)
by Andrey
07:40
created
views/admin/technologies/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\Technology */
5 5
 /* @var $aboutList app\models\About[] */
6 6
 
7
-$this->title = Yii::t('technologies', 'Update technology').': ' . $model->name;
8
-$this->params['breadcrumbs'][] = [
7
+$this->title = Yii::t('technologies', 'Update technology') . ': ' . $model->name;
8
+$this->params[ 'breadcrumbs' ][ ] = [
9 9
     'label' => Yii::t('technologies', 'Technologies'),
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->name,
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="technologies-update">
24 24
 
Please login to merge, or discard this patch.
views/admin/technologies/_form.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
             ])->label(Yii::t('app', 'Icon html class')); ?>
29 29
             <div class="row" style="margin-bottom: 15px;">
30 30
                 <div class="col-md-4">
31
-                    <?php if(!$model->isNewRecord): ?>
32
-                        <?php echo Html::tag('i', '', ['class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon]) ?>
31
+                    <?php if (!$model->isNewRecord): ?>
32
+                        <?php echo Html::tag('i', '', [ 'class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon ]) ?>
33 33
                     <?php endif; ?>
34 34
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
35 35
                         'target' => '_blank'
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             </div>
39 39
 
40 40
             <?php echo $form->field($model, 'about')
41
-                ->checkboxList(ArrayHelper::map($aboutList, 'id', function ($item) {
41
+                ->checkboxList(ArrayHelper::map($aboutList, 'id', function($item) {
42 42
                     /* @var $item app\models\About */
43 43
                     return $item->title;
44 44
                 }), [
Please login to merge, or discard this patch.
views/admin/technologies/index.php 1 patch
Spacing   +11 added lines, -11 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('technologies', 'Technologies');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="technologies-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('technologies', 'Create technology'), [
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 TechnologySearch */
36 36
                     return Html::a(
37
-                        Html::tag('i', '', ['class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon]),
38
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
37
+                        Html::tag('i', '', [ 'class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon ]),
38
+                        Url::to([ $this->params[ 'urlPrefix' ] . 'view', 'id' => $searchModel->id ])
39 39
                     );
40 40
                 },
41 41
                 'format' => 'raw',
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                     /* @var $searchModel TechnologySearch */
47 47
                     return Html::a(
48 48
                         Html::encode($searchModel->name),
49
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
49
+                        Url::to([ $this->params[ 'urlPrefix' ] . 'view', 'id' => $searchModel->id ])
50 50
                     );
51 51
                 },
52 52
                 'format' => 'raw',
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
             ],
58 58
             'about' => [
59 59
                 'label' => Yii::t('technologies', 'Parent about records'),
60
-                'value' => function ($searchModel) {
60
+                'value' => function($searchModel) {
61 61
                     /* @var $searchModel TechnologySearch */
62 62
                     $aboutRecords = '';
63 63
                     foreach ($searchModel->about as $aboutRecord) {
64 64
                         $aboutRecords .= Html::tag('li',
65 65
                             Html::a($aboutRecord->title,
66
-                                Url::to(['/admin/about/view', 'id' => $aboutRecord->id]),
66
+                                Url::to([ '/admin/about/view', 'id' => $aboutRecord->id ]),
67 67
                                 [
68 68
                                     'target' => '_blank'
69 69
                                 ]
@@ -79,21 +79,21 @@  discard block
 block discarded – undo
79 79
             ],
80 80
             [
81 81
                 'attribute' => 'created_at',
82
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
82
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
83 83
                 'label' => Yii::t('app', 'Created date'),
84 84
             ],
85 85
             [
86 86
                 'attribute' => 'updated_at',
87
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
87
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
88 88
                 'label' => Yii::t('app', 'Updated date'),
89 89
             ],
90 90
             [
91 91
                 'class' => 'yii\grid\ActionColumn',
92 92
                 'header' => Yii::t('app', 'Actions'),
93 93
                 'template' => '{view} {update} {delete}',
94
-                'urlCreator'=>function($action, $model, $key, $index){
94
+                'urlCreator'=>function($action, $model, $key, $index) {
95 95
                     return Url::to([
96
-                        $this->params['urlPrefix'].$action,
96
+                        $this->params[ 'urlPrefix' ] . $action,
97 97
                         'id' => $model->id
98 98
                     ]);
99 99
                 }
Please login to merge, or discard this patch.
views/admin/technologies/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('technologies', 'Create technology');
8
-$this->params['breadcrumbs'][] = [
8
+$this->params[ 'breadcrumbs' ][ ] = [
9 9
     'label' => Yii::t('technologies', 'Technologies'),
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="technologies-create">
17 17
 
Please login to merge, or discard this patch.
views/admin/qualities/view.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 /* @var $model app\models\Quality */
8 8
 
9 9
 $this->title = $model->title;
10
-$this->params['breadcrumbs'][] = [
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('qualities', 'Qualities'),
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',
@@ -61,19 +61,19 @@  discard block
 block discarded – undo
61 61
                 'label' => Yii::t('app', 'Icon'),
62 62
                 'value' => function($model) {
63 63
                     /* @var $model app\models\Quality */
64
-                    return Html::tag('i', '', ['class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon]);
64
+                    return Html::tag('i', '', [ 'class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon ]);
65 65
                 },
66 66
                 'format' => 'raw',
67 67
             ],
68 68
             [
69 69
                 'label' => Yii::t('qualities', 'Parent about records'),
70
-                'value' => function ($model) {
70
+                'value' => function($model) {
71 71
                     /* @var $model app\models\Quality */
72 72
                     $aboutRecords = '';
73 73
                     foreach ($model->about as $aboutRecord) {
74 74
                         $aboutRecords .= Html::tag('li',
75 75
                             Html::a($aboutRecord->title,
76
-                                Url::to(['/admin/about/view', 'id' => $aboutRecord->id]),
76
+                                Url::to([ '/admin/about/view', 'id' => $aboutRecord->id ]),
77 77
                                 [
78 78
                                     'target' => '_blank'
79 79
                                 ]
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
             ],
90 90
             [
91 91
                 'attribute' => 'created_at',
92
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
92
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
93 93
                 'label' => Yii::t('app', 'Created date'),
94 94
             ],
95 95
             [
96 96
                 'attribute' => 'updated_at',
97
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
97
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
98 98
                 'label' => Yii::t('app', 'Updated date'),
99 99
             ],
100 100
         ],
Please login to merge, or discard this patch.
views/admin/qualities/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\Quality */
5 5
 /* @var $aboutList app\models\About[] */
6 6
 
7
-$this->title = Yii::t('qualities', 'Update quality').': ' . $model->title;
8
-$this->params['breadcrumbs'][] = [
7
+$this->title = Yii::t('qualities', 'Update quality') . ': ' . $model->title;
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'][] = [
14
+$this->params[ 'breadcrumbs' ][ ] = [
15 15
     'label' => $model->title,
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="qualities-update">
24 24
 
Please login to merge, or discard this patch.
views/admin/qualities/_form.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                             'filebrowserWindowHeight' => '700',
41 41
                             'extraPlugins' => 'pbckcode',
42 42
                             'toolbarGroups' => [
43
-                                ['name' => 'pbckcode']
43
+                                [ 'name' => 'pbckcode' ]
44 44
                             ],
45 45
                             'allowedContent' => true,
46 46
                             'language' => Yii::$app->language,
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
             ])->label(Yii::t('app', 'Icon html class')); ?>
58 58
             <div class="row" style="margin-bottom: 15px;">
59 59
                 <div class="col-md-4">
60
-                    <?php if(!$model->isNewRecord): ?>
61
-                        <?php echo Html::tag('i', '', ['class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon]) ?>
60
+                    <?php if (!$model->isNewRecord): ?>
61
+                        <?php echo Html::tag('i', '', [ 'class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon ]) ?>
62 62
                     <?php endif; ?>
63 63
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
64 64
                         'target' => '_blank'
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             </div>
68 68
 
69 69
             <?php echo $form->field($model, 'about')
70
-                ->checkboxList(ArrayHelper::map($aboutList, 'id', function ($item) {
70
+                ->checkboxList(ArrayHelper::map($aboutList, 'id', function($item) {
71 71
                     /* @var $item app\models\About */
72 72
                     return $item->title;
73 73
                 }), [
Please login to merge, or discard this patch.
views/admin/qualities/index.php 1 patch
Spacing   +11 added lines, -11 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('qualities', 'Qualities');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="qualities-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('qualities', 'Create quality'), [
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 QualitySearch */
36 36
                     return Html::a(
37
-                        Html::tag('i', '', ['class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon]),
38
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
37
+                        Html::tag('i', '', [ 'class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon ]),
38
+                        Url::to([ $this->params[ 'urlPrefix' ] . 'view', 'id' => $searchModel->id ])
39 39
                     );
40 40
                 },
41 41
                 'format' => 'raw',
@@ -46,20 +46,20 @@  discard block
 block discarded – undo
46 46
                     /* @var $searchModel QualitySearch */
47 47
                     return Html::a(
48 48
                         Html::encode($searchModel->title),
49
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
49
+                        Url::to([ $this->params[ 'urlPrefix' ] . 'view', 'id' => $searchModel->id ])
50 50
                     );
51 51
                 },
52 52
                 'format' => 'raw',
53 53
             ],
54 54
             'about' => [
55 55
                 'label' => Yii::t('qualities', 'Parent about records'),
56
-                'value' => function ($searchModel) {
56
+                'value' => function($searchModel) {
57 57
                     /* @var $searchModel QualitySearch */
58 58
                     $aboutRecords = '';
59 59
                     foreach ($searchModel->about as $aboutRecord) {
60 60
                         $aboutRecords .= Html::tag('li',
61 61
                             Html::a($aboutRecord->title,
62
-                                Url::to(['/admin/about/view', 'id' => $aboutRecord->id]),
62
+                                Url::to([ '/admin/about/view', 'id' => $aboutRecord->id ]),
63 63
                                 [
64 64
                                     'target' => '_blank'
65 65
                                 ]
@@ -75,21 +75,21 @@  discard block
 block discarded – undo
75 75
             ],
76 76
             [
77 77
                 'attribute' => 'created_at',
78
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
78
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
79 79
                 'label' => Yii::t('app', 'Created date'),
80 80
             ],
81 81
             [
82 82
                 'attribute' => 'updated_at',
83
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
83
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
84 84
                 'label' => Yii::t('app', 'Updated date'),
85 85
             ],
86 86
             [
87 87
                 'class' => 'yii\grid\ActionColumn',
88 88
                 'header' => Yii::t('app', 'Actions'),
89 89
                 'template' => '{view} {update} {delete}',
90
-                'urlCreator'=>function($action, $model, $key, $index){
90
+                'urlCreator'=>function($action, $model, $key, $index) {
91 91
                     return Url::to([
92
-                        $this->params['urlPrefix'].$action,
92
+                        $this->params[ 'urlPrefix' ] . $action,
93 93
                         'id' => $model->id
94 94
                     ]);
95 95
                 }
Please login to merge, or discard this patch.
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.