Completed
Pull Request — master (#1040)
by Carsten
04:04
created
core/traits/ApplicationTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     public function getWebroot()
64 64
     {
65 65
         if ($this->_webroot === null) {
66
-            $this->_webroot = realpath(realpath($this->basePath) . DIRECTORY_SEPARATOR . $this->webrootDirectory);
66
+            $this->_webroot = realpath(realpath($this->basePath).DIRECTORY_SEPARATOR.$this->webrootDirectory);
67 67
         }
68 68
         
69 69
         return $this->_webroot;
Please login to merge, or discard this patch.
core/traits/ErrorHandlerTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,9 +114,9 @@
 block discarded – undo
114 114
             $_file = $exception->getFile();
115 115
             $_line = $exception->getLine();
116 116
         } elseif (is_string($exception)) {
117
-            $_message = 'exception string: ' . $exception;
117
+            $_message = 'exception string: '.$exception;
118 118
         } elseif (is_array($exception)) {
119
-            $_message = isset($exception['message']) ? $exception['message'] : 'exception array dump: ' . print_r($exception, true);
119
+            $_message = isset($exception['message']) ? $exception['message'] : 'exception array dump: '.print_r($exception, true);
120 120
             $_file = isset($exception['file']) ? $exception['file'] : __FILE__;
121 121
             $_line = isset($exception['line']) ? $exception['line'] : __LINE__;
122 122
         }
Please login to merge, or discard this patch.
core/TagParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         
63 63
         if (!is_object($this->tags[$tag])) {
64 64
             $this->tags[$tag] = Yii::createObject($this->tags[$tag]);
65
-            Yii::trace('tag parser object generated for:'. $tag, __CLASS__);
65
+            Yii::trace('tag parser object generated for:'.$tag, __CLASS__);
66 66
         }
67 67
         
68 68
         $value = isset($context['value']) ? $context['value'] : false;
Please login to merge, or discard this patch.
core/base/Bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             // see if the module has a registerComponents method
101 101
             foreach ($module->registerComponents() as $componentId => $definition) {
102 102
                 if (!$app->has($componentId)) {
103
-                    Yii::trace('Register component ' . $componentId, __METHOD__);
103
+                    Yii::trace('Register component '.$componentId, __METHOD__);
104 104
                     $app->set($componentId, $definition);
105 105
                 }
106 106
             }
Please login to merge, or discard this patch.
core/tag/tags/TelTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     
16 16
     public function parse($value, $sub)
17 17
     {
18
-        return Html::a(empty($sub) ? $value : $sub, 'tel:' . $this->ensureNumber($value));
18
+        return Html::a(empty($sub) ? $value : $sub, 'tel:'.$this->ensureNumber($value));
19 19
     }
20 20
         
21 21
     private function ensureNumber($number)
Please login to merge, or discard this patch.
core/console/commands/SetupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         }
106 106
         
107 107
         if (empty($this->langShortCode)) {
108
-            $this->langShortCode = $this->prompt('Short-Code of the Standard language:', ['required' => true, 'default' => 'en', 'validator' => function ($input, &$error) {
108
+            $this->langShortCode = $this->prompt('Short-Code of the Standard language:', ['required' => true, 'default' => 'en', 'validator' => function($input, &$error) {
109 109
                 if (strlen($input) !== 2) {
110 110
                     $error = 'The Short-Code must be 2 chars length only. Examples: de, en, fr, ru';
111 111
                     return false;
Please login to merge, or discard this patch.
core/tag/tags/LinkTag.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
     public function parse($value, $sub)
28 28
     {
29 29
         if (substr($value, 0, 2) == '//') {
30
-            $value = StringHelper::replaceFirst('//', Url::base(true) . '/', $value);
30
+            $value = StringHelper::replaceFirst('//', Url::base(true).'/', $value);
31 31
             $external = false;
32 32
         } else {
33 33
             $external = true;
Please login to merge, or discard this patch.
core/lazyload/LazyLoad.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,14 +70,14 @@
 block discarded – undo
70 70
      */
71 71
     public function run()
72 72
     {
73
-        $class = 'lazy-image ' . $this->extraClass;
73
+        $class = 'lazy-image '.$this->extraClass;
74 74
         
75 75
         if ($this->attributesOnly) {
76 76
             return "class=\"{$class}\" data-src=\"$this->src\" data-width=\"$this->width\" data-height=\"$this->height\" data-as-background=\"1\"";
77 77
         }
78 78
         
79 79
         $tag = Html::tag('img', '', ['class' => $class, 'data-src' => $this->src, 'data-width' => $this->width, 'data-height' => $this->height]);
80
-        $tag.= '<noscript><img class="'.$class.'" src="'.$this->src.'" /></noscript>';
80
+        $tag .= '<noscript><img class="'.$class.'" src="'.$this->src.'" /></noscript>';
81 81
         return $tag;
82 82
     }
83 83
 }
Please login to merge, or discard this patch.
core/console/commands/CrudController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             
57 57
             if ($sqlTable == '?') {
58 58
                 foreach ($this->getSqlTablesArray() as $table) {
59
-                    $this->outputInfo("- " . $table);
59
+                    $this->outputInfo("- ".$table);
60 60
                 }
61 61
             }
62 62
             
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
                 case 'model':
154 154
 
155 155
                     if (!$extended) {
156
-                        $modelName = $modelName . 'NgRest';
157
-                        $item['file'] = $modelName . '.php';
156
+                        $modelName = $modelName.'NgRest';
157
+                        $item['file'] = $modelName.'.php';
158 158
                         $item['class'] = $modelName;
159 159
                     }
160 160
                     
Please login to merge, or discard this patch.