Completed
Branch master (205409)
by Timothy
02:36
created
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.
src/API/GuzzleTrait.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/Model/AnimeCollection.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/Model/DB.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/Model/API.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/Model/Collection.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/Model/Anime.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/Command/ClearCache.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/Command/SyncKitsuWithMal.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.