@@ -87,8 +87,8 @@ discard block |
||
87 | 87 | Yii::setAlias('@root', $this->getRootDir()); |
88 | 88 | $config = $this->takeConfig()->rawItem('package'); |
89 | 89 | $alias = isset($config['namespace']) ? strtr($config['namespace'], '\\', '/') : ''; |
90 | - if ($alias && !Yii::getAlias('@' . $alias, false)) { |
|
91 | - $srcdir = Yii::getAlias('@root/' . ($config['src'] ?: 'src')); |
|
90 | + if ($alias && !Yii::getAlias('@'.$alias, false)) { |
|
91 | + $srcdir = Yii::getAlias('@root/'.($config['src'] ?: 'src')); |
|
92 | 92 | Yii::setAlias($alias, $srcdir); |
93 | 93 | } |
94 | 94 | $aliases = $this->takeConfig()->rawItem('aliases'); |
@@ -121,13 +121,13 @@ discard block |
||
121 | 121 | if ($file->save($data) || !is_dir('.hidev/vendor')) { |
122 | 122 | $this->runAction('update'); |
123 | 123 | } |
124 | - $vendors[] = $this->getRootDir() . '/.hidev/vendor'; |
|
124 | + $vendors[] = $this->getRootDir().'/.hidev/vendor'; |
|
125 | 125 | } elseif ($this->needsComposerInstall()) { |
126 | 126 | if ($this->passthru('composer', ['install', '--ansi'])) { |
127 | 127 | throw new InvalidParamException('Failed initialize project with composer install'); |
128 | 128 | } |
129 | 129 | } |
130 | - $localVendor = $this->getRootDir() . '/vendor'; |
|
130 | + $localVendor = $this->getRootDir().'/vendor'; |
|
131 | 131 | if (file_exists(ConfigPlugin::path($localVendor, 'hidev'))) { |
132 | 132 | $vendors[] = $localVendor; |
133 | 133 | } |
@@ -222,6 +222,6 @@ discard block |
||
222 | 222 | |
223 | 223 | public function buildRootPath($subpath) |
224 | 224 | { |
225 | - return $this->getRootDir() . DIRECTORY_SEPARATOR . $subpath; |
|
225 | + return $this->getRootDir().DIRECTORY_SEPARATOR.$subpath; |
|
226 | 226 | } |
227 | 227 | } |