Skip to content

Commit 96c43b2

Browse files
authored
Merge pull request #92 from php-http/strict-comparisons
strict comparisons
2 parents e27f1be + 76affc7 commit 96c43b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Plugin/DecoderPlugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ private function decodeOnEncodingHeader($headerName, ResponseInterface $response
123123
*/
124124
private function decorateStream($encoding, StreamInterface $stream)
125125
{
126-
if ('chunked' == strtolower($encoding)) {
126+
if ('chunked' === strtolower($encoding)) {
127127
return new Encoding\DechunkStream($stream);
128128
}
129129

130-
if ('deflate' == strtolower($encoding)) {
130+
if ('deflate' === strtolower($encoding)) {
131131
return new Encoding\DecompressStream($stream);
132132
}
133133

134-
if ('gzip' == strtolower($encoding)) {
134+
if ('gzip' === strtolower($encoding)) {
135135
return new Encoding\GzipDecodeStream($stream);
136136
}
137137

0 commit comments

Comments
 (0)