Completed
Branch develop (205409)
by Timothy
07:06
created
src/API/APIRequestBuilder.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	/**
84 84
 	 * Set the request body
85 85
 	 *
86
-	 * @param FormBody|string $body
86
+	 * @param string $body
87 87
 	 * @return self
88 88
 	 */
89 89
 	public function setBody($body): self
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 	 * This is a dirty hack until I can fully track down where
195 195
 	 * the dual-encoding happens
196 196
 	 *
197
-	 * @param FormBody $formBody The form builder object to fix
197
+	 * @param \Amp\Artax\FormBody $formBody The form builder object to fix
198 198
 	 * @return string
199 199
 	 */
200 200
 	private function fixBody(FormBody $formBody): string
Please login to merge, or discard this 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 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 * This is a dirty hack until I can fully track down where
71 71
 	 * the dual-encoding happens
72 72
 	 *
73
-	 * @param FormBody $formBody The form builder object to fix
73
+	 * @param \Amp\Artax\FormBody $formBody The form builder object to fix
74 74
 	 * @return string
75 75
 	 */
76 76
 	private function fixBody(FormBody $formBody): string
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 * @param string $type
86 86
 	 * @param string $url
87 87
 	 * @param array $options
88
-	 * @return \Amp\Promise
88
+	 * @return \Amp\Artax\Request
89 89
 	 */
90 90
 	public function setUpRequest(string $type, string $url, array $options = [])
91 91
 	{
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 	/**
198 198
 	 * Remove some boilerplate for get requests
199 199
 	 *
200
-	 * @param array $args
200
+	 * @param string $args
201 201
 	 * @return array
202 202
 	 */
203 203
 	protected function getRequest(...$args): array
Please login to merge, or discard this 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.
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.
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.