Completed
Branch master (1afb45)
by Timothy
04:13
created
src/Aviat/AnimeClient/Dispatcher.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@
 block discarded – undo
273 273
 
274 274
 		$params = [];
275 275
 
276
-		switch($failure->failedRule) {
276
+		switch ($failure->failedRule) {
277 277
 			case 'Aura\Router\Rule\Alows':
278 278
 				$params = [
279 279
 					'http_code' => 405,
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -273,7 +273,8 @@
 block discarded – undo
273 273
 
274 274
 		$params = [];
275 275
 
276
-		switch($failure->failedRule) {
276
+		switch($failure->failedRule)
277
+		{
277 278
 			case 'Aura\Router\Rule\Alows':
278 279
 				$params = [
279 280
 					'http_code' => 405,
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Controller/Anime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
 		foreach ($raw_status_list as $status_item)
126 126
 		{
127
-			$statuses[$status_item] = (string) $this->string($status_item)
127
+			$statuses[$status_item] = (string)$this->string($status_item)
128 128
 				->underscored()
129 129
 				->humanize()
130 130
 				->titleize();
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
 		foreach ($raw_status_list as $status_item)
185 185
 		{
186
-			$statuses[$status_item] = (string) $this->string($status_item)
186
+			$statuses[$status_item] = (string)$this->string($status_item)
187 187
 				->underscored()
188 188
 				->humanize()
189 189
 				->titleize();
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Model/Collection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 	 * Create a new collection object
37 37
 	 *
38 38
 	 * @param ContainerInterface $container
39
-	 * @return boolean
39
+	 * @return false|null
40 40
 	 */
41 41
 	public function __construct(ContainerInterface $container)
42 42
 	{
Please login to merge, or discard this patch.
src/Aviat/Ion/Cache/Driver/NullDriver.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 *
51 51
 	 * @param string $key
52 52
 	 * @param mixed $value
53
-	 * @return CacheDriverInterface
53
+	 * @return NullDriver
54 54
 	 */
55 55
 	public function set($key, $value)
56 56
 	{
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * Invalidate a cached value
63 63
 	 *
64 64
 	 * @param string $key
65
-	 * @return CacheDriverInterface
65
+	 * @return NullDriver
66 66
 	 */
67 67
 	public function invalidate($key)
68 68
 	{
Please login to merge, or discard this patch.
src/Aviat/Ion/Json.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@
 block discarded – undo
70 70
 	 *
71 71
 	 * @param string $filename
72 72
 	 * @param bool $assoc
73
- 	 * @param int $depth
74
- 	 * @param int $options
73
+	 * @param int $depth
74
+	 * @param int $options
75 75
 	 * @return mixed
76 76
 	 */
77 77
 	public static function decodeFile($filename, $assoc = TRUE, $depth = 512, $options = 0)
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Command/CacheImages.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
 		$total = count($raw_list);
37 37
 		$current = 0;
38
-		foreach($manga_list as $item)
38
+		foreach ($manga_list as $item)
39 39
 		{
40 40
 			$this->model->get_cached_image($item['poster_image'], $item['id'], 'manga');
41 41
 			$current++;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
 		$total = count($raw_list);
57 57
 		$current = 0;
58
-		foreach($raw_list as $item)
58
+		foreach ($raw_list as $item)
59 59
 		{
60 60
 			$this->model->get_cached_image($item['anime']['cover_image'], $item['anime']['slug'], 'anime');
61 61
 			$current++;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 			$this->model->get_cached_image($item['poster_image'], $item['id'], 'manga');
41 41
 			$current++;
42 42
 
43
-			echo "Cached {$current} of {$total} manga images. \n";
43
+			echo "cached {$current} of {$total} manga images. \n";
44 44
 		}
45 45
 	}
46 46
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 			$this->model->get_cached_image($item['anime']['cover_image'], $item['anime']['slug'], 'anime');
61 61
 			$current++;
62 62
 
63
-			echo "Cached {$current} of {$total} anime images. \n";
63
+			echo "cached {$current} of {$total} anime images. \n";
64 64
 		}
65 65
 	}
66 66
 
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Command/BaseCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 		$config = AnimeClient::load_toml($CONF_DIR);
58 58
 		$config_array = array_merge($base_config, $config);
59 59
 
60
-		$di = function ($config_array) {
60
+		$di = function($config_array) {
61 61
 			$container = new Container();
62 62
 
63 63
 			// Create Config Object
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Controller/Manga.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 		];
83 83
 
84 84
 		$data = ($status !== 'all')
85
-			? [$map[$status] => $this->model->get_list($map[$status]) ]
85
+			? [$map[$status] => $this->model->get_list($map[$status])]
86 86
 			: $this->model->get_list('All');
87 87
 
88 88
 		$this->outputHTML('manga/' . $view_map[$view], [
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
 		if ($full_result['statusCode'] == 200)
201 201
 		{
202
-			$m =& $result['manga'][0];
202
+			$m = & $result['manga'][0];
203 203
 			$title = ( ! empty($m['english_title']))
204 204
 				? "{$m['romaji_title']} ({$m['english_title']})"
205 205
 				: "{$m['romaji_title']}";
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Model/Manga.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@
 block discarded – undo
263 263
 			$output[$key][] = $entry;
264 264
 		}
265 265
 
266
-		foreach($output as &$val)
266
+		foreach ($output as &$val)
267 267
 		{
268 268
 			$this->sort_by_name($val, 'manga');
269 269
 		}
Please login to merge, or discard this patch.