Completed
Branch master (205409)
by Timothy
02:36
created
src/API/Kitsu/Transformer/MangaListTransformer.php 1 patch
Spacing   +2 added lines, -2 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
  *
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	public function transform($item)
37 37
 	{
38 38
 /*?><pre><?= print_r($item, TRUE) ?></pre><?php*/
39
-		$manga =& $item['manga'];
39
+		$manga = & $item['manga'];
40 40
 
41 41
 		$rating = (is_numeric($item['attributes']['rating']))
42 42
 			? intval(2 * $item['attributes']['rating'])
Please login to merge, or discard this patch.
src/API/MAL/Model.php 1 patch
Spacing   +2 added lines, -2 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
  *
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 			]
70 70
 		]);
71 71
 
72
-		return $list;//['anime'];
72
+		return $list; //['anime'];
73 73
 	}
74 74
 
75 75
 	public function getListItem(string $listId): array
Please login to merge, or discard this patch.
src/API/MAL/Transformer/AnimeListTransformer.php 1 patch
Spacing   +2 added lines, -2 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
  *
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 			'data' => [
42 42
 				'status' => self::statusMap[$item['watching_status']],
43 43
 				'rating' => $item['user_rating'],
44
-				'rewatch_value' => (int) $rewatching,
44
+				'rewatch_value' => (int)$rewatching,
45 45
 				'times_rewatched' => $item['rewatched'],
46 46
 				'comments' => $item['notes'],
47 47
 				'episode' => $item['episodes_watched']
Please login to merge, or discard this patch.
src/API/Kitsu.php 1 patch
Spacing   +4 added lines, -4 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
  *
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 */
101 101
 	protected static function getServiceMetaData(string $hostname = null): array
102 102
 	{
103
-		switch($hostname)
103
+		switch ($hostname)
104 104
 		{
105 105
 			case 'www.crunchyroll.com':
106 106
 				return [
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
 		if (array_key_exists('titles', $data))
214 214
 		{
215
-			foreach($data['titles'] as $alternateTitle)
215
+			foreach ($data['titles'] as $alternateTitle)
216 216
 			{
217 217
 				if (self::titleIsUnique($alternateTitle, $valid))
218 218
 				{
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 			return false;
239 239
 		}
240 240
 
241
-		foreach($existingTitles as $existing)
241
+		foreach ($existingTitles as $existing)
242 242
 		{
243 243
 			$isSubset = stripos($existing, $title) !== FALSE;
244 244
 			$diff = levenshtein($existing, $title);
Please login to merge, or discard this patch.
src/API/XML.php 1 patch
Spacing   +5 added lines, -5 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
  *
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 		for ($i = 0; $i < $length; $i++)
185 185
 		{
186 186
 			$el = $nodeList->item($i);
187
-			$current =& $root[$el->nodeName];
187
+			$current = & $root[$el->nodeName];
188 188
 
189 189
 			// It's a top level element!
190 190
 			if (is_a($el->childNodes->item(0), 'DomText') || ( ! $el->hasChildNodes()))
@@ -232,14 +232,14 @@  discard block
 block discarded – undo
232 232
 	 * @param array $data The data for the current node
233 233
 	 * @return void
234 234
 	 */
235
-	private static function arrayPropertiesToXmlNodes(DOMDocument &$dom, DOMNode &$parent, array $data)
235
+	private static function arrayPropertiesToXmlNodes(DOMDocument & $dom, DOMNode & $parent, array $data)
236 236
 	{
237
-		foreach($data as $key => $props)
237
+		foreach ($data as $key => $props)
238 238
 		{
239 239
 			// 'Flatten' the array as you create the xml
240 240
 			if (is_numeric($key))
241 241
 			{
242
-				foreach($props as $key => $props)
242
+				foreach ($props as $key => $props)
243 243
 				{
244 244
 					break;
245 245
 				}
Please login to merge, or discard this patch.
src/MenuGenerator.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
  * Hummingbird Anime Client
4 4
  *
Please login to merge, or discard this patch.
src/Command/BaseCommand.php 1 patch
Spacing   +2 added lines, -2 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
  *
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		$config = AnimeClient::loadToml($CONF_DIR);
76 76
 		$config_array = array_merge($base_config, $config);
77 77
 
78
-		$di = function ($config_array) use ($APP_DIR) {
78
+		$di = function($config_array) use ($APP_DIR) {
79 79
 			$container = new Container();
80 80
 			
81 81
 			// -------------------------------------------------------------------------
Please login to merge, or discard this patch.
src/Util.php 1 patch
Spacing   +2 added lines, -2 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
  * Hummingbird Anime Client
4 4
  *
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	{
92 92
 		$url = $this->container->get('request')
93 93
 			->getUri();
94
-		$page_segments = explode("/", (string) $url);
94
+		$page_segments = explode("/", (string)$url);
95 95
 
96 96
 		$intersect = array_intersect($page_segments, self::$form_pages);
97 97
 
Please login to merge, or discard this patch.
src/Dispatcher.php 1 patch
Spacing   +3 added lines, -3 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
  * Hummingbird Anime Client
4 4
  *
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 				$response->getStatusCode(),
144 144
 				'API Error',
145 145
 				'There was a problem getting data from an external source.',
146
-				(string) $response->getBody()
146
+				(string)$response->getBody()
147 147
 			]);
148 148
 		}
149 149
 	}
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
 		$params = [];
291 291
 
292
-		switch($failure->failedRule) {
292
+		switch ($failure->failedRule) {
293 293
 			case 'Aura\Router\Rule\Allows':
294 294
 				$params = [
295 295
 					'http_code' => 405,
Please login to merge, or discard this patch.