@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | if (!is_file($path) || file_get_contents($path) !== $content) { |
33 | 33 | static::mkdir(dirname($path)); |
34 | 34 | file_put_contents($path, $content); |
35 | - Yii::warning('Written file: ' . $path, 'file'); |
|
35 | + Yii::warning('Written file: '.$path, 'file'); |
|
36 | 36 | |
37 | 37 | return true; |
38 | 38 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $path = rtrim(trim($path), '/'); |
53 | 53 | if (!file_exists($path)) { |
54 | 54 | mkdir($path, 0777, true); |
55 | - Yii::warning('Created dir: ' . $path . '/', 'file'); |
|
55 | + Yii::warning('Created dir: '.$path.'/', 'file'); |
|
56 | 56 | |
57 | 57 | return true; |
58 | 58 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | public function actionSave() |
53 | 53 | { |
54 | - $this->getFile()->write(implode(' ', [$this->version, $this->date, $this->time, $this->zone, $this->hash]) . "\n"); |
|
54 | + $this->getFile()->write(implode(' ', [$this->version, $this->date, $this->time, $this->zone, $this->hash])."\n"); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | public function setVersion($version = null) |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $this->package = $package; |
50 | 50 | } |
51 | 51 | if (!$this->package || !$this->vendor) { |
52 | - throw new InvalidParamException('Wrong vendor/package given: ' . $name); |
|
52 | + throw new InvalidParamException('Wrong vendor/package given: '.$name); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 |
@@ -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 | } |