@@ -23,19 +23,19 @@ |
||
| 23 | 23 | 'stdout' => '', |
| 24 | 24 | ]; |
| 25 | 25 | |
| 26 | - $process->on('exit', function ($exitCode) use ($deferred, &$buffers) { |
|
| 26 | + $process->on('exit', function($exitCode) use ($deferred, &$buffers) { |
|
| 27 | 27 | $deferred->resolve(new ProcessOutcome($exitCode, $buffers['stderr'], $buffers['stdout'])); |
| 28 | 28 | }); |
| 29 | 29 | |
| 30 | - \WyriHaximus\React\futurePromise($loop, $process)->then(function (Process $process) use ($loop, &$buffers) { |
|
| 30 | + \WyriHaximus\React\futurePromise($loop, $process)->then(function(Process $process) use ($loop, &$buffers) { |
|
| 31 | 31 | $process->start($loop); |
| 32 | 32 | if ($process->stderr instanceof ReadableStreamInterface) { |
| 33 | - $process->stderr->on('data', function ($output) use (&$buffers) { |
|
| 33 | + $process->stderr->on('data', function($output) use (&$buffers) { |
|
| 34 | 34 | $buffers['stderr'] .= $output; |
| 35 | 35 | }); |
| 36 | 36 | } |
| 37 | 37 | if ($process->stdout instanceof ReadableStreamInterface) { |
| 38 | - $process->stdout->on('data', function ($output) use (&$buffers) { |
|
| 38 | + $process->stdout->on('data', function($output) use (&$buffers) { |
|
| 39 | 39 | $buffers['stdout'] .= $output; |
| 40 | 40 | }); |
| 41 | 41 | } |