Completed
Branch develop (9c1dc5)
by Timothy
07:15
created
src/Model/Manga.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/Controller.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
 		$this->setContainer($container);
92 92
 		$auraUrlGenerator = $container->get('aura-router')->getGenerator();
93 93
 		$urlGenerator = $container->get('url-generator');
94
-		$this->cache =  $container->get('cache');
94
+		$this->cache = $container->get('cache');
95 95
 		$this->config = $container->get('config');
96 96
 		$this->request = $container->get('request');
97 97
 		$this->response = $container->get('response');
Please login to merge, or discard this patch.
src/Controller/Manga.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
  *
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 		];
88 88
 
89 89
 		$data = ($status !== 'all')
90
-			? [$map[$status] => $this->model->getList($map[$status]) ]
90
+			? [$map[$status] => $this->model->getList($map[$status])]
91 91
 			: $this->model->getList('All');
92 92
 
93 93
 		$this->outputHTML('manga/' . $view_map[$view], [
Please login to merge, or discard this patch.
src/Controller/Anime.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
  *
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
 		foreach ($raw_status_list as $status_item)
187 187
 		{
188
-			$statuses[$status_item] = (string) $this->string($status_item)
188
+			$statuses[$status_item] = (string)$this->string($status_item)
189 189
 				->underscored()
190 190
 				->humanize()
191 191
 				->titleize();
Please login to merge, or discard this patch.
src/API/JsonAPI.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
  *
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	
45 45
 	public static function inlineRawIncludes(array &$data, string $key): array
46 46
 	{
47
-		foreach($data['data'] as $i => &$item)
47
+		foreach ($data['data'] as $i => &$item)
48 48
 		{
49 49
 			$item[$key] = $data['included'][$i];
50 50
 		}
@@ -70,10 +70,10 @@  discard block
 block discarded – undo
70 70
 			// Duplicate the item for the output
71 71
 			$inlined[$key][$itemId] = $item;
72 72
 			
73
-			foreach($item['relationships'] as $type => $ids)
73
+			foreach ($item['relationships'] as $type => $ids)
74 74
 			{
75 75
 				$inlined[$key][$itemId]['relationships'][$type] = [];
76
-				foreach($ids as $id)
76
+				foreach ($ids as $id)
77 77
 				{
78 78
 					$inlined[$key][$itemId]['relationships'][$type][$id] = $included[$type][$id];
79 79
 				}
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 	{
126 126
 		$organized = [];
127 127
 
128
-		foreach($relationships as $key => $data)
128
+		foreach ($relationships as $key => $data)
129 129
 		{
130 130
 			if ( ! array_key_exists('data', $data))
131 131
 			{
Please login to merge, or discard this patch.
src/API/Kitsu/Transformer/MangaTransformer.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
  *
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	{
35 35
 		$genres = [];
36 36
 		
37
-		foreach($item['included'] as $included)
37
+		foreach ($item['included'] as $included)
38 38
 		{
39 39
 			if ($included['type'] === 'genres')
40 40
 			{
Please login to merge, or discard this patch.
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/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.