Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ public function setStream($streamfile = true)
582582
*/
583583
public function getStream()
584584
{
585-
if (!is_null($this->streamName)) {
585+
if (null !== $this->streamName) {
586586
return $this->streamName;
587587
}
588588

src/Response/Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function getRawBody()
242242
*/
243243
protected function readStream()
244244
{
245-
if (!is_null($this->contentLength)) {
245+
if (null !== $this->contentLength) {
246246
$bytes = $this->contentLength - $this->contentStreamed;
247247
} else {
248248
$bytes = -1; //Read the whole buffer

0 commit comments

Comments
 (0)