Completed
Push — master ( 125148...6e4e8e )
by Timothy
16:08
created
src/Aviat/AnimeClient/Controller.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Hummingbird Anime Client
4
- *
5
- * An API client for Hummingbird to manage anime and manga watch lists
6
- *
7
- * @package     HummingbirdAnimeClient
8
- * @author      Timothy J. Warren
9
- * @copyright   Copyright (c) 2015
10
- * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
- * @license     MIT
12
- */
3
+	 * Hummingbird Anime Client
4
+	 *
5
+	 * An API client for Hummingbird to manage anime and manga watch lists
6
+	 *
7
+	 * @package     HummingbirdAnimeClient
8
+	 * @author      Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015
10
+	 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
+	 * @license     MIT
12
+	 */
13 13
 namespace Aviat\AnimeClient;
14 14
 
15 15
 use Aviat\Ion\Di\ContainerInterface;
Please login to merge, or discard this 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/Auth/HummingbirdAuth.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Hummingbird Anime Client
4
- *
5
- * An API client for Hummingbird to manage anime and manga watch lists
6
- *
7
- * @package     HummingbirdAnimeClient
8
- * @author      Timothy J. Warren
9
- * @copyright   Copyright (c) 2015
10
- * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
- * @license     MIT
12
- */
3
+	 * Hummingbird Anime Client
4
+	 *
5
+	 * An API client for Hummingbird to manage anime and manga watch lists
6
+	 *
7
+	 * @package     HummingbirdAnimeClient
8
+	 * @author      Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015
10
+	 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
+	 * @license     MIT
12
+	 */
13 13
 namespace Aviat\AnimeClient;
14 14
 
15 15
 use Aviat\Ion\Di\ContainerInterface;
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Model/Anime.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Hummingbird Anime Client
4
- *
5
- * An API client for Hummingbird to manage anime and manga watch lists
6
- *
7
- * @package     HummingbirdAnimeClient
8
- * @author      Timothy J. Warren
9
- * @copyright   Copyright (c) 2015
10
- * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
- * @license     MIT
12
- */
3
+	 * Hummingbird Anime Client
4
+	 *
5
+	 * An API client for Hummingbird to manage anime and manga watch lists
6
+	 *
7
+	 * @package     HummingbirdAnimeClient
8
+	 * @author      Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015
10
+	 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
+	 * @license     MIT
12
+	 */
13 13
 namespace Aviat\AnimeClient;
14 14
 
15 15
 use Aviat\Ion\Di\ContainerInterface;
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Model/API.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Hummingbird Anime Client
4
- *
5
- * An API client for Hummingbird to manage anime and manga watch lists
6
- *
7
- * @package     HummingbirdAnimeClient
8
- * @author      Timothy J. Warren
9
- * @copyright   Copyright (c) 2015
10
- * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
- * @license     MIT
12
- */
3
+	 * Hummingbird Anime Client
4
+	 *
5
+	 * An API client for Hummingbird to manage anime and manga watch lists
6
+	 *
7
+	 * @package     HummingbirdAnimeClient
8
+	 * @author      Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015
10
+	 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
+	 * @license     MIT
12
+	 */
13 13
 namespace Aviat\AnimeClient;
14 14
 
15 15
 use Aviat\Ion\Di\ContainerInterface;
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Model/AnimeCollection.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Hummingbird Anime Client
4
- *
5
- * An API client for Hummingbird to manage anime and manga watch lists
6
- *
7
- * @package     HummingbirdAnimeClient
8
- * @author      Timothy J. Warren
9
- * @copyright   Copyright (c) 2015
10
- * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
- * @license     MIT
12
- */
3
+	 * Hummingbird Anime Client
4
+	 *
5
+	 * An API client for Hummingbird to manage anime and manga watch lists
6
+	 *
7
+	 * @package     HummingbirdAnimeClient
8
+	 * @author      Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015
10
+	 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
+	 * @license     MIT
12
+	 */
13 13
 namespace Aviat\AnimeClient;
14 14
 
15 15
 use Aviat\Ion\Di\ContainerInterface;
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Model/Manga.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Hummingbird Anime Client
4
- *
5
- * An API client for Hummingbird to manage anime and manga watch lists
6
- *
7
- * @package     HummingbirdAnimeClient
8
- * @author      Timothy J. Warren
9
- * @copyright   Copyright (c) 2015
10
- * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
- * @license     MIT
12
- */
3
+	 * Hummingbird Anime Client
4
+	 *
5
+	 * An API client for Hummingbird to manage anime and manga watch lists
6
+	 *
7
+	 * @package     HummingbirdAnimeClient
8
+	 * @author      Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015
10
+	 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
+	 * @license     MIT
12
+	 */
13 13
 namespace Aviat\AnimeClient;
14 14
 
15 15
 use Aviat\Ion\Di\ContainerInterface;
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Model.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Hummingbird Anime Client
4
- *
5
- * An API client for Hummingbird to manage anime and manga watch lists
6
- *
7
- * @package     HummingbirdAnimeClient
8
- * @author      Timothy J. Warren
9
- * @copyright   Copyright (c) 2015
10
- * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
- * @license     MIT
12
- */
3
+	 * Hummingbird Anime Client
4
+	 *
5
+	 * An API client for Hummingbird to manage anime and manga watch lists
6
+	 *
7
+	 * @package     HummingbirdAnimeClient
8
+	 * @author      Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015
10
+	 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
+	 * @license     MIT
12
+	 */
13 13
 namespace Aviat\AnimeClient;
14 14
 
15 15
 use Aviat\Ion\Di\ContainerInterface;
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/AnimeClient.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Hummingbird Anime Client
4
- *
5
- * An API client for Hummingbird to manage anime and manga watch lists
6
- *
7
- * @package     HummingbirdAnimeClient
8
- * @author      Timothy J. Warren
9
- * @copyright   Copyright (c) 2015
10
- * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
- * @license     MIT
12
- */
3
+	 * Hummingbird Anime Client
4
+	 *
5
+	 * An API client for Hummingbird to manage anime and manga watch lists
6
+	 *
7
+	 * @package     HummingbirdAnimeClient
8
+	 * @author      Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015
10
+	 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
+	 * @license     MIT
12
+	 */
13 13
 namespace Aviat\AnimeClient;
14 14
 
15 15
 use Aviat\Ion\Di\ContainerInterface;
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Controller/Anime.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Hummingbird Anime Client
4
- *
5
- * An API client for Hummingbird to manage anime and manga watch lists
6
- *
7
- * @package     HummingbirdAnimeClient
8
- * @author      Timothy J. Warren
9
- * @copyright   Copyright (c) 2015
10
- * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
- * @license     MIT
12
- */
3
+	 * Hummingbird Anime Client
4
+	 *
5
+	 * An API client for Hummingbird to manage anime and manga watch lists
6
+	 *
7
+	 * @package     HummingbirdAnimeClient
8
+	 * @author      Timothy J. Warren
9
+	 * @copyright   Copyright (c) 2015
10
+	 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
+	 * @license     MIT
12
+	 */
13 13
 namespace Aviat\AnimeClient;
14 14
 
15 15
 use Aviat\Ion\Di\ContainerInterface;
Please login to merge, or discard this 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.