Completed
Push — master ( 125148...6e4e8e )
by Timothy
16:08
created
src/Aviat/AnimeClient/Controller/Anime.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -120,9 +120,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Controller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Hummingbird/Transformer/AnimeListTransformer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.