Test Setup Failed
Branch master (193986)
by Andrey
07:40
created
views/admin/settings/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 /* @var $roles yii\rbac\Role[] */
10 10
 
11 11
 $this->title = Yii::t('settings', 'Settings');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="settings-index">
15 15
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     <div class="form-group">
43 43
         <?php echo Html::submitButton(Yii::t('app', 'Update'),
44
-            ['class' => 'btn btn-success']) ?>
44
+            [ 'class' => 'btn btn-success' ]) ?>
45 45
     </div>
46 46
 
47 47
     <?php ActiveForm::end(); ?>
Please login to merge, or discard this patch.
views/admin/mediafiles/_existing-mediafiles.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
 </style>
28 28
 
29 29
 <div class="row">
30
-    <?php $i=0; ?>
30
+    <?php $i = 0; ?>
31 31
     <?php foreach ($mediafiles as $mediafile): ?>
32 32
         <div class="col-md-6 file-item">
33
-            <?php $i+=1; ?>
33
+            <?php $i += 1; ?>
34 34
             <div class="media">
35 35
                 <div class="media-left" id="mediafile-container-<?php echo $i; ?>">
36 36
                     <?php echo $mediafile->getPreview($baseUrl, 'existing', $mediafile->isImage() ? [
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                                 'target' => '_blank'
42 42
                             ]
43 43
                         ]
44
-                    ] : []); ?>
44
+                    ] : [ ]); ?>
45 45
                 </div>
46 46
                 <div class="media-body">
47 47
                     <h4 id="title-container-<?php echo $i; ?>" class="media-heading">
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
             </div>
55 55
             <?php echo FileSetter::widget(ArrayHelper::merge([
56 56
                     'model' => $model,
57
-                    'attribute' => $fileType.'[]',
57
+                    'attribute' => $fileType . '[]',
58 58
                     'neededFileType' => $fileType,
59
-                    'buttonName' => Module::t('main', 'Set '.$fileType),
59
+                    'buttonName' => Module::t('main', 'Set ' . $fileType),
60 60
                     'resetButtonName' => Module::t('main', 'Clear'),
61 61
                     'options' => [
62 62
                         'id' => Html::getInputId($model, $fileType) . '-' . $i,
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
                     'subDir' => $model->tableName()
74 74
                 ], isset($ownerParams) && is_array($ownerParams) ? ArrayHelper::merge([
75 75
                     'ownerAttribute' => $fileType
76
-                ], $ownerParams) : [])
76
+                ], $ownerParams) : [ ])
77 77
             ); ?>
78 78
         </div>
79 79
     <?php endforeach; ?>
80 80
 </div>
81 81
 
82
-<?php echo LinkPager::widget(['pagination' => $pages]) ?>
82
+<?php echo LinkPager::widget([ 'pagination' => $pages ]) ?>
Please login to merge, or discard this patch.
views/admin/mediafiles/_new-mediafiles.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
 
23 23
 <?php echo FileSetter::widget(ArrayHelper::merge([
24 24
         'model' => $model,
25
-        'attribute' => $fileType.'[]',
25
+        'attribute' => $fileType . '[]',
26 26
         'neededFileType' => $fileType,
27
-        'buttonName' => Module::t('main', 'Set '.$fileType),
27
+        'buttonName' => Module::t('main', 'Set ' . $fileType),
28 28
         'resetButtonName' => Module::t('main', 'Clear'),
29 29
         'options' => [
30 30
             'id' => Html::getInputId($model, $fileType) . (isset($number) ? '-new-' . $number : '')
@@ -35,5 +35,5 @@  discard block
 block discarded – undo
35 35
         'subDir' => $model->tableName()
36 36
     ], isset($ownerParams) && is_array($ownerParams) ? ArrayHelper::merge([
37 37
         'ownerAttribute' => $fileType
38
-    ], $ownerParams) : [])
38
+    ], $ownerParams) : [ ])
39 39
 ); ?>
Please login to merge, or discard this patch.
views/admin/mediafiles/_thumbnail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,5 +28,5 @@
 block discarded – undo
28 28
         'subDir' => $model->tableName()
29 29
     ], isset($ownerParams) && is_array($ownerParams) ? ArrayHelper::merge([
30 30
         'ownerAttribute' => UploadModelInterface::FILE_TYPE_THUMB
31
-    ], $ownerParams) : [])
31
+    ], $ownerParams) : [ ])
32 32
 ); ?>
Please login to merge, or discard this patch.
views/admin/errors/access_error.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 $this->title = '';
3
-$this->params['breadcrumbs'][] = '';
3
+$this->params[ 'breadcrumbs' ][ ] = '';
4 4
 ?>
5 5
 <div class="errors-index">
6 6
 
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
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 /* @var $model app\models\Position */
8 8
 
9 9
 $this->title = $model->name;
10
-$this->params['breadcrumbs'][] = [
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('positions', 'Positions'),
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',
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
             ],
56 56
             [
57 57
                 'attribute' => 'created_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', 'Created date'),
60 60
             ],
61 61
             [
62 62
                 'attribute' => 'updated_at',
63
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
63
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
64 64
                 'label' => Yii::t('app', 'Updated date'),
65 65
             ],
66 66
         ],
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 app\models\Position */
5 5
 
6
-$this->title = Yii::t('positions', 'Update position').': ' . $model->name;
7
-$this->params['breadcrumbs'][] = [
6
+$this->title = Yii::t('positions', 'Update position') . ': ' . $model->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->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   +7 added lines, -7 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
         ]) ?>
@@ -35,28 +35,28 @@  discard block
 block discarded – undo
35 35
                     /* @var $searchModel PositionSearch */
36 36
                     return Html::a(
37 37
                         Html::encode($searchModel->name),
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
             [
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/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\Position */
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.