| @@ -28,20 +28,20 @@ discard block | ||
| 28 | 28 | $process = new BuiltinServer($host, $docroot, $router, $this->php); | 
| 29 | 29 | |
| 30 | 30 | $process->start($this->loop); | 
| 31 | -        $process->on('exit', function ($code) use ($deferred) { | |
| 31 | +        $process->on('exit', function($code) use ($deferred) { | |
| 32 | 32 |              $this->stderr->write("Process exit with code $code\n"); | 
| 33 | 33 | $deferred->reject(); | 
| 34 | 34 | }); | 
| 35 | 35 | |
| 36 | 36 | $process->stdin->close(); | 
| 37 | 37 | $process->stdout->close(); | 
| 38 | -        $process->stderr->on('data', function ($output) use ($deferred) { | |
| 38 | +        $process->stderr->on('data', function($output) use ($deferred) { | |
| 39 | 39 | $this->stderr->write($output); | 
| 40 | 40 | $deferred->reject(); | 
| 41 | 41 | }); | 
| 42 | 42 | |
| 43 | 43 | $timer = new Deferred; | 
| 44 | -        $this->loop->addTimer(0.05, function () use ($timer, $process) { | |
| 44 | +        $this->loop->addTimer(0.05, function() use ($timer, $process) { | |
| 45 | 45 |              if (DIRECTORY_SEPARATOR === '\\') { | 
| 46 | 46 | // Pipes opened by proc_open() can break stream_select() loop in Windows. | 
| 47 | 47 | // This fix might do the trick... | 
| @@ -53,7 +53,7 @@ discard block | ||
| 53 | 53 | return \React\Promise\race([ | 
| 54 | 54 | $deferred->promise(), | 
| 55 | 55 | $timer->promise(), | 
| 56 | -        ])->then(null, function () use ($process) { | |
| 56 | +        ])->then(null, function() use ($process) { | |
| 57 | 57 | $process->terminate(); | 
| 58 | 58 | return new RejectedPromise; | 
| 59 | 59 | }); | 
| @@ -63,7 +63,7 @@ discard block | ||
| 63 | 63 |      { | 
| 64 | 64 | return $this | 
| 65 | 65 | ->createInternalAsync($host, $docroot, $router) | 
| 66 | -        ->then(null, function () use ($host, $docroot, $router, $retry) { | |
| 66 | +        ->then(null, function() use ($host, $docroot, $router, $retry) { | |
| 67 | 67 |              if ($retry < 1) { | 
| 68 | 68 |                  throw new \RuntimeException('Failed to launch server.'); | 
| 69 | 69 | } |