Completed
Branch develop (6d735e)
by Timothy
07:48
created
src/Model/Manga.php 2 patches
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.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
23 23
 /**
24 24
  * Model for handling requests dealing with the manga list
25 25
  */
26
-class Manga extends API
27
-{
26
+class Manga extends API {
28 27
 
29 28
 	const READING = 'Reading';
30 29
 	const PLAN_TO_READ = 'Plan to Read';
@@ -160,12 +159,14 @@  discard block
 block discarded – undo
160 159
 			self::COMPLETED => [],
161 160
 		];
162 161
 
163
-		foreach ($data as &$entry) {
162
+		foreach ($data as &$entry)
163
+		{
164 164
 			$key = $this->status_map[$entry['reading_status']];
165 165
 			$output[$key][] = $entry;
166 166
 		}
167 167
 
168
-		foreach ($output as &$val) {
168
+		foreach ($output as &$val)
169
+		{
169 170
 			$this->sortByName($val, 'manga');
170 171
 		}
171 172
 
Please login to merge, or discard this patch.
src/Model/Anime.php 2 patches
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.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,8 @@
 block discarded – undo
53 53
 	 * Anime constructor.
54 54
 	 * @param ContainerInterface $container
55 55
 	 */
56
-	public function __construct(ContainerInterface $container) {
56
+	public function __construct(ContainerInterface $container)
57
+	{
57 58
 		parent::__construct($container);
58 59
 
59 60
 		$config = $container->get('config');
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/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/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/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/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/AnimeClient.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
  *
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
 			if ($key === 'config')
54 54
 			{
55
-				foreach($config as $name => $value)
55
+				foreach ($config as $name => $value)
56 56
 				{
57 57
 					$output[$name] = $value;
58 58
 				}
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.