Completed
Push — master ( 379f2a...89f899 )
by Andrii
03:20
created
src/controllers/StartController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
         Yii::setAlias('@root', $this->getRootDir());
79 79
         $config = $this->takeConfig()->rawItem('package');
80 80
         $alias  = strtr($config['namespace'], '\\', '/');
81
-        if ($alias && !Yii::getAlias('@' . $alias, false)) {
82
-            $srcdir = Yii::getAlias('@root/' . ($config['src'] ?: 'src'));
81
+        if ($alias && !Yii::getAlias('@'.$alias, false)) {
82
+            $srcdir = Yii::getAlias('@root/'.($config['src'] ?: 'src'));
83 83
             Yii::setAlias($alias, $srcdir);
84 84
         }
85 85
     }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     protected function findRootDir()
190 190
     {
191 191
         $configDir = '.hidev';
192
-        for ($i = 0;$i < 9;++$i) {
192
+        for ($i = 0; $i < 9; ++$i) {
193 193
             if (is_dir($configDir)) {
194 194
                 return getcwd();
195 195
             }
@@ -200,6 +200,6 @@  discard block
 block discarded – undo
200 200
 
201 201
     public function buildRootPath($subpath)
202 202
     {
203
-        return $this->getRootDir() . DIRECTORY_SEPARATOR . $subpath;
203
+        return $this->getRootDir().DIRECTORY_SEPARATOR.$subpath;
204 204
     }
205 205
 }
Please login to merge, or discard this patch.