Completed
Branch develop (205409)
by Timothy
07:06
created
src/API/APIRequestBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
Please login to merge, or discard this patch.
src/API/Kitsu/KitsuTrait.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -35,16 +35,16 @@
 block discarded – undo
35 35
 	protected $requestBuilder;
36 36
 	
37 37
 	/**
38
-     * The Guzzle http client object
39
-     * @var object
40
-     */
41
-    protected $client;
42
-
43
-    /**
44
-     * Cookie jar object for api requests
45
-     * @var object
46
-     */
47
-    protected $cookieJar;
38
+	 * The Guzzle http client object
39
+	 * @var object
40
+	 */
41
+	protected $client;
42
+
43
+	/**
44
+	 * Cookie jar object for api requests
45
+	 * @var object
46
+	 */
47
+	protected $cookieJar;
48 48
 
49 49
 	/**
50 50
 	 * The base url for api requests
Please login to merge, or discard this patch.
src/API/Kitsu/KitsuRequestBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
Please login to merge, or discard this patch.
src/API/MAL/MALRequestBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
Please login to merge, or discard this patch.
src/API/MAL/MALTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 			{
Please login to merge, or discard this patch.
app/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
Please login to merge, or discard this patch.