aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-10-20 09:34:07 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-10-20 09:35:18 +0200
commit29da82f241a678b3970012be9bad7457a4e10c0d (patch)
tree323d12a85a15feb475e8af2dd2af10929d915cd0
parent493df21c2de61a82d6ed022c624524569539cc29 (diff)
downloadFastcgi-29da82f241a678b3970012be9bad7457a4e10c0d.zip
Fastcgi-29da82f241a678b3970012be9bad7457a4e10c0d.tar.gz
Fastcgi-29da82f241a678b3970012be9bad7457a4e10c0d.tar.bz2
fix(Responder) Use `else if` instead of two `if`.
-rw-r--r--Responder.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/Responder.php b/Responder.php
index 93238a2..2b927d1 100644
--- a/Responder.php
+++ b/Responder.php
@@ -238,9 +238,7 @@ class Responder extends Connection
if (self::STREAM_STDOUT === $handle[parent::HEADER_TYPE]) {
$responseOutput .= $handle[parent::HEADER_CONTENT];
- }
-
- if (self::STREAM_STDERR === $handle[parent::HEADER_TYPE]) {
+ } elseif (self::STREAM_STDERR === $handle[parent::HEADER_TYPE]) {
$this->_responseError .= $handle[parent::HEADER_CONTENT];
}
} while (self::REQUEST_END !== $handle[parent::HEADER_TYPE]);