@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | private function getResponse(string $type, string $url, array $options = []) |
| 112 | 112 | { |
| 113 | - $logger = null; |
|
| 113 | + $logger = NULL; |
|
| 114 | 114 | $validTypes = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']; |
| 115 | 115 | |
| 116 | 116 | if ( ! in_array($type, $validTypes)) |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | ->get('session') |
| 128 | 128 | ->getSegment(AnimeClient::SESSION_SEGMENT); |
| 129 | 129 | |
| 130 | - if ($sessionSegment->get('auth_token') !== null && $url !== K::AUTH_URL) |
|
| 130 | + if ($sessionSegment->get('auth_token') !== NULL && $url !== K::AUTH_URL) |
|
| 131 | 131 | { |
| 132 | 132 | $token = $sessionSegment->get('auth_token'); |
| 133 | 133 | $defaultOptions['headers']['Authorization'] = "bearer {$token}"; |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | private function request(string $type, string $url, array $options = []): array |
| 162 | 162 | { |
| 163 | - $logger = null; |
|
| 163 | + $logger = NULL; |
|
| 164 | 164 | if ($this->getContainer()) |
| 165 | 165 | { |
| 166 | 166 | $logger = $this->container->getLogger('kitsu-request'); |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | protected function postRequest(...$args): array |
| 211 | 211 | { |
| 212 | - $logger = null; |
|
| 212 | + $logger = NULL; |
|
| 213 | 213 | if ($this->getContainer()) |
| 214 | 214 | { |
| 215 | 215 | $logger = $this->container->getLogger('kitsu-request'); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | */ |
| 143 | 143 | private function getResponse(string $type, string $url, array $options = []) |
| 144 | 144 | { |
| 145 | - $logger = null; |
|
| 145 | + $logger = NULL; |
|
| 146 | 146 | if ($this->getContainer()) |
| 147 | 147 | { |
| 148 | 148 | $logger = $this->container->getLogger('mal-request'); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | private function request(string $type, string $url, array $options = []): array |
| 177 | 177 | { |
| 178 | - $logger = null; |
|
| 178 | + $logger = NULL; |
|
| 179 | 179 | if ($this->getContainer()) |
| 180 | 180 | { |
| 181 | 181 | $logger = $this->container->getLogger('mal-request'); |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | */ |
| 214 | 214 | protected function postRequest(...$args): array |
| 215 | 215 | { |
| 216 | - $logger = null; |
|
| 216 | + $logger = NULL; |
|
| 217 | 217 | if ($this->getContainer()) |
| 218 | 218 | { |
| 219 | 219 | $logger = $this->container->getLogger('mal-request'); |