@@ -70,16 +70,16 @@ |
||
| 70 | 70 | { |
| 71 | 71 | $path = parent::detectCommand($path); |
| 72 | 72 | |
| 73 | - return is_executable($path) ? $path : '/usr/bin/env python ' . $path; |
|
| 73 | + return is_executable($path) ? $path : '/usr/bin/env python '.$path; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | public function install() |
| 77 | 77 | { |
| 78 | 78 | if ($this->installer) { |
| 79 | - passthru('/usr/bin/env wget ' . escapeshellarg($this->installer) . ' -O- | /usr/bin/env python', $exitcode); |
|
| 79 | + passthru('/usr/bin/env wget '.escapeshellarg($this->installer).' -O- | /usr/bin/env python', $exitcode); |
|
| 80 | 80 | } elseif ($this->download) { |
| 81 | - $dest = Yii::getAlias('@root/' . $this->name, false); |
|
| 82 | - passthru('/usr/bin/env wget ' . escapeshellarg($this->download) . ' -O ' . $dest, $exitcode); |
|
| 81 | + $dest = Yii::getAlias('@root/'.$this->name, false); |
|
| 82 | + passthru('/usr/bin/env wget '.escapeshellarg($this->download).' -O '.$dest, $exitcode); |
|
| 83 | 83 | } else { |
| 84 | 84 | passthru("/usr/bin/pip install {$this->package}", $exitcode); |
| 85 | 85 | } |
@@ -79,8 +79,8 @@ discard block |
||
| 79 | 79 | Yii::setAlias('@root', $this->getRootDir()); |
| 80 | 80 | $config = $this->takeConfig()->rawItem('package'); |
| 81 | 81 | $alias = strtr($config['namespace'], '\\', '/'); |
| 82 | - if ($alias && !Yii::getAlias('@' . $alias, false)) { |
|
| 83 | - $srcdir = Yii::getAlias('@root/' . ($config['src'] ?: 'src')); |
|
| 82 | + if ($alias && !Yii::getAlias('@'.$alias, false)) { |
|
| 83 | + $srcdir = Yii::getAlias('@root/'.($config['src'] ?: 'src')); |
|
| 84 | 84 | Yii::setAlias($alias, $srcdir); |
| 85 | 85 | } |
| 86 | 86 | $aliases = $this->takeConfig()->rawItem('aliases'); |
@@ -213,6 +213,6 @@ discard block |
||
| 213 | 213 | |
| 214 | 214 | public function buildRootPath($subpath) |
| 215 | 215 | { |
| 216 | - return $this->getRootDir() . DIRECTORY_SEPARATOR . $subpath; |
|
| 216 | + return $this->getRootDir().DIRECTORY_SEPARATOR.$subpath; |
|
| 217 | 217 | } |
| 218 | 218 | } |
@@ -46,16 +46,16 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | $path = parent::detectCommand($path); |
| 48 | 48 | |
| 49 | - return is_executable($path) ? $path : '/usr/bin/env php ' . $path; |
|
| 49 | + return is_executable($path) ? $path : '/usr/bin/env php '.$path; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | public function install() |
| 53 | 53 | { |
| 54 | 54 | if ($this->installer) { |
| 55 | - passthru('/usr/bin/env wget ' . escapeshellarg($this->installer) . ' -O- | /usr/bin/env php', $exitcode); |
|
| 55 | + passthru('/usr/bin/env wget '.escapeshellarg($this->installer).' -O- | /usr/bin/env php', $exitcode); |
|
| 56 | 56 | } elseif ($this->download) { |
| 57 | - $dest = Yii::getAlias('@root/' . $this->name . '.phar', false); |
|
| 58 | - passthru('/usr/bin/env wget ' . escapeshellarg($this->download) . ' -O ' . $dest, $exitcode); |
|
| 57 | + $dest = Yii::getAlias('@root/'.$this->name.'.phar', false); |
|
| 58 | + passthru('/usr/bin/env wget '.escapeshellarg($this->download).' -O '.$dest, $exitcode); |
|
| 59 | 59 | } else { |
| 60 | 60 | return parent::install(); |
| 61 | 61 | } |
@@ -65,6 +65,6 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | public function getVcsignore() |
| 67 | 67 | { |
| 68 | - return $this->name . '.phar'; |
|
| 68 | + return $this->name.'.phar'; |
|
| 69 | 69 | } |
| 70 | 70 | } |