Completed
Branch develop (6d735e)
by Timothy
07:48
created
src/Command/ClearCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
Please login to merge, or discard this patch.
src/UrlGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Hummingbird Anime Client
4 4
  *
Please login to merge, or discard this patch.
src/Helper/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
Please login to merge, or discard this patch.
src/Util.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Hummingbird Anime Client
4 4
  *
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	{
92 92
 		$url = $this->container->get('request')
93 93
 			->getUri();
94
-		$page_segments = explode("/", (string) $url);
94
+		$page_segments = explode("/", (string)$url);
95 95
 
96 96
 		$intersect = array_intersect($page_segments, self::$form_pages);
97 97
 
Please login to merge, or discard this patch.
src/Dispatcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Hummingbird Anime Client
4 4
  *
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 				$response->getStatusCode(),
144 144
 				'API Error',
145 145
 				'There was a problem getting data from an external source.',
146
-				(string) $response->getBody()
146
+				(string)$response->getBody()
147 147
 			]);
148 148
 		}
149 149
 	}
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
 		$params = [];
291 291
 
292
-		switch($failure->failedRule) {
292
+		switch ($failure->failedRule) {
293 293
 			case 'Aura\Router\Rule\Allows':
294 294
 				$params = [
295 295
 					'http_code' => 405,
Please login to merge, or discard this patch.
src/RoutingBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Hummingbird Anime Client
4 4
  *
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 */
72 72
 	public function __get($key)
73 73
 	{
74
-		$routing_config =& $this->route_config;
74
+		$routing_config = & $this->route_config;
75 75
 
76 76
 		if (array_key_exists($key, $routing_config))
77 77
 		{
Please login to merge, or discard this patch.
RoboFile.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
 	{
7 7
 		$files = glob($pattern, $flags);
8 8
 
9
-		foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir)
9
+		foreach (glob(dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir)
10 10
 		{
11
-			$files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags));
11
+			$files = array_merge($files, glob_recursive($dir . '/' . basename($pattern), $flags));
12 12
 		}
13 13
 
14 14
 		return $files;
@@ -80,13 +80,13 @@  discard block
 block discarded – undo
80 80
 			'build/humbug.json',
81 81
 			'build/humbug-log.txt',
82 82
 		];
83
-		array_map(function ($file) {
83
+		array_map(function($file) {
84 84
 			@unlink($file);
85 85
 		}, $cleanFiles);
86 86
 
87 87
 		// So the task doesn't complain,
88 88
 		// make any 'missing' dirs to cleanup
89
-		array_map(function ($dir) {
89
+		array_map(function($dir) {
90 90
 			if ( ! is_dir($dir))
91 91
 			{
92 92
 				`mkdir -p {$dir}`;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
 		$chunks = array_chunk($files, 6);
132 132
 
133
-		foreach($chunks as $chunk)
133
+		foreach ($chunks as $chunk)
134 134
 		{
135 135
 			$this->parallelLint($chunk);
136 136
 		}
@@ -241,10 +241,10 @@  discard block
 block discarded – undo
241 241
 			->monitor('composer.json', function() {
242 242
 				$this->taskComposerUpdate()->run();
243 243
 			})
244
-			->monitor('src', function () {
244
+			->monitor('src', function() {
245 245
 				$this->taskExec('test')->run();
246 246
 			})
247
-			->monitor('tests', function () {
247
+			->monitor('tests', function() {
248 248
 				$this->taskExec('test')->run();
249 249
 			})
250 250
 			->run();
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 			->timeout(5)
296 296
 			->printed(FALSE);
297 297
 
298
-		foreach($chunk as $file)
298
+		foreach ($chunk as $file)
299 299
 		{
300 300
 			$task = $task->process("php -l {$file}");
301 301
 		}
Please login to merge, or discard this patch.
build/CodeIgniter/UnusedSniffs/Files/ClosingLocationCommentSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      * @return string|bool The relative path from $appRoot to $filePath, or
138 138
      * false if $appRoot cannot be found in $filePath.
139 139
      */
140
-    private static function _getLocationPath ($filePath, $appRoot)
140
+    private static function _getLocationPath($filePath, $appRoot)
141 141
     {
142 142
         // removes the path to application root
143 143
         // from the beginning of the file path
Please login to merge, or discard this patch.
build/CodeIgniter/UnusedSniffs/Files/AbstractClosingCommentSniff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function process(File $phpcsFile, $stackPtr)
49 49
     {
50
-      $error = __CLASS__.'::'.__METHOD__.' is abstract. Please develop this method in a child class.';
50
+      $error = __CLASS__ . '::' . __METHOD__ . ' is abstract. Please develop this method in a child class.';
51 51
       throw new PHP_CodeSniffer_Exception($error);
52 52
     }
53 53
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @return string Comment without comment delimiter(s) and whitespaces.
66 66
      */
67
-    protected static function _getCommentContent ($comment)
67
+    protected static function _getCommentContent($comment)
68 68
     {
69 69
         if (self::_stringStartsWith($comment, '#')) {
70 70
             $comment = substr($comment, 1);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @return bool true if $haystack starts with $needle, false otherwise.
90 90
      */
91
-    protected static function _stringStartsWith ($haystack, $needle)
91
+    protected static function _stringStartsWith($haystack, $needle)
92 92
     {
93 93
         $startsWith = false;
94 94
         if (strlen($needle) <= strlen($haystack)) {
Please login to merge, or discard this patch.