@@ -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 |
|
| 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 |
|
| 10 | + * @license MIT |
|
| 11 | + */ |
|
| 12 | 12 | |
| 13 | 13 | namespace Aviat\Ion\View; |
| 14 | 14 | |
@@ -120,9 +120,9 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | $statuses = []; |
| 122 | 122 | |
| 123 | - foreach($raw_status_list as $status_item) |
|
| 123 | + foreach ($raw_status_list as $status_item) |
|
| 124 | 124 | { |
| 125 | - $statuses[$status_item] = (string) $this->string($status_item) |
|
| 125 | + $statuses[$status_item] = (string)$this->string($status_item) |
|
| 126 | 126 | ->underscored() |
| 127 | 127 | ->humanize() |
| 128 | 128 | ->titleize(); |
@@ -171,16 +171,16 @@ discard block |
||
| 171 | 171 | * @param string $status |
| 172 | 172 | * @return void |
| 173 | 173 | */ |
| 174 | - public function edit($id, $status="all") |
|
| 174 | + public function edit($id, $status = "all") |
|
| 175 | 175 | { |
| 176 | 176 | $item = $this->model->get_library_anime($id, $status); |
| 177 | 177 | $raw_status_list = AnimeWatchingStatus::getConstList(); |
| 178 | 178 | |
| 179 | 179 | $statuses = []; |
| 180 | 180 | |
| 181 | - foreach($raw_status_list as $status_item) |
|
| 181 | + foreach ($raw_status_list as $status_item) |
|
| 182 | 182 | { |
| 183 | - $statuses[$status_item] = (string) $this->string($status_item) |
|
| 183 | + $statuses[$status_item] = (string)$this->string($status_item) |
|
| 184 | 184 | ->underscored() |
| 185 | 185 | ->humanize() |
| 186 | 186 | ->titleize(); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * @param string|null $url |
| 128 | 128 | * @return void |
| 129 | 129 | */ |
| 130 | - public function set_session_redirect($url=NULL) |
|
| 130 | + public function set_session_redirect($url = NULL) |
|
| 131 | 131 | { |
| 132 | 132 | $anime_client = $this->container->get('anime-client'); |
| 133 | 133 | $double_form_page = $this->request->server->get('HTTP_REFERER') == $this->request->url->get(); |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | * @param string $type |
| 318 | 318 | * @return void |
| 319 | 319 | */ |
| 320 | - public function set_flash_message($message, $type="info") |
|
| 320 | + public function set_flash_message($message, $type = "info") |
|
| 321 | 321 | { |
| 322 | 322 | $this->session->setFlash('message', [ |
| 323 | 323 | 'message_type' => $type, |
@@ -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 | |