Passed
Branch master (7c9779)
by Terry
01:38
created
src/Psr7/Stream.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function detach()
152 152
     {
153
-        if (! isset($this->stream) || ! $this->stream) {
153
+        if (!isset($this->stream) || !$this->stream) {
154 154
             return null;
155 155
         }
156 156
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function getSize()
174 174
     {
175
-        if (! isset($this->stream) || ! $this->stream) {
175
+        if (!isset($this->stream) || !$this->stream) {
176 176
             return null;
177 177
         }
178 178
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     {
230 230
         $this->assertPropertyStream();
231 231
 
232
-        if (! $this->seekable) {
232
+        if (!$this->seekable) {
233 233
             throw new RuntimeException(
234 234
                 'Stream is not seekable.'
235 235
             );
@@ -364,10 +364,10 @@  discard block
 block discarded – undo
364 364
      */
365 365
     public function getMetadata($key = null)
366 366
     {
367
-        if (! empty($this->stream)) {
367
+        if (!empty($this->stream)) {
368 368
             $this->meta = stream_get_meta_data($this->stream);
369 369
             
370
-            if (! $key) {
370
+            if (!$key) {
371 371
                 return $this->meta;
372 372
             }
373 373
 
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
      */
409 409
     protected function assertStream($stream): void
410 410
     {
411
-        if (! is_resource($stream)) {
411
+        if (!is_resource($stream)) {
412 412
             throw new InvalidArgumentException(
413 413
                 sprintf(
414 414
                     'Stream should be a resource, but "%s" provided.',
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
      */
427 427
     protected function assertPropertyStream(): void
428 428
     {
429
-        if (! isset($this->stream) || ! $this->stream) {
429
+        if (!isset($this->stream) || !$this->stream) {
430 430
             throw new RuntimeException(
431 431
                 'Stream does not exist.'
432 432
             );
Please login to merge, or discard this patch.