@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param string $message |
27 | 27 | * @param array $curlInfo |
28 | 28 | */ |
29 | - public function __construct (int $code, string $message, array $curlInfo) { |
|
29 | + public function __construct(int $code, string $message, array $curlInfo) { |
|
30 | 30 | parent::__construct($message, $code); |
31 | 31 | $this->curlInfo = $curlInfo; |
32 | 32 | } |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @return array |
38 | 38 | */ |
39 | - public function asResponse () { |
|
40 | - return json_decode($this->getMessage(), true, JSON_BIGINT_AS_STRING | JSON_THROW_ON_ERROR); |
|
39 | + public function asResponse() { |
|
40 | + return json_decode($this->getMessage(), true, JSON_BIGINT_AS_STRING|JSON_THROW_ON_ERROR); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @return array |
47 | 47 | */ |
48 | - public function getCurlInfo (): array { |
|
48 | + public function getCurlInfo(): array { |
|
49 | 49 | return $this->curlInfo; |
50 | 50 | } |
51 | 51 | |
@@ -53,14 +53,14 @@ discard block |
||
53 | 53 | * @param int $code |
54 | 54 | * @return bool |
55 | 55 | */ |
56 | - final public function is (int $code): bool { |
|
56 | + final public function is(int $code): bool { |
|
57 | 57 | return $this->code === $code; |
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
61 | 61 | * @return bool |
62 | 62 | */ |
63 | - final public function isCurl (): bool { |
|
63 | + final public function isCurl(): bool { |
|
64 | 64 | return $this->code < 400; |
65 | 65 | } |
66 | 66 | } |
67 | 67 | \ No newline at end of file |