@@ -64,7 +64,7 @@ |
||
| 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 | { |
@@ -1,4 +1,4 @@ discard block |
||
| 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 |
||
| 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 | // ------------------------------------------------------------------------- |
@@ -84,7 +84,7 @@ |
||
| 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 | { |
@@ -1,4 +1,4 @@ discard block |
||
| 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 |
||
| 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'); |
@@ -47,7 +47,7 @@ |
||
| 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 | { |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Anime List Client |
| 4 | 4 | * |
@@ -50,7 +50,7 @@ |
||
| 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 | { |
@@ -1,4 +1,4 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Anime List Client |
| 4 | 4 | * |
@@ -23,8 +23,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Anime List Client |
| 4 | 4 | * |
@@ -53,7 +53,8 @@ |
||
| 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'); |
@@ -166,7 +166,7 @@ |
||
| 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 | { |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Anime List Client |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Anime List Client |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Anime List Client |
| 4 | 4 | * |