Passed
Pull Request — master (#1)
by
unknown
10:56 queued 05:50
created
views/admin/pages/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 /* @var $albums Itstructure\MFUploader\models\album\Album[] */
7 7
 
8 8
 $this->title = Yii::t('pages', 'Create page');
9
-$this->params['breadcrumbs'][] = [
9
+$this->params[ 'breadcrumbs' ][ ] = [
10 10
     'label' => Yii::t('pages', 'Pages'),
11 11
     'url' => [
12
-        $this->params['urlPrefix'].'index'
12
+        $this->params[ 'urlPrefix' ].'index'
13 13
     ]
14 14
 ];
15
-$this->params['breadcrumbs'][] = Yii::t('app', 'Create');
15
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Create');
16 16
 ?>
17 17
 <div class="page-create">
18 18
 
Please login to merge, or discard this patch.
views/admin/products/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 /* @var $albums Itstructure\MFUploader\models\album\Album[] */
7 7
 
8 8
 $this->title = Yii::t('products', 'Create product');
9
-$this->params['breadcrumbs'][] = [
9
+$this->params[ 'breadcrumbs' ][ ] = [
10 10
     'label' => Yii::t('products', 'Products'),
11 11
     'url' => [
12
-        $this->params['urlPrefix'].'index'
12
+        $this->params[ 'urlPrefix' ].'index'
13 13
     ]
14 14
 ];
15
-$this->params['breadcrumbs'][] = Yii::t('app', 'Create');
15
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Create');
16 16
 ?>
17 17
 <div class="product-create">
18 18
 
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->mainModel->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/mediafiles/_new-mediafiles.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
         'buttonName' => Module::t('main', 'Set '.$fileType),
29 29
         'resetButtonName' => Module::t('main', 'Clear'),
30 30
         'options' => [
31
-            'id' => Html::getInputId($model, $fileType) . (isset($number) ? '-new-' . $number : '')
31
+            'id' => Html::getInputId($model, $fileType).(isset($number) ? '-new-'.$number : '')
32 32
         ],
33
-        'mediafileContainer' => '#mediafile-container-new' . (isset($number) ? '-' . $number : ''),
34
-        'titleContainer' => '#title-container-new' . (isset($number) ? '-' . $number : ''),
35
-        'descriptionContainer' => '#description-container-new' . (isset($number) ? '-' . $number : ''),
33
+        'mediafileContainer' => '#mediafile-container-new'.(isset($number) ? '-'.$number : ''),
34
+        'titleContainer' => '#title-container-new'.(isset($number) ? '-'.$number : ''),
35
+        'descriptionContainer' => '#description-container-new'.(isset($number) ? '-'.$number : ''),
36 36
         'subDir' => $model->mainModel->tableName()
37 37
     ], isset($ownerParams) && is_array($ownerParams) ? ArrayHelper::merge([
38 38
         'ownerAttribute' => $fileType
39
-    ], $ownerParams) : [])
39
+    ], $ownerParams) : [ ])
40 40
 ); ?>
Please login to merge, or discard this patch.
config/preview-options.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 return [
7 7
     UploadModelInterface::FILE_TYPE_APP => [
8
-        'existing' => function (Mediafile $mediafile) {
8
+        'existing' => function(Mediafile $mediafile) {
9 9
             return [
10 10
                 'externalTag' => [
11 11
                     'name' => 'a',
Please login to merge, or discard this patch.
models/User.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 'exist',
138 138
                 'skipOnError' => true,
139 139
                 'targetClass' => Position::class,
140
-                'targetAttribute' => ['position_id' => 'id']
140
+                'targetAttribute' => [ 'position_id' => 'id' ]
141 141
             ],
142 142
         ];
143 143
     }
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
      */
308 308
     public function getFullName(): string
309 309
     {
310
-        return $this->first_name . ' ' . $this->last_name;
310
+        return $this->first_name.' '.$this->last_name;
311 311
     }
312 312
 
313 313
     /**
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
      */
433 433
     public function moveOrder(int $order): void
434 434
     {
435
-        if ($order == $this->order){
435
+        if ($order == $this->order) {
436 436
             return;
437 437
         }
438 438
 
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
             ])
444 444
             ->one();
445 445
         $future->detachBehavior('mediafile');
446
-        $future->order = $order > $this->order ? $order-1 : $order+1;
446
+        $future->order = $order > $this->order ? $order - 1 : $order + 1;
447 447
         $future->save();
448 448
 
449 449
         $this->detachBehavior('mediafile');
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
      */
459 459
     public function beforeSave($insert)
460 460
     {
461
-        if ($this->isNewRecord){
461
+        if ($this->isNewRecord) {
462 462
             $this->order = $this->maxOrder == null ? 1 : $this->maxOrder + 1;
463 463
         }
464 464
 
Please login to merge, or discard this patch.
models/QualityBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,8 @@
 block discarded – undo
96 96
     {
97 97
         $scenarios = parent::scenarios();
98 98
 
99
-        $scenarios[ModelInterface::SCENARIO_CREATE][] = 'about';
100
-        $scenarios[ModelInterface::SCENARIO_UPDATE][] = 'about';
99
+        $scenarios[ ModelInterface::SCENARIO_CREATE ][ ] = 'about';
100
+        $scenarios[ ModelInterface::SCENARIO_UPDATE ][ ] = 'about';
101 101
 
102 102
         return $scenarios;
103 103
     }
Please login to merge, or discard this patch.
models/Technology.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $scenarios = parent::scenarios();
109 109
 
110
-        $scenarios[self::SCENARIO_CREATE][] = 'about';
111
-        $scenarios[self::SCENARIO_UPDATE][] = 'about';
110
+        $scenarios[ self::SCENARIO_CREATE ][ ] = 'about';
111
+        $scenarios[ self::SCENARIO_UPDATE ][ ] = 'about';
112 112
 
113 113
         return $scenarios;
114 114
     }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function afterSave($insert, $changedAttributes)
155 155
     {
156
-        $this->linkWithAbout(empty($this->about) ? [] : $this->about);
156
+        $this->linkWithAbout(empty($this->about) ? [ ] : $this->about);
157 157
 
158 158
         parent::afterSave($insert, $changedAttributes);
159 159
     }
Please login to merge, or discard this patch.
models/Social.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $scenarios = parent::scenarios();
106 106
 
107
-        $scenarios[self::SCENARIO_CREATE][] = 'contacts';
108
-        $scenarios[self::SCENARIO_UPDATE][] = 'contacts';
107
+        $scenarios[ self::SCENARIO_CREATE ][ ] = 'contacts';
108
+        $scenarios[ self::SCENARIO_UPDATE ][ ] = 'contacts';
109 109
 
110 110
         return $scenarios;
111 111
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function afterSave($insert, $changedAttributes)
153 153
     {
154
-        $this->linkWithContacts(empty($this->contacts) ? [] : $this->contacts);
154
+        $this->linkWithContacts(empty($this->contacts) ? [ ] : $this->contacts);
155 155
 
156 156
         parent::afterSave($insert, $changedAttributes);
157 157
     }
Please login to merge, or discard this patch.