Completed
Branch develop (9c1dc5)
by Timothy
07:15
created
src/MenuGenerator.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/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/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.
build/CodeIgniter/UnusedSniffs/NamingConventions/ConstructorNameSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
                 $phpcsFile->addError($error, $stackPtr);
83 83
             }
84 84
         }
85
-        if ( ! $isPhp4Constructor && ! $isPhp5Constructor ) {
85
+        if ( ! $isPhp4Constructor && ! $isPhp5Constructor) {
86 86
             return;
87 87
         }
88 88
 
Please login to merge, or discard this patch.
build/CodeIgniter/UnusedSniffs/NamingConventions/ValidClassNameSniff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,11 +70,11 @@
 block discarded – undo
70 70
         // [^_] means "something different from _", but not "nothing or something different from _"
71 71
         $lcClassNameChunk = preg_replace('/([^_])([A-Z])/', '${1}_${2}', $className);
72 72
         $expectedClassName
73
-            = strtoupper($className[0]) . strtolower(substr($lcClassNameChunk,1));
73
+            = strtoupper($className[0]) . strtolower(substr($lcClassNameChunk, 1));
74 74
         // ensures that the current class name
75 75
         // and the expected class name are identical
76 76
         if (0 !== strcmp($className, $expectedClassName)) {
77
-            $error =  'Class names should always have their first letter uppercase. Multiple words should be separated with an underscore, and not CamelCased. Please consider ' . $expectedClassName . ' instead of ' . $className . '.';
77
+            $error = 'Class names should always have their first letter uppercase. Multiple words should be separated with an underscore, and not CamelCased. Please consider ' . $expectedClassName . ' instead of ' . $className . '.';
78 78
             $phpcsFile->addError($error, $stackPtr);
79 79
         }
80 80
     }//end process()
Please login to merge, or discard this patch.
build/CodeIgniter/UnusedSniffs/NamingConventions/ValidVariableNameSniff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $varName = substr($varTk['content'], 1);
62 62
         $varProps = $phpcsFile->getMemberProperties($stackPtr);
63 63
         // check(s)
64
-        if ( ! $this->checkLowerCase($phpcsFile, $stackPtr, $varName) ) {
64
+        if ( ! $this->checkLowerCase($phpcsFile, $stackPtr, $varName)) {
65 65
             return;
66 66
         }
67 67
         if ( ! $this->checkVisibilityPrefix($phpcsFile, $stackPtr, $varName, $varProps)) {
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         $currentTk = $tokens[$stackPtr];
321 321
         if (array_key_exists('nested_parenthesis', $currentTk)) {
322 322
             $nestedParenthesis = $currentTk['nested_parenthesis'];
323
-            foreach ( $nestedParenthesis as $openParPtr => $closeParPtr) {
323
+            foreach ($nestedParenthesis as $openParPtr => $closeParPtr) {
324 324
                 $nonWhitspacePtr = $phpcsFile->findPrevious(
325 325
                     array(T_WHITESPACE),
326 326
                     $openParPtr - 1,
Please login to merge, or discard this patch.