@@ -273,7 +273,7 @@ |
||
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, |
@@ -273,7 +273,8 @@ |
||
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, |
@@ -124,7 +124,7 @@ discard block |
||
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 |
||
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(); |
@@ -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 | { |
@@ -70,8 +70,8 @@ |
||
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) |
@@ -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 | } |