@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | $config = $this->container->get('config'); |
103 | 103 | $logger = $this->container->getLogger('mal-request'); |
104 | 104 | |
105 | - $headers = array_merge($this->defaultHeaders, $options['headers'] ?? [], [ |
|
105 | + $headers = array_merge($this->defaultHeaders, $options['headers'] ?? [], [ |
|
106 | 106 | 'Authorization' => 'Basic ' . |
107 | - base64_encode($config->get(['mal','username']) . ':' .$config->get(['mal','password'])) |
|
107 | + base64_encode($config->get(['mal', 'username']) . ':' . $config->get(['mal', 'password'])) |
|
108 | 108 | ]); |
109 | 109 | |
110 | 110 | $query = $options['query'] ?? []; |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | $response = $this->getResponse($type, $url, $options); |
185 | 185 | |
186 | - if ((int) $response->getStatus() > 299 || (int) $response->getStatus() < 200) |
|
186 | + if ((int)$response->getStatus() > 299 || (int)$response->getStatus() < 200) |
|
187 | 187 | { |
188 | 188 | if ($logger) |
189 | 189 | { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | } |
192 | 192 | } |
193 | 193 | |
194 | - return XML::toArray((string) $response->getBody()); |
|
194 | + return XML::toArray((string)$response->getBody()); |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | /** |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | $response = $this->getResponse('POST', ...$args); |
223 | 223 | $validResponseCodes = [200, 201]; |
224 | 224 | |
225 | - if ( ! in_array((int) $response->getStatus(), $validResponseCodes)) |
|
225 | + if ( ! in_array((int)$response->getStatus(), $validResponseCodes)) |
|
226 | 226 | { |
227 | 227 | if ($logger) |
228 | 228 | { |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |