@@ -3,5 +3,5 @@ |
||
| 3 | 3 | namespace WyriHaximus\React; |
| 4 | 4 | |
| 5 | 5 | if (!function_exists('WyriHaximus\React\childProcessPromise')) { |
| 6 | - require __DIR__ . '/functions.php'; |
|
| 6 | + require __DIR__.'/functions.php'; |
|
| 7 | 7 | } |
@@ -22,16 +22,16 @@ |
||
| 22 | 22 | 'stdout' => '', |
| 23 | 23 | ]; |
| 24 | 24 | |
| 25 | - $process->on('exit', function ($exitCode) use ($deferred, &$buffers) { |
|
| 25 | + $process->on('exit', function($exitCode) use ($deferred, &$buffers) { |
|
| 26 | 26 | $deferred->resolve(new ProcessOutcome($exitCode, $buffers['stderr'], $buffers['stdout'])); |
| 27 | 27 | }); |
| 28 | 28 | |
| 29 | - \WyriHaximus\React\futurePromise($loop, $process)->then(function (Process $process) use ($loop, &$buffers) { |
|
| 29 | + \WyriHaximus\React\futurePromise($loop, $process)->then(function(Process $process) use ($loop, &$buffers) { |
|
| 30 | 30 | $process->start($loop); |
| 31 | - $process->stderr->on('data', function ($output) use (&$buffers) { |
|
| 31 | + $process->stderr->on('data', function($output) use (&$buffers) { |
|
| 32 | 32 | $buffers['stderr'] .= $output; |
| 33 | 33 | }); |
| 34 | - $process->stdout->on('data', function ($output) use (&$buffers) { |
|
| 34 | + $process->stdout->on('data', function($output) use (&$buffers) { |
|
| 35 | 35 | $buffers['stdout'] .= $output; |
| 36 | 36 | }); |
| 37 | 37 | }); |