mirror of
https://github.com/danog/process.git
synced 2025-01-22 05:41:17 +01:00
Fix code style
This commit is contained in:
parent
90a18ada1a
commit
5468a5280f
@ -7,7 +7,6 @@ use Amp\ByteStream\OutputStream;
|
||||
use Amp\ByteStream\ResourceInputStream;
|
||||
use Amp\ByteStream\ResourceOutputStream;
|
||||
use Amp\Deferred;
|
||||
use Amp\Delayed;
|
||||
use Amp\Loop;
|
||||
use Amp\Promise;
|
||||
|
||||
@ -217,7 +216,7 @@ class Process {
|
||||
}
|
||||
|
||||
$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");
|
||||
} else {
|
||||
$code = \rtrim(@\stream_get_contents($resource));
|
||||
|
Loading…
x
Reference in New Issue
Block a user