@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $GLOBALS['stdoutfile'] = $stdoutfile; |
| 107 | 107 | $GLOBALS['stderrfile'] = $stderrfile; |
| 108 | 108 | |
| 109 | - $process->run(function ($type, $buffer) { |
|
| 109 | + $process->run(function($type, $buffer) { |
|
| 110 | 110 | if (Process::ERR === $type) |
| 111 | 111 | { |
| 112 | 112 | if ($GLOBALS['stderrfile'] !== null) |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | final protected function stream_to_stdout(Process $process) |
| 137 | 137 | { |
| 138 | - $process->run(function ($type, $buffer) { |
|
| 138 | + $process->run(function($type, $buffer) { |
|
| 139 | 139 | if (Process::ERR === $type) |
| 140 | 140 | { |
| 141 | 141 | fwrite(STDERR, $buffer); |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $GLOBALS['stdoutfile'] = $stdoutfile; |
| 168 | 168 | $GLOBALS['stderrfile'] = $stderrfile; |
| 169 | 169 | |
| 170 | - $process->run(function ($type, $buffer) { |
|
| 170 | + $process->run(function($type, $buffer) { |
|
| 171 | 171 | if (Process::ERR === $type) |
| 172 | 172 | { |
| 173 | 173 | if ($GLOBALS['stderrfile'] !== null) |
@@ -172,12 +172,12 @@ discard block |
||
| 172 | 172 | return false; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - $pattern = is_array(($pattern)) ? '{' . implode(',', $pattern) . '}' : $pattern; |
|
| 175 | + $pattern = is_array(($pattern)) ? '{'.implode(',', $pattern).'}' : $pattern; |
|
| 176 | 176 | if ($pattern === null) |
| 177 | 177 | { |
| 178 | - return array_diff(glob($directory . '/*'), ['.', '..']); |
|
| 178 | + return array_diff(glob($directory.'/*'), ['.', '..']); |
|
| 179 | 179 | } |
| 180 | - return glob($directory . '/{,.}*' . $pattern . '*', GLOB_BRACE); |
|
| 180 | + return glob($directory.'/{,.}*'.$pattern.'*', GLOB_BRACE); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | /** |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | { |
| 270 | 270 | if ($file != '.' && $file != '..') |
| 271 | 271 | { |
| 272 | - $files[] = $directory . '/' . $file; |
|
| 272 | + $files[] = $directory.'/'.$file; |
|
| 273 | 273 | } |
| 274 | 274 | } |
| 275 | 275 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | { |
| 69 | 69 | if (preg_match('/^-.*$/', $key, $matches)) |
| 70 | 70 | { |
| 71 | - $this->options[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value; |
|
| 71 | + $this->options[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT).$value; |
|
| 72 | 72 | } |
| 73 | 73 | if (preg_match('/^-.*$/', $value, $matches)) |
| 74 | 74 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | { |
| 93 | 93 | if (preg_match('/^-.*$/', $key, $matches)) |
| 94 | 94 | { |
| 95 | - $this->arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value; |
|
| 95 | + $this->arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT).$value; |
|
| 96 | 96 | } |
| 97 | 97 | else |
| 98 | 98 | { |
@@ -93,8 +93,7 @@ |
||
| 93 | 93 | if (preg_match('/^-.*$/', $key, $matches)) |
| 94 | 94 | { |
| 95 | 95 | $this->arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value; |
| 96 | - } |
|
| 97 | - else |
|
| 96 | + } else |
|
| 98 | 97 | { |
| 99 | 98 | $this->arguments[] = is_array($value) ? implode(' ', $value) : $value; |
| 100 | 99 | } |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | * @param array $arguments supported tar command arguments. |
| 149 | 149 | * @return object |
| 150 | 150 | */ |
| 151 | - final public function tar(array $options = [], array $arguments = [], $strict = true) |
|
| 151 | + final public function tar(array $options = [], array $arguments = [], $strict = true) |
|
| 152 | 152 | { |
| 153 | 153 | $this->command = (new Builder()) |
| 154 | 154 | ->setPrefix('tar') |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | * @param array $arguments supported tar command arguments. |
| 166 | 166 | * @return object |
| 167 | 167 | */ |
| 168 | - final public function xz(array $options = [], array $arguments = [], $strict = true) |
|
| 168 | + final public function xz(array $options = [], array $arguments = [], $strict = true) |
|
| 169 | 169 | { |
| 170 | 170 | $this->command = (new Builder()) |
| 171 | 171 | ->setPrefix('xz') |