@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace PeeHaa\AsyncTwitter\Api\Client; |
4 | 4 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | } |
63 | 63 | |
64 | - $this->rawDataBuffer = (string)\substr($this->rawDataBuffer, $pos + 2); |
|
64 | + $this->rawDataBuffer = (string) \substr($this->rawDataBuffer, $pos + 2); |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 | |
@@ -69,12 +69,12 @@ discard block |
||
69 | 69 | { |
70 | 70 | static $zlibEncodingMap = [ |
71 | 71 | 'gzip' => ZLIB_ENCODING_GZIP, |
72 | - 'x-gzip' => ZLIB_ENCODING_GZIP, // recommended for compatibility by MDN |
|
72 | + 'x-gzip' => ZLIB_ENCODING_GZIP, // recommended for compatibility by MDN |
|
73 | 73 | 'deflate' => ZLIB_ENCODING_DEFLATE, |
74 | 74 | ]; |
75 | 75 | |
76 | - $status = (int)($info['status'] ?? -1); |
|
77 | - $headers = (array)($info['headers'] ?? []); |
|
76 | + $status = (int) ($info['status'] ?? -1); |
|
77 | + $headers = (array) ($info['headers'] ?? []); |
|
78 | 78 | |
79 | 79 | if ($status !== 200) { |
80 | 80 | $this->openDeferred->fail(new StreamOpenFailureException("Server responded with HTTP status {$status}")); |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace PeeHaa\AsyncTwitter\Api\Client\Exception; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace PeeHaa\AsyncTwitter\Api\Request; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace PeeHaa\AsyncTwitter\Api\Request\Status; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace PeeHaa\AsyncTwitter\Oauth\Signature; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace PeeHaa\AsyncTwitter\Oauth\Signature; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace PeeHaa\AsyncTwitter\Request; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace PeeHaa\AsyncTwitter\Request; |
4 | 4 |