Test Setup Failed
Push — master ( 35f293...6eff21 )
by Александр
37:23
created
src/TestWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         return ArrayHelper::merge(parent::behaviors(), [
28 28
             ConfigBehavior::class => ArrayHelper::merge([
29 29
                 'class' => ConfigBehavior::class,
30
-            ], (array) $this->config),
30
+            ], (array)$this->config),
31 31
         ]);
32 32
     }
33 33
 
Please login to merge, or discard this patch.
src/base/Widget.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
         \Yii::$app->cmsToolbar->initEnabled();
84 84
         if (\Yii::$app->cmsToolbar->editWidgets == Cms::BOOL_Y && \Yii::$app->cmsToolbar->enabled) {
85
-            $id = 'sx-infoblock-'.$this->id;
85
+            $id = 'sx-infoblock-' . $this->id;
86 86
 
87 87
             return Html::beginTag('div',
88 88
                 [
@@ -126,10 +126,10 @@  discard block
 block discarded – undo
126 126
 
127 127
     public function init()
128 128
     {
129
-        $this->_token = \Yii::t('skeeks/cms', 'Widget').': '.$this->id;
130
-        \Yii::beginProfile("Cms Widget: ".$this->_token);
129
+        $this->_token = \Yii::t('skeeks/cms', 'Widget') . ': ' . $this->id;
130
+        \Yii::beginProfile("Cms Widget: " . $this->_token);
131 131
         parent::init();
132
-        \Yii::endProfile("Cms Widget: ".$this->_token);
132
+        \Yii::endProfile("Cms Widget: " . $this->_token);
133 133
     }
134 134
     /**
135 135
      * @return string
@@ -138,17 +138,17 @@  discard block
 block discarded – undo
138 138
     {
139 139
         if (YII_ENV == 'prod') {
140 140
             try {
141
-                \Yii::beginProfile("Run: ".$this->_token);
141
+                \Yii::beginProfile("Run: " . $this->_token);
142 142
                 $content = $this->_run();
143
-                \Yii::endProfile("Run: ".$this->_token);
143
+                \Yii::endProfile("Run: " . $this->_token);
144 144
             } catch (\Exception $e) {
145 145
                 $content = \Yii::t('skeeks/cms', 'Error widget {class}',
146
-                        ['class' => $this->className()])." (".$this->descriptor->name."): ".$e->getMessage();
146
+                        ['class' => $this->className()]) . " (" . $this->descriptor->name . "): " . $e->getMessage();
147 147
             }
148 148
         } else {
149
-            \Yii::beginProfile("Run: ".$this->_token);
149
+            \Yii::beginProfile("Run: " . $this->_token);
150 150
             $content = $this->_run();
151
-            \Yii::endProfile("Run: ".$this->_token);
151
+            \Yii::endProfile("Run: " . $this->_token);
152 152
         }
153 153
 
154 154
         if ($this->_isBegin) {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         $result = "";
178 178
 
179 179
         if (\Yii::$app->cmsToolbar->editWidgets == Cms::BOOL_Y && \Yii::$app->cmsToolbar->enabled) {
180
-            $id = 'sx-infoblock-'.$this->id;
180
+            $id = 'sx-infoblock-' . $this->id;
181 181
 
182 182
             $this->view->registerJs(<<<JS
183 183
 new sx.classes.toolbar.EditViewBlock({'id' : '{$id}'});
Please login to merge, or discard this patch.
src/base/Component.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     {
187 187
         $this->_callAttributes = $this->attributes;
188 188
 
189
-        \Yii::beginProfile("Init: ".static::class);
189
+        \Yii::beginProfile("Init: " . static::class);
190 190
 
191 191
         if (!\Yii::$app instanceof Application) {
192 192
             if ($this->cmsSite === null && isset(\Yii::$app->currentSite) && \Yii::$app->currentSite->site) {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         $this->trigger(self::EVENT_INIT);
204 204
 
205
-        \Yii::endProfile("Init: ".static::class);
205
+        \Yii::endProfile("Init: " . static::class);
206 206
     }
207 207
 
208 208
     /**
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             $this->_oldAttributes = $this->toArray($this->safeAttributes());
218 218
         } catch (\Exception $e) {
219 219
             \Yii::error(\Yii::t('skeeks/cms', '{cms} component error load defaul settings',
220
-                    ['cms' => 'Cms']).': '.$e->getMessage());
220
+                    ['cms' => 'Cms']) . ': ' . $e->getMessage());
221 221
         }
222 222
 
223 223
         return $this;
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
 
528 528
         if ($models = $this->getConfigFormModels()) {
529 529
             foreach ($models as $key => $model) {
530
-                $value[$key."Array"] = $model->attributes;
530
+                $value[$key . "Array"] = $model->attributes;
531 531
             }
532 532
         }
533 533
 
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
      */
711 711
     public function getCallableId()
712 712
     {
713
-        return $this->settingsId.'-callable';
713
+        return $this->settingsId . '-callable';
714 714
     }
715 715
 
716 716
     /**
@@ -721,7 +721,7 @@  discard block
 block discarded – undo
721 721
     public function getSettingsId($autoGenerate = true)
722 722
     {
723 723
         if ($autoGenerate && $this->_settingsId === null) {
724
-            $this->_settingsId = static::$autoSettingsIdPrefix.static::$counterSettings++;
724
+            $this->_settingsId = static::$autoSettingsIdPrefix . static::$counterSettings++;
725 725
         }
726 726
 
727 727
         return $this->_settingsId;
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
         if (isset($this->{$name})) {
806 806
             $this->{$name} = $value;
807 807
         } else {
808
-            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
808
+            throw new InvalidParamException(get_class($this) . ' has no attribute named "' . $name . '".');
809 809
         }
810 810
     }
811 811
 
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
         if (isset($this->_oldAttributes[$name]) || $this->hasAttribute($name)) {
856 856
             $this->_oldAttributes[$name] = $value;
857 857
         } else {
858
-            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
858
+            throw new InvalidParamException(get_class($this) . ' has no attribute named "' . $name . '".');
859 859
         }
860 860
     }
861 861
 
Please login to merge, or discard this patch.