@@ -97,13 +97,11 @@ discard block |
||
| 97 | 97 | if ($GLOBALS['stderrfile'] !== null) |
| 98 | 98 | { |
| 99 | 99 | file_put_contents($GLOBALS['stderrfile'], $buffer, FILE_APPEND | LOCK_EX); |
| 100 | - } |
|
| 101 | - else |
|
| 100 | + } else |
|
| 102 | 101 | { |
| 103 | 102 | file_put_contents($GLOBALS['stdoutfile'], $buffer, FILE_APPEND | LOCK_EX); |
| 104 | 103 | } |
| 105 | - } |
|
| 106 | - else |
|
| 104 | + } else |
|
| 107 | 105 | { |
| 108 | 106 | file_put_contents($GLOBALS['stdoutfile'], $buffer, FILE_APPEND | LOCK_EX); |
| 109 | 107 | } |
@@ -119,7 +117,8 @@ discard block |
||
| 119 | 117 | */ |
| 120 | 118 | final protected function stream_to_stdout(Process $process) |
| 121 | 119 | { |
| 122 | - $process->run(function($type, $buffer) { |
|
| 120 | + $process->run(function($type, $buffer) |
|
| 121 | + { |
|
| 123 | 122 | if (Process::ERR === $type) |
| 124 | 123 | { |
| 125 | 124 | fwrite(STDERR, $buffer); |
@@ -151,7 +150,8 @@ discard block |
||
| 151 | 150 | $GLOBALS['stdoutfile'] = $stdoutfile; |
| 152 | 151 | $GLOBALS['stderrfile'] = $stderrfile; |
| 153 | 152 | |
| 154 | - $process->run(function($type, $buffer) { |
|
| 153 | + $process->run(function($type, $buffer) |
|
| 154 | + { |
|
| 155 | 155 | if (Process::ERR === $type) |
| 156 | 156 | { |
| 157 | 157 | if ($GLOBALS['stderrfile'] !== null) |