@@ -290,14 +290,14 @@ |
||
290 | 290 | foreach ($diffLines as $line) { |
291 | 291 | if (isset($line[0]) === true) { |
292 | 292 | switch ($line[0]) { |
293 | - case '-': |
|
294 | - $diff[] = "\033[31m$line\033[0m"; |
|
295 | - break; |
|
296 | - case '+': |
|
297 | - $diff[] = "\033[32m$line\033[0m"; |
|
298 | - break; |
|
299 | - default: |
|
300 | - $diff[] = $line; |
|
293 | + case '-': |
|
294 | + $diff[] = "\033[31m$line\033[0m"; |
|
295 | + break; |
|
296 | + case '+': |
|
297 | + $diff[] = "\033[32m$line\033[0m"; |
|
298 | + break; |
|
299 | + default: |
|
300 | + $diff[] = $line; |
|
301 | 301 | } |
302 | 302 | } |
303 | 303 | } |
@@ -1836,18 +1836,18 @@ discard block |
||
1836 | 1836 | $input = trim($input); |
1837 | 1837 | |
1838 | 1838 | switch ($input) { |
1839 | - case 's': |
|
1840 | - break(2); |
|
1841 | - case 'q': |
|
1842 | - exit(0); |
|
1843 | - break; |
|
1844 | - default: |
|
1845 | - // Repopulate the sniffs because some of them save their state |
|
1846 | - // and only clear it when the file changes, but we are rechecking |
|
1847 | - // the same file. |
|
1848 | - $this->populateTokenListeners(); |
|
1849 | - $phpcsFile = $this->_processFile($file, $contents); |
|
1850 | - break; |
|
1839 | + case 's': |
|
1840 | + break(2); |
|
1841 | + case 'q': |
|
1842 | + exit(0); |
|
1843 | + break; |
|
1844 | + default: |
|
1845 | + // Repopulate the sniffs because some of them save their state |
|
1846 | + // and only clear it when the file changes, but we are rechecking |
|
1847 | + // the same file. |
|
1848 | + $this->populateTokenListeners(); |
|
1849 | + $phpcsFile = $this->_processFile($file, $contents); |
|
1850 | + break; |
|
1851 | 1851 | } |
1852 | 1852 | }//end while |
1853 | 1853 | |
@@ -2109,19 +2109,19 @@ discard block |
||
2109 | 2109 | } else { |
2110 | 2110 | $lowerVarType = strtolower($varType); |
2111 | 2111 | switch ($lowerVarType) { |
2112 | - case 'bool': |
|
2113 | - case 'boolean': |
|
2114 | - return 'boolean'; |
|
2115 | - case 'double': |
|
2116 | - case 'real': |
|
2117 | - case 'float': |
|
2118 | - return 'float'; |
|
2119 | - case 'int': |
|
2120 | - case 'integer': |
|
2121 | - return 'integer'; |
|
2122 | - case 'array()': |
|
2123 | - case 'array': |
|
2124 | - return 'array'; |
|
2112 | + case 'bool': |
|
2113 | + case 'boolean': |
|
2114 | + return 'boolean'; |
|
2115 | + case 'double': |
|
2116 | + case 'real': |
|
2117 | + case 'float': |
|
2118 | + return 'float'; |
|
2119 | + case 'int': |
|
2120 | + case 'integer': |
|
2121 | + return 'integer'; |
|
2122 | + case 'array()': |
|
2123 | + case 'array': |
|
2124 | + return 'array'; |
|
2125 | 2125 | }//end switch |
2126 | 2126 | |
2127 | 2127 | if (strpos($lowerVarType, 'array(') !== false) { |