Completed
Pull Request — master (#1936)
by
unknown
01:57
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/helpers/ObjectHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         }
49 49
         
50 50
         if ($throwException) {
51
-            throw new Exception("The given object must be an instance of: " . implode(",", $haystack));
51
+            throw new Exception("The given object must be an instance of: ".implode(",", $haystack));
52 52
         }
53 53
         
54 54
         return false;
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
             
219 219
         };
220 220
 
221
-        $staticPath = $module::staticBasePath() . DIRECTORY_SEPARATOR . 'controllers';
221
+        $staticPath = $module::staticBasePath().DIRECTORY_SEPARATOR.'controllers';
222 222
         if (is_dir($staticPath)) {
223 223
             foreach (FileHelper::findFiles($staticPath) as $file) {
224 224
                 $files[self::fileToName($staticPath, $file)] = $file;
Please login to merge, or discard this patch.
core/base/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     {
217 217
         $this->theme = Yii::$app->themeManager->getActiveTheme();
218 218
 
219
-        if ($this->theme){
219
+        if ($this->theme) {
220 220
             $this->layout = $this->theme->layout;
221 221
     
222 222
             if ($this->useAppLayoutPath) {
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
      */
330 330
     public function getControllerPath()
331 331
     {
332
-        return Yii::getAlias('@' . str_replace('\\', '/', $this->controllerNamespace), false);
332
+        return Yii::getAlias('@'.str_replace('\\', '/', $this->controllerNamespace), false);
333 333
     }
334 334
 
335 335
     // STATIC METHODS
Please login to merge, or discard this patch.
core/theme/Theme.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     
52 52
         $viewPath = $this->getViewPath();
53 53
         $pos = strpos($viewPath, '/');
54
-        $rootPath = $pos === false ? $viewPath : (substr($viewPath, 0, $pos) . '/views');
54
+        $rootPath = $pos === false ? $viewPath : (substr($viewPath, 0, $pos).'/views');
55 55
         $this->pathMap[$rootPath] = $pathMap;
56 56
         
57 57
         $this->pathMap[$viewPath] = $pathMap;
@@ -72,17 +72,17 @@  discard block
 block discarded – undo
72 72
     
73 73
     public function getLayoutPath(): string
74 74
     {
75
-        return $this->viewPath . '/layouts';
75
+        return $this->viewPath.'/layouts';
76 76
     }
77 77
     
78 78
     public function getLayoutFile()
79 79
     {
80
-        return $this->layoutPath . '/' . $this->layout . '.php';
80
+        return $this->layoutPath.'/'.$this->layout.'.php';
81 81
     }
82 82
     
83 83
     public function getResourcePath()
84 84
     {
85
-        return $this->basePath . '/resources';
85
+        return $this->basePath.'/resources';
86 86
     }
87 87
     
88 88
     public function getInfo()
Please login to merge, or discard this patch.
core/theme/ThemeConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         
36 36
         $config = [];
37 37
         
38
-        $themeFile = Yii::getAlias($basePath . '/theme.json');
38
+        $themeFile = Yii::getAlias($basePath.'/theme.json');
39 39
         if (file_exists($themeFile)) {
40 40
             $config = Json::decode(file_get_contents($themeFile)) ?: [];
41 41
         }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     
87 87
     public function getViewPath(): string
88 88
     {
89
-        return $this->basePath . '/views';
89
+        return $this->basePath.'/views';
90 90
     }
91 91
     
92 92
     
Please login to merge, or discard this patch.
core/theme/ThemeManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
             $dir = Yii::getAlias($themeDefinition);
105 105
             
106 106
             if (!is_dir($dir) || is_readable($dir)) {
107
-                throw new Exception('Theme directory not exists or readable: ' . $dir);
107
+                throw new Exception('Theme directory not exists or readable: '.$dir);
108 108
             }
109 109
     
110
-            $themeFile = $dir . '/theme.json';
110
+            $themeFile = $dir.'/theme.json';
111 111
             if (file_exists($themeFile)) {
112 112
                 $themeConfig = new ThemeConfig($themeDefinition);
113 113
                 $this->_themes[$themeDefinition] = $themeConfig;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $themeDefinitions = [];
128 128
         
129 129
         foreach (scandir(Yii::getAlias('@app/themes')) as $dirPath) {
130
-            $themeDefinitions = array_merge($themeDefinitions, "@app/themes/" , basename($dirPath));
130
+            $themeDefinitions = array_merge($themeDefinitions, "@app/themes/", basename($dirPath));
131 131
         }
132 132
         
133 133
         foreach (Yii::$app->getPackageInstaller()->getConfigs() as $config) {
Please login to merge, or discard this patch.