Test Setup Failed
Push — master ( c38148...346aec )
by Александр
36:39
created
src/base/Component.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     {
196 196
         $this->_callAttributes = $this->attributes;
197 197
 
198
-        \Yii::beginProfile("Init: ".static::class);
198
+        \Yii::beginProfile("Init: " . static::class);
199 199
 
200 200
         if (!\Yii::$app instanceof Application) {
201 201
             if ($this->cmsSite === null && isset(\Yii::$app->currentSite) && \Yii::$app->currentSite->site) {
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
         $this->_initSettings();
211 211
 
212
-        \Yii::endProfile("Init: ".static::class);
212
+        \Yii::endProfile("Init: " . static::class);
213 213
 
214 214
         $this->trigger(self::EVENT_INIT);
215 215
         $this->trigger(self::EVENT_READY);
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
         } catch (\Exception $e) {
229 229
             \Yii::error(\Yii::t('skeeks/cms', '{cms} component error load defaul settings',
230
-                    ['cms' => 'Cms']).': '.$e->getMessage());
230
+                    ['cms' => 'Cms']) . ': ' . $e->getMessage());
231 231
         }
232 232
 
233 233
         return $this;
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
      */
740 740
     public function getCallableId()
741 741
     {
742
-        return $this->settingsId.'-callable';
742
+        return $this->settingsId . '-callable';
743 743
     }
744 744
 
745 745
     /**
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
     public function getSettingsId($autoGenerate = true)
751 751
     {
752 752
         if ($autoGenerate && $this->_settingsId === null) {
753
-            $this->_settingsId = static::$autoSettingsIdPrefix.static::$counterSettings++;
753
+            $this->_settingsId = static::$autoSettingsIdPrefix . static::$counterSettings++;
754 754
         }
755 755
 
756 756
         return $this->_settingsId;
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
         if (isset($this->{$name})) {
835 835
             $this->{$name} = $value;
836 836
         } else {
837
-            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
837
+            throw new InvalidParamException(get_class($this) . ' has no attribute named "' . $name . '".');
838 838
         }
839 839
     }
840 840
 
@@ -884,7 +884,7 @@  discard block
 block discarded – undo
884 884
         if (isset($this->_oldAttributes[$name]) || $this->hasAttribute($name)) {
885 885
             $this->_oldAttributes[$name] = $value;
886 886
         } else {
887
-            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
887
+            throw new InvalidParamException(get_class($this) . ' has no attribute named "' . $name . '".');
888 888
         }
889 889
     }
890 890
 
Please login to merge, or discard this patch.
src/models/Core.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             BlameableBehavior::className() =>
44 44
                 [
45 45
                     'class' => BlameableBehavior::className(),
46
-                    'value' => function ($event) {
46
+                    'value' => function($event) {
47 47
                         if (\Yii::$app instanceof \yii\console\Application) {
48 48
                             return null;
49 49
                         } else {
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     
137 137
     public function asText()
138 138
     {
139
-        return (string) $this;
139
+        return (string)$this;
140 140
     }
141 141
     
142 142
     public function asHtml()
Please login to merge, or discard this patch.
src/cmsWidgets/gridView/GridViewCmsWidget.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                     $this->_autoColumns[(string)$name] = [
142 142
                         'attribute' => $name,
143 143
                         'format'    => 'raw',
144
-                        'value'     => function ($model, $key, $index) use ($name) {
144
+                        'value'     => function($model, $key, $index) use ($name) {
145 145
                             if (is_array($model->{$name})) {
146 146
                                 return implode(",", $model->{$name});
147 147
                             } else {
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
                     'visibleColumns' => [
279 279
                         'class'           => SelectField::class,
280 280
                         'multiple'        => true,
281
-                        'on beforeRender' => function ($e) {
281
+                        'on beforeRender' => function($e) {
282 282
                             /**
283 283
                              * @var $selectField SelectField
284 284
                              */
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
                 }
356 356
 
357 357
                 if ($result && in_array($label, array_values($result))) {
358
-                    $result[$code] = $label." ({$code})";
358
+                    $result[$code] = $label . " ({$code})";
359 359
                 } else {
360 360
                     $result[$code] = $label;
361 361
                 }
Please login to merge, or discard this patch.