@@ -36,7 +36,7 @@ |
||
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 | { |
@@ -50,7 +50,7 @@ discard block |
||
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 |
||
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 | { |
@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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++; |
@@ -40,7 +40,7 @@ discard block |
||
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 |
||
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 |
@@ -57,7 +57,7 @@ |
||
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 |
@@ -82,7 +82,7 @@ discard block |
||
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 |
||
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']}"; |
@@ -263,7 +263,7 @@ |
||
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 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | $this->setContainer($container); |
90 | 90 | $auraUrlGenerator = $container->get('aura-router')->getGenerator(); |
91 | 91 | $urlGenerator = $container->get('url-generator'); |
92 | - $this->cache = $container->get('cache'); |
|
92 | + $this->cache = $container->get('cache'); |
|
93 | 93 | $this->config = $container->get('config'); |
94 | 94 | $this->request = $container->get('request'); |
95 | 95 | $this->response = $container->get('response'); |