@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @param string $key |
77 | 77 | * @param mixed $value |
78 | - * @return CacheDriverInterface |
|
78 | + * @return RedisDriver |
|
79 | 79 | */ |
80 | 80 | public function set($key, $value) |
81 | 81 | { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * Invalidate a cached value |
88 | 88 | * |
89 | 89 | * @param string $key |
90 | - * @return CacheDriverInterface |
|
90 | + * @return RedisDriver |
|
91 | 91 | */ |
92 | 92 | public function invalidate($key) |
93 | 93 | { |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Ion |
|
4 | - * |
|
5 | - * Building blocks for web development |
|
6 | - * |
|
7 | - * @package Ion |
|
8 | - * @author Timothy J. Warren |
|
9 | - * @copyright Copyright (c) 2015 - 2016 |
|
10 | - * @license MIT |
|
11 | - */ |
|
3 | + * Ion |
|
4 | + * |
|
5 | + * Building blocks for web development |
|
6 | + * |
|
7 | + * @package Ion |
|
8 | + * @author Timothy J. Warren |
|
9 | + * @copyright Copyright (c) 2015 - 2016 |
|
10 | + * @license MIT |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | namespace Aviat\Ion\Cache\Driver; |
14 | 14 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @param string $key |
65 | 65 | * @param mixed $value |
66 | - * @return CacheDriverInterface |
|
66 | + * @return SQLDriver |
|
67 | 67 | */ |
68 | 68 | public function set($key, $value) |
69 | 69 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * Invalidate a cached value |
82 | 82 | * |
83 | 83 | * @param string $key |
84 | - * @return CacheDriverInterface |
|
84 | + * @return SQLDriver |
|
85 | 85 | */ |
86 | 86 | public function invalidate($key) |
87 | 87 | { |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Ion |
|
4 | - * |
|
5 | - * Building blocks for web development |
|
6 | - * |
|
7 | - * @package Ion |
|
8 | - * @author Timothy J. Warren |
|
9 | - * @copyright Copyright (c) 2015 - 2016 |
|
10 | - * @license MIT |
|
11 | - */ |
|
3 | + * Ion |
|
4 | + * |
|
5 | + * Building blocks for web development |
|
6 | + * |
|
7 | + * @package Ion |
|
8 | + * @author Timothy J. Warren |
|
9 | + * @copyright Copyright (c) 2015 - 2016 |
|
10 | + * @license MIT |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | namespace Aviat\Ion\Cache\Driver; |
14 | 14 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * Driver for caching via a traditional SQL database |
21 | 21 | */ |
22 | -class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface { |
|
22 | +class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface { |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * The query builder object |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * Driver for caching via a traditional SQL database |
21 | 21 | */ |
22 | -class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface { |
|
22 | +class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface { |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * The query builder object |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Ion |
|
4 | - * |
|
5 | - * Building blocks for web development |
|
6 | - * |
|
7 | - * @package Ion |
|
8 | - * @author Timothy J. Warren |
|
9 | - * @copyright Copyright (c) 2015 - 2016 |
|
10 | - * @license MIT |
|
11 | - */ |
|
3 | + * Ion |
|
4 | + * |
|
5 | + * Building blocks for web development |
|
6 | + * |
|
7 | + * @package Ion |
|
8 | + * @author Timothy J. Warren |
|
9 | + * @copyright Copyright (c) 2015 - 2016 |
|
10 | + * @license MIT |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | namespace Aviat\Ion\Cache; |
14 | 14 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @param [array] $args - the arguments to pass to the retrieval method |
53 | 53 | * @return mixed - the cached or fresh data |
54 | 54 | */ |
55 | - public function get($object, $method, array $args=[]) |
|
55 | + public function get($object, $method, array $args = []) |
|
56 | 56 | { |
57 | 57 | $hash = $this->generateHashForMethod($object, $method, $args); |
58 | 58 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * @param [array] $args - the arguments to pass to the retrieval method |
75 | 75 | * @return mixed - the fresh data |
76 | 76 | */ |
77 | - public function getFresh($object, $method, array $args=[]) |
|
77 | + public function getFresh($object, $method, array $args = []) |
|
78 | 78 | { |
79 | 79 | $hash = $this->generateHashForMethod($object, $method, $args); |
80 | 80 | $data = call_user_func_array([$object, $method], $args); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param [array] $args - the arguments to pass to the retrieval method |
27 | 27 | * @return mixed - the cached or fresh data |
28 | 28 | */ |
29 | - public function get($object, $method, array $args=[]); |
|
29 | + public function get($object, $method, array $args = []); |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Retreive a fresh value, and update the cache |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param [array] $args - the arguments to pass to the retrieval method |
37 | 37 | * @return mixed - the fresh data |
38 | 38 | */ |
39 | - public function getFresh($object, $method, array $args=[]); |
|
39 | + public function getFresh($object, $method, array $args = []); |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Clear the entire cache |
@@ -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(); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | ]; |
90 | 90 | |
91 | 91 | $data = ($status !== 'all') |
92 | - ? [$map[$status] => $this->cache->get($this->model, 'get_list', ['status' => $map[$status]]) ] |
|
92 | + ? [$map[$status] => $this->cache->get($this->model, 'get_list', ['status' => $map[$status]])] |
|
93 | 93 | : $this->cache->get($this->model, 'get_all_lists'); |
94 | 94 | |
95 | 95 | $this->outputHTML('manga/' . $view_map[$view], [ |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | if ($full_result['statusCode'] == 200) |
208 | 208 | { |
209 | - $m =& $result['manga'][0]; |
|
209 | + $m = & $result['manga'][0]; |
|
210 | 210 | $title = ( ! empty($m['english_title'])) |
211 | 211 | ? "{$m['romaji_title']} ({$m['english_title']})" |
212 | 212 | : "{$m['romaji_title']}"; |