Completed
Push — master ( a4bef9...d24069 )
by Andrii
03:20
created
src/base/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     'name'                  => 'HiDev',
15 15
     'basePath'              => dirname(__DIR__),
16 16
     'vendorPath'            => HIDEV_VENDOR_DIR,
17
-    'runtimePath'           => substr(__DIR__, 0, 7) === 'phar://' ? dirname($_SERVER['SCRIPT_NAME']) : dirname(HIDEV_VENDOR_DIR) . '/runtime',
17
+    'runtimePath'           => substr(__DIR__, 0, 7) === 'phar://' ? dirname($_SERVER['SCRIPT_NAME']) : dirname(HIDEV_VENDOR_DIR).'/runtime',
18 18
     'enableCoreCommands'    => false,
19 19
     'controllerNamespace'   => 'hidev\\controllers',
20 20
     'defaultRoute'          => 'default',
Please login to merge, or discard this patch.
src/handlers/CopyHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function renderPath($path, $data)
25 25
     {
26 26
         copy($data->getCopy(), $path);
27
-        Yii::warning('Copied file: ' . $path);
27
+        Yii::warning('Copied file: '.$path);
28 28
     }
29 29
 
30 30
     /**
Please login to merge, or discard this patch.
src/controllers/StartController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
         Yii::setAlias('@root', $this->getRootDir());
78 78
         $config = $this->takeConfig()->rawItem('package');
79 79
         $alias  = strtr($config['namespace'], '\\', '/');
80
-        if ($alias && !Yii::getAlias('@' . $alias, false)) {
81
-            $srcdir = Yii::getAlias('@root/' . ($config['src'] ?: 'src'));
80
+        if ($alias && !Yii::getAlias('@'.$alias, false)) {
81
+            $srcdir = Yii::getAlias('@root/'.($config['src'] ?: 'src'));
82 82
             Yii::setAlias($alias, $srcdir);
83 83
         }
84 84
     }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     protected function findRootDir()
189 189
     {
190 190
         $configDir = '.hidev';
191
-        for ($i = 0;$i < 9;++$i) {
191
+        for ($i = 0; $i < 9; ++$i) {
192 192
             if (is_dir($configDir)) {
193 193
                 return getcwd();
194 194
             }
Please login to merge, or discard this patch.
src/base/BinaryPhp.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,16 +66,16 @@
 block discarded – undo
66 66
     {
67 67
         $path = parent::detectCommand($path);
68 68
 
69
-        return is_executable($path) ? $path : '/usr/bin/env php ' . $path;
69
+        return is_executable($path) ? $path : '/usr/bin/env php '.$path;
70 70
     }
71 71
 
72 72
     public function install()
73 73
     {
74 74
         if ($this->installer) {
75
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->installer) . ' -O- | /usr/bin/env php', $exitcode);
75
+            passthru('/usr/bin/env wget '.escapeshellarg($this->installer).' -O- | /usr/bin/env php', $exitcode);
76 76
         } elseif ($this->download) {
77
-            $dest = Yii::getAlias('@root/' . $this->name . '.phar', false);
78
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->download) . ' -O ' . $dest, $exitcode);
77
+            $dest = Yii::getAlias('@root/'.$this->name.'.phar', false);
78
+            passthru('/usr/bin/env wget '.escapeshellarg($this->download).' -O '.$dest, $exitcode);
79 79
         } else {
80 80
             return parent::install();
81 81
         }
Please login to merge, or discard this patch.