Test Setup Failed
Push — master ( 346aec...35f293 )
by Александр
39:17
created
src/models/Core.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             BlameableBehavior::className() =>
46 46
                 [
47 47
                     'class' => BlameableBehavior::className(),
48
-                    'value' => function ($event) {
48
+                    'value' => function($event) {
49 49
                         if (\Yii::$app instanceof \yii\console\Application) {
50 50
                             return null;
51 51
                         } else {
Please login to merge, or discard this patch.
src/base/Component.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     {
191 191
         $this->_callAttributes = $this->attributes;
192 192
 
193
-        \Yii::beginProfile("Init: ".static::class);
193
+        \Yii::beginProfile("Init: " . static::class);
194 194
 
195 195
         if (!\Yii::$app instanceof Application) {
196 196
             if ($this->cmsSite === null && isset(\Yii::$app->currentSite) && \Yii::$app->currentSite->site) {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $this->_initSettings();
206 206
         $this->trigger(self::EVENT_INIT);
207 207
 
208
-        \Yii::endProfile("Init: ".static::class);
208
+        \Yii::endProfile("Init: " . static::class);
209 209
 
210 210
 
211 211
     }
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
         } catch (\Exception $e) {
224 224
             \Yii::error(\Yii::t('skeeks/cms', '{cms} component error load defaul settings',
225
-                    ['cms' => 'Cms']).': '.$e->getMessage());
225
+                    ['cms' => 'Cms']) . ': ' . $e->getMessage());
226 226
         }
227 227
 
228 228
         return $this;
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
      */
734 734
     public function getCallableId()
735 735
     {
736
-        return $this->settingsId.'-callable';
736
+        return $this->settingsId . '-callable';
737 737
     }
738 738
 
739 739
     /**
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
     public function getSettingsId($autoGenerate = true)
745 745
     {
746 746
         if ($autoGenerate && $this->_settingsId === null) {
747
-            $this->_settingsId = static::$autoSettingsIdPrefix.static::$counterSettings++;
747
+            $this->_settingsId = static::$autoSettingsIdPrefix . static::$counterSettings++;
748 748
         }
749 749
 
750 750
         return $this->_settingsId;
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
         if (isset($this->{$name})) {
829 829
             $this->{$name} = $value;
830 830
         } else {
831
-            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
831
+            throw new InvalidParamException(get_class($this) . ' has no attribute named "' . $name . '".');
832 832
         }
833 833
     }
834 834
 
@@ -878,7 +878,7 @@  discard block
 block discarded – undo
878 878
         if (isset($this->_oldAttributes[$name]) || $this->hasAttribute($name)) {
879 879
             $this->_oldAttributes[$name] = $value;
880 880
         } else {
881
-            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
881
+            throw new InvalidParamException(get_class($this) . ' has no attribute named "' . $name . '".');
882 882
         }
883 883
     }
884 884
 
Please login to merge, or discard this patch.