Completed
Branch develop (6d735e)
by Timothy
07:48
created
src/Command/BaseCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 	/**
65 65
 	 * Setup the Di container
66 66
 	 *
67
-	 * @return Container
67
+	 * @return \Aviat\Ion\Di\ContainerInterface
68 68
 	 */
69 69
 	protected function setupContainer()
70 70
 	{
Please login to merge, or discard this 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/Controller.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 	/**
85 85
 	 * Constructor
86 86
 	 *
87
-	 * @param ContainerInterface $container
87
+	 * @param \Aviat\Ion\Di\ContainerInterface $container
88 88
 	 */
89 89
 	public function __construct(ContainerInterface $container)
90 90
 	{
Please login to merge, or discard this 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/Model/API.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 	/**
48 48
 	 * Constructor
49 49
 	 *
50
-	 * @param ContainerInterface $container
50
+	 * @param \Aviat\Ion\Di\ContainerInterface $container
51 51
 	 */
52 52
 	public function __construct(ContainerInterface $container)
53 53
 	{
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/Util.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	/**
51 51
 	 * Set up the Util class
52 52
 	 *
53
-	 * @param ContainerInterface $container
53
+	 * @param \Aviat\Ion\Di\ContainerInterface $container
54 54
 	 */
55 55
 	public function __construct(ContainerInterface $container)
56 56
 	{
Please login to merge, or discard this 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/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 3 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.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 	 * @param string|null $malId
167 167
 	 * @return bool
168 168
 	 */
169
-	public function deleteLibraryItem(string $id, string $malId = null): bool
169
+	public function deleteLibraryItem(string $id, string $malId = NULL): bool
170 170
 	{
171 171
 		if ($this->useMALAPI && ! is_null($malId))
172 172
 		{
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/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.