Passed
Push — master ( fe7b3f...22651e )
by Andrey
08:30
created
models/HomeSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/AboutSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/SocialSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/TechnologySearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/PositionSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/ContactSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/Page.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @var array
43 43
      */
44
-    public $albums = [];
44
+    public $albums = [ ];
45 45
 
46 46
     /**
47 47
      * @var int
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
             ],
107 107
             [
108 108
                 UploadModelInterface::FILE_TYPE_THUMB,
109
-                function($attribute){
110
-                    if (!is_numeric($this->{$attribute}) && !is_string($this->{$attribute})){
109
+                function($attribute) {
110
+                    if (!is_numeric($this->{$attribute}) && !is_string($this->{$attribute})) {
111 111
                         $this->addError($attribute, 'Tumbnail content must be a numeric or string.');
112 112
                     }
113 113
                 },
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             [
117 117
                 'albums',
118 118
                 'each',
119
-                'rule' => ['integer'],
119
+                'rule' => [ 'integer' ],
120 120
             ],
121 121
         ];
122 122
     }
@@ -271,11 +271,11 @@  discard block
 block discarded – undo
271 271
      *
272 272
      * @return mixed
273 273
      */
274
-    public function getDefaultThumbImage(array $options = [])
274
+    public function getDefaultThumbImage(array $options = [ ])
275 275
     {
276 276
         $thumbnailModel = $this->getThumbnailModel();
277 277
 
278
-        if (null === $thumbnailModel){
278
+        if (null === $thumbnailModel) {
279 279
             return null;
280 280
         }
281 281
 
@@ -285,8 +285,8 @@  discard block
 block discarded – undo
285 285
             return null;
286 286
         }
287 287
 
288
-        if (empty($options['alt'])) {
289
-            $options['alt'] = $thumbnailModel->alt;
288
+        if (empty($options[ 'alt' ])) {
289
+            $options[ 'alt' ] = $thumbnailModel->alt;
290 290
         }
291 291
 
292 292
         return Html::img($url, $options);
Please login to merge, or discard this patch.
models/Product.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @var array
48 48
      */
49
-    public $albums = [];
49
+    public $albums = [ ];
50 50
 
51 51
     /**
52 52
      * @var array|null|\yii\db\ActiveRecord|Mediafile
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
                 'exist',
114 114
                 'skipOnError' => true,
115 115
                 'targetClass' => Page::class,
116
-                'targetAttribute' => ['pageId' => 'id']
116
+                'targetAttribute' => [ 'pageId' => 'id' ]
117 117
             ],
118 118
             [
119 119
                 UploadModelInterface::FILE_TYPE_THUMB,
120
-                function($attribute){
121
-                    if (!is_numeric($this->{$attribute}) && !is_string($this->{$attribute})){
120
+                function($attribute) {
121
+                    if (!is_numeric($this->{$attribute}) && !is_string($this->{$attribute})) {
122 122
                         $this->addError($attribute, 'Tumbnail content must be a numeric or string.');
123 123
                     }
124 124
                 },
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             [
137 137
                 'albums',
138 138
                 'each',
139
-                'rule' => ['integer'],
139
+                'rule' => [ 'integer' ],
140 140
             ],
141 141
         ];
142 142
     }
@@ -251,11 +251,11 @@  discard block
 block discarded – undo
251 251
      *
252 252
      * @return mixed
253 253
      */
254
-    public function getDefaultThumbImage(array $options = [])
254
+    public function getDefaultThumbImage(array $options = [ ])
255 255
     {
256 256
         $thumbnailModel = $this->getThumbnailModel();
257 257
 
258
-        if (null === $thumbnailModel){
258
+        if (null === $thumbnailModel) {
259 259
             return null;
260 260
         }
261 261
 
@@ -265,8 +265,8 @@  discard block
 block discarded – undo
265 265
             return null;
266 266
         }
267 267
 
268
-        if (empty($options['alt'])) {
269
-            $options['alt'] = $thumbnailModel->alt;
268
+        if (empty($options[ 'alt' ])) {
269
+            $options[ 'alt' ] = $thumbnailModel->alt;
270 270
         }
271 271
 
272 272
         return Html::img($url, $options);
Please login to merge, or discard this patch.
views/admin/pages/_form.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
                             'filebrowserWindowHeight' => '700',
52 52
                             'extraPlugins' => 'pbckcode',
53 53
                             'toolbarGroups' => [
54
-                                ['name' => 'pbckcode']
54
+                                [ 'name' => 'pbckcode' ]
55 55
                             ],
56 56
                             'allowedContent' => true,
57
-                            'language' => $this->params['shortLanguage'],
57
+                            'language' => $this->params[ 'shortLanguage' ],
58 58
                         ]
59 59
                     ],
60 60
                     [
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
             ])->label(Yii::t('app', 'Icon html class')); ?>
80 80
             <div class="row" style="margin-bottom: 15px;">
81 81
                 <div class="col-md-4">
82
-                    <?php if(!$model->mainModel->isNewRecord): ?>
83
-                        <?php echo Html::tag('i', '', ['class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon]) ?>
82
+                    <?php if (!$model->mainModel->isNewRecord): ?>
83
+                        <?php echo Html::tag('i', '', [ 'class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon ]) ?>
84 84
                     <?php endif; ?>
85 85
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
86 86
                         'target' => '_blank'
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             <!-- Thumbnail end -->
101 101
 
102 102
             <?php echo $form->field($model, 'active')
103
-                ->radioList([1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive')])
103
+                ->radioList([ 1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive') ])
104 104
                 ->label(Yii::t('app', 'Active status')); ?>
105 105
 
106 106
             <?php echo Html::label(Yii::t('app', 'Parent object'), 'multi-level-menu', [
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
                 ],
116 116
                 'mainContainerOptions' => [
117 117
                     'levels' => [
118
-                        ['style' => 'margin-left: 0; padding-left: 0;'],
119
-                        ['style' => 'margin-left: 10px; padding-left: 10px;'],
118
+                        [ 'style' => 'margin-left: 0; padding-left: 0;' ],
119
+                        [ 'style' => 'margin-left: 10px; padding-left: 10px;' ],
120 120
                     ]
121 121
                 ],
122 122
                 'itemContainerOptions' => [
Please login to merge, or discard this patch.