PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/google/guzzlehttp/psr7/src/Response.php +9 -9 1.2.7 → 1.4.2 View file →
@@ -1,11 +1,11 @@
1 1 <?php
2 2
3 3 declare (strict_types=1);
4 -namespace Dudlewebs\WPMCS\GuzzleHttp\Psr7;
4 +namespace Dudlewebs\WPMCS\GCP\GuzzleHttp\Psr7;
5 5
6 -use Dudlewebs\WPMCS\Psr\Http\Message\ResponseInterface;
7 -use Dudlewebs\WPMCS\Psr\Http\Message\StreamInterface;
6 +use Dudlewebs\WPMCS\GCP\Psr\Http\Message\ResponseInterface;
7 +use Dudlewebs\WPMCS\GCP\Psr\Http\Message\StreamInterface;
8 8 /**
9 9 * PSR-7 response implementation.
10 10 */
11 11 class Response implements ResponseInterface
@@ -38,17 +38,17 @@
38 38 $this->reasonPhrase = (string) $reason;
39 39 }
40 40 $this->protocol = $version;
41 41 }
42 - public function getStatusCode(): int
42 + public function getStatusCode() : int
43 43 {
44 44 return $this->statusCode;
45 45 }
46 - public function getReasonPhrase(): string
46 + public function getReasonPhrase() : string
47 47 {
48 48 return $this->reasonPhrase;
49 49 }
50 - public function withStatus($code, $reasonPhrase = ''): ResponseInterface
50 + public function withStatus($code, $reasonPhrase = '') : ResponseInterface
51 51 {
52 52 $this->assertStatusCodeIsInteger($code);
53 53 $code = (int) $code;
54 54 $this->assertStatusCodeRange($code);
@@ -62,15 +62,15 @@
62 62 }
63 63 /**
64 64 * @param mixed $statusCode
65 65 */
66 - private function assertStatusCodeIsInteger($statusCode): void
66 + private function assertStatusCodeIsInteger($statusCode) : void
67 67 {
68 - if (filter_var($statusCode, \FILTER_VALIDATE_INT) === \false) {
68 + if (\filter_var($statusCode, \FILTER_VALIDATE_INT) === \false) {
69 69 throw new \InvalidArgumentException('Status code must be an integer value.');
70 70 }
71 71 }
72 - private function assertStatusCodeRange(int $statusCode): void
72 + private function assertStatusCodeRange(int $statusCode) : void
73 73 {
74 74 if ($statusCode < 100 || $statusCode >= 600) {
75 75 throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.');
76 76 }