Completed
Pull Request — master (#1969)
by
unknown
02:15
created
core/tag/tags/LinkTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     {
58 58
         if (StringHelper::startsWith($value, '//')) {
59 59
             // its an absolute url
60
-            $value = StringHelper::replaceFirst('//', Url::base(true) . '/', $value);
60
+            $value = StringHelper::replaceFirst('//', Url::base(true).'/', $value);
61 61
             $external = false;
62 62
         } elseif (StringHelper::startsWith($value, '/')) {
63 63
             // its a relative url, keep it like this
Please login to merge, or discard this patch.
core/console/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * If a message is not a string, it will return var export to generate
47 47
      * a returnable string from a message.
48 48
      * 
49
-     * @param mixed $message
49
+     * @param string $message
50 50
      * @return string
51 51
      * @since 1.0.22
52 52
      */
Please login to merge, or discard this patch.
core/console/Command.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         if ($this->verbose) {
42 42
             $message = $this->printableMessage($message);
43
-            $this->output(!empty($section) ? $section . ': ' . $message : $message);
43
+            $this->output(!empty($section) ? $section.': '.$message : $message);
44 44
         }
45 45
     }
46 46
     
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $name = substr($name, 0, -(strlen($suffix)));
119 119
         }
120 120
     
121
-        return $name . $suffix;
121
+        return $name.$suffix;
122 122
     }
123 123
     
124 124
     /**
Please login to merge, or discard this patch.
core/theme/ThemeManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,18 +54,18 @@  discard block
 block discarded – undo
54 54
             $dir = Yii::getAlias($basePath);
55 55
         } elseif (strpos($basePath, '/') !== 0) {
56 56
             // todo: keep basepath as relative path
57
-            $dir = $basePath = Yii::$app->basePath . DIRECTORY_SEPARATOR . $basePath;
57
+            $dir = $basePath = Yii::$app->basePath.DIRECTORY_SEPARATOR.$basePath;
58 58
         } else {
59 59
             $dir = $basePath;
60 60
         }
61 61
         
62 62
         if (!is_dir($dir) || !is_readable($dir)) {
63
-            throw new Exception('Theme directory not exists or readable: ' . $dir);
63
+            throw new Exception('Theme directory not exists or readable: '.$dir);
64 64
         }
65 65
         
66
-        $themeFile = $dir . '/theme.json';
66
+        $themeFile = $dir.'/theme.json';
67 67
         if (!file_exists($themeFile)) {
68
-            throw new InvalidConfigException('Theme config file missing at: ' . $themeFile);
68
+            throw new InvalidConfigException('Theme config file missing at: '.$themeFile);
69 69
         }
70 70
         
71 71
         $config = Json::decode(file_get_contents($themeFile)) ?: [];
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         
168 168
         if (file_exists(Yii::getAlias('@app/themes'))) {
169 169
             foreach (glob(Yii::getAlias('@app/themes/*')) as $dirPath) {
170
-                $themeDefinitions[] = "@app/themes/" . basename($dirPath);
170
+                $themeDefinitions[] = "@app/themes/".basename($dirPath);
171 171
             }
172 172
         }
173 173
         
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         
214 214
         $this->_themes[$basePath] = $themeConfig;
215 215
         
216
-        Yii::setAlias('@' . basename($basePath) . 'Theme', $basePath);
216
+        Yii::setAlias('@'.basename($basePath).'Theme', $basePath);
217 217
     }
218 218
     
219 219
     /**
Please login to merge, or discard this patch.