@@ -125,8 +125,8 @@ |
||
| 125 | 125 | throw new Exception('no command to execute'); |
| 126 | 126 | } |
| 127 | 127 | $cmd = ($amount > 1 ? '(' . implode(' && ', $this->commands) . ')' : $this->commands[0]) |
| 128 | - . $this->getPipeline() |
|
| 129 | - . (!empty($this->redirectOutput) ? ' > ' . $this->redirectOutput : ''); |
|
| 128 | + . $this->getPipeline() |
|
| 129 | + . (!empty($this->redirectOutput) ? ' > ' . $this->redirectOutput : ''); |
|
| 130 | 130 | |
| 131 | 131 | return $cmd; |
| 132 | 132 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function getPipeline() |
| 101 | 101 | { |
| 102 | - return $this->isPiped() ? ' | ' . implode(' | ', $this->pipeline) : ''; |
|
| 102 | + return $this->isPiped() ? ' | '.implode(' | ', $this->pipeline) : ''; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
@@ -124,9 +124,9 @@ discard block |
||
| 124 | 124 | if ($amount < 1) { |
| 125 | 125 | throw new Exception('no command to execute'); |
| 126 | 126 | } |
| 127 | - $cmd = ($amount > 1 ? '(' . implode(' && ', $this->commands) . ')' : $this->commands[0]) |
|
| 127 | + $cmd = ($amount > 1 ? '('.implode(' && ', $this->commands).')' : $this->commands[0]) |
|
| 128 | 128 | . $this->getPipeline() |
| 129 | - . (!empty($this->redirectOutput) ? ' > ' . $this->redirectOutput : ''); |
|
| 129 | + . (!empty($this->redirectOutput) ? ' > '.$this->redirectOutput : ''); |
|
| 130 | 130 | |
| 131 | 131 | return $cmd; |
| 132 | 132 | } |