1
0
mirror of https://github.com/danog/process.git synced 2025-01-22 13:51:43 +01:00

Fix code style

This commit is contained in:
Niklas Keller 2017-06-15 21:15:27 +02:00
parent 90a18ada1a
commit 5468a5280f

View File

@ -7,7 +7,6 @@ use Amp\ByteStream\OutputStream;
use Amp\ByteStream\ResourceInputStream; use Amp\ByteStream\ResourceInputStream;
use Amp\ByteStream\ResourceOutputStream; use Amp\ByteStream\ResourceOutputStream;
use Amp\Deferred; use Amp\Deferred;
use Amp\Delayed;
use Amp\Loop; use Amp\Loop;
use Amp\Promise; use Amp\Promise;
@ -217,7 +216,7 @@ class Process {
} }
$code = $exitcode !== -1 ? $exitcode : $status["exitcode"]; $code = $exitcode !== -1 ? $exitcode : $status["exitcode"];
} else if (!\is_resource($resource) || \feof($resource)) { } elseif (!\is_resource($resource) || \feof($resource)) {
throw new ProcessException("Process ended unexpectedly"); throw new ProcessException("Process ended unexpectedly");
} else { } else {
$code = \rtrim(@\stream_get_contents($resource)); $code = \rtrim(@\stream_get_contents($resource));