Completed
Push — master ( 125148...6e4e8e )
by Timothy
16:08
created
src/Aviat/AnimeClient/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Hummingbird/Transformer/MangaListTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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'])
Please login to merge, or discard this patch.
src/Aviat/Ion/Type/ArrayType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Aviat/Ion/View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 	 */
107 107
 	protected function output()
108 108
 	{
109
-		$content =& $this->response->content;
109
+		$content = & $this->response->content;
110 110
 		$content->set($this->output);
111 111
 		$content->setType($this->contentType);
112 112
 		$content->setCharset('utf-8');
Please login to merge, or discard this patch.
src/Aviat/AnimeClient/Model/DB.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 	public function __construct(ContainerInterface $container)
40 40
 	{
41 41
 		parent::__construct($container);
42
-		$this->db_config = (array) $this->config->get('database');
42
+		$this->db_config = (array)$this->config->get('database');
43 43
 	}
44 44
 }
45 45
 // End of BaseDBModel.php
46 46
\ No newline at end of file
Please login to merge, or discard this patch.
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.