@@ -69,7 +69,7 @@ |
||
| 69 | 69 | } |
| 70 | 70 | else |
| 71 | 71 | { |
| 72 | - $pos =& $this->map->get($key); |
|
| 72 | + $pos = & $this->map->get($key); |
|
| 73 | 73 | $pos = NULL; |
| 74 | 74 | } |
| 75 | 75 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function transform($item) |
| 30 | 30 | { |
| 31 | - $manga =& $item['manga']; |
|
| 31 | + $manga = & $item['manga']; |
|
| 32 | 32 | |
| 33 | 33 | $rating = (is_numeric($item['rating'])) |
| 34 | 34 | ? intval(2 * $item['rating']) |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | public function __construct(array &$arr) |
| 75 | 75 | { |
| 76 | - $this->arr =& $arr; |
|
| 76 | + $this->arr = & $arr; |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -176,13 +176,13 @@ discard block |
||
| 176 | 176 | $value = NULL; |
| 177 | 177 | if (is_null($key)) |
| 178 | 178 | { |
| 179 | - $value =& $this->arr; |
|
| 179 | + $value = & $this->arr; |
|
| 180 | 180 | } |
| 181 | 181 | else |
| 182 | 182 | { |
| 183 | 183 | if ($this->has_key($key)) |
| 184 | 184 | { |
| 185 | - $value =& $this->arr[$key]; |
|
| 185 | + $value = & $this->arr[$key]; |
|
| 186 | 186 | } |
| 187 | 187 | } |
| 188 | 188 | |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | */ |
| 211 | 211 | public function &get_deep_key(array $key) |
| 212 | 212 | { |
| 213 | - $pos =& $this->arr; |
|
| 213 | + $pos = & $this->arr; |
|
| 214 | 214 | |
| 215 | 215 | foreach ($key as $level) |
| 216 | 216 | { |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | $pos = NULL; |
| 224 | 224 | return $pos; |
| 225 | 225 | } |
| 226 | - $pos =& $pos[$level]; |
|
| 226 | + $pos = & $pos[$level]; |
|
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | return $pos; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | */ |
| 240 | 240 | public function set_deep_key(array $key, $value) |
| 241 | 241 | { |
| 242 | - $pos =& $this->arr; |
|
| 242 | + $pos = & $this->arr; |
|
| 243 | 243 | |
| 244 | 244 | // Iterate through the levels of the array, |
| 245 | 245 | // create the levels if they don't exist |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | $pos = []; |
| 251 | 251 | $pos[$level] = []; |
| 252 | 252 | } |
| 253 | - $pos =& $pos[$level]; |
|
| 253 | + $pos = & $pos[$level]; |
|
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | $pos = $value; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function transform($item) |
| 31 | 31 | { |
| 32 | - $anime =& $item['anime']; |
|
| 32 | + $anime = & $item['anime']; |
|
| 33 | 33 | $genres = $this->linearize_genres($item['anime']['genres']); |
| 34 | 34 | |
| 35 | 35 | $rating = NULL; |
@@ -82,10 +82,10 @@ discard block |
||
| 82 | 82 | 'id' => $item['id'], |
| 83 | 83 | 'watching_status' => $item['status'], |
| 84 | 84 | 'notes' => $item['notes'], |
| 85 | - 'rewatching' => (bool) $item['rewatching'], |
|
| 85 | + 'rewatching' => (bool)$item['rewatching'], |
|
| 86 | 86 | 'rewatched' => $item['rewatched_times'], |
| 87 | 87 | 'user_rating' => $rating, |
| 88 | - 'private' => (bool) $item['private'], |
|
| 88 | + 'private' => (bool)$item['private'], |
|
| 89 | 89 | ]; |
| 90 | 90 | } |
| 91 | 91 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | */ |
| 68 | 68 | public function __get($key) |
| 69 | 69 | { |
| 70 | - $routing_config =& $this->route_config; |
|
| 70 | + $routing_config = & $this->route_config; |
|
| 71 | 71 | |
| 72 | 72 | if (array_key_exists($key, $routing_config)) |
| 73 | 73 | { |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | |
| 112 | 112 | if ($key === 'config') |
| 113 | 113 | { |
| 114 | - foreach($config as $name => $value) |
|
| 114 | + foreach ($config as $name => $value) |
|
| 115 | 115 | { |
| 116 | 116 | $output[$name] = $value; |
| 117 | 117 | } |
@@ -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 |
@@ -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 |