Completed
Push — master ( c2ee93...502445 )
by Andrii
04:05
created
src/controllers/StartController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.