Completed
Push — rewrite ( d48caf...77709c )
by Timothy
02:37
created
build/update_header_comments.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,19 +13,19 @@
 block discarded – undo
13 13
 
14 14
 if ( ! function_exists('glob_recursive'))
15 15
 {
16
-    // Does not support flag GLOB_BRACE
16
+	// Does not support flag GLOB_BRACE
17 17
 
18
-    function glob_recursive($pattern, $flags = 0)
19
-    {
20
-        $files = glob($pattern, $flags);
18
+	function glob_recursive($pattern, $flags = 0)
19
+	{
20
+		$files = glob($pattern, $flags);
21 21
 
22
-        foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir)
23
-        {
24
-            $files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags));
25
-        }
22
+		foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir)
23
+		{
24
+			$files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags));
25
+		}
26 26
 
27
-        return $files;
28
-    }
27
+		return $files;
28
+	}
29 29
 }
30 30
 
31 31
 function get_text_to_replace($tokens)
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $files = glob($pattern, $flags);
21 21
 
22
-        foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir)
22
+        foreach (glob(dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir)
23 23
         {
24
-            $files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags));
24
+            $files = array_merge($files, glob_recursive($dir . '/' . basename($pattern), $flags));
25 25
         }
26 26
 
27 27
         return $files;
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	{
42 42
 		return "<?php\n" . $tokens[1][1];
43 43
 	}
44
-	else if($tokens[1][0] !== T_DOC_COMMENT)
44
+	else if ($tokens[1][0] !== T_DOC_COMMENT)
45 45
 	{
46 46
 		return "<?php";
47 47
 	}
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 function replace_files(array $files, $template)
56 56
 {
57
-	foreach($files as $file)
57
+	foreach ($files as $file)
58 58
 	{
59 59
 		$source = file_get_contents($file);
60 60
 		$tokens = get_tokens($source);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	}
69 69
 }
70 70
 
71
-foreach($animeclient_file_patterns as $glob)
71
+foreach ($animeclient_file_patterns as $glob)
72 72
 {
73 73
 	$files = glob_recursive($glob);
74 74
 	replace_files($files, '/animeclient_header_comment.txt');
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 ];
81 81
 replace_files($loose_files, '/animeclient_header_comment.txt');
82 82
 
83
-foreach($ion_file_patterns as $glob)
83
+foreach ($ion_file_patterns as $glob)
84 84
 {
85 85
 	$files = glob_recursive($glob);
86 86
 	replace_files($files, '/ion_header_comment.txt');
Please login to merge, or discard this patch.
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/AnimeListTransformer.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 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;
Please login to merge, or discard this 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/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/AnimeClient/UrlGenerator.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/Ion/Type/ArrayType.php 2 patches
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.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Aviat/Ion/View.php 2 patches
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.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Aviat/Ion/View/HttpView.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Aviat/Ion/StaticInstance.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.