@@ -5,10 +5,10 @@ |
||
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | switch ($foo) { |
| 8 | - case 'bar': |
|
| 9 | - break; |
|
| 10 | - default: |
|
| 11 | - break; |
|
| 8 | + case 'bar': |
|
| 9 | + break; |
|
| 10 | + default: |
|
| 11 | + break; |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | |
@@ -1,2 +1,1 @@ |
||
| 1 | 1 | <?php |
| 2 | -/** Why me? |
|
| 3 | 2 | \ No newline at end of file |
@@ -28,18 +28,18 @@ |
||
| 28 | 28 | public function getErrorList($testFile='') |
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | - case 'InlineHTMLUnitTest.3.inc': |
|
| 32 | - return [4 => 1]; |
|
| 33 | - break; |
|
| 34 | - case 'InlineHTMLUnitTest.4.inc': |
|
| 35 | - return [1 => 1]; |
|
| 36 | - break; |
|
| 37 | - case 'InlineHTMLUnitTest.7.inc': |
|
| 38 | - return [1 => 1]; |
|
| 39 | - break; |
|
| 40 | - default: |
|
| 41 | - return []; |
|
| 42 | - break; |
|
| 31 | + case 'InlineHTMLUnitTest.3.inc': |
|
| 32 | + return [4 => 1]; |
|
| 33 | + break; |
|
| 34 | + case 'InlineHTMLUnitTest.4.inc': |
|
| 35 | + return [1 => 1]; |
|
| 36 | + break; |
|
| 37 | + case 'InlineHTMLUnitTest.7.inc': |
|
| 38 | + return [1 => 1]; |
|
| 39 | + break; |
|
| 40 | + default: |
|
| 41 | + return []; |
|
| 42 | + break; |
|
| 43 | 43 | }//end switch |
| 44 | 44 | |
| 45 | 45 | }//end getErrorList() |
@@ -1,2 +1,1 @@ |
||
| 1 | 1 | <?php |
| 2 | -/** Why me? |
|
@@ -43,21 +43,21 @@ discard block |
||
| 43 | 43 | public function getErrorList($testFile='') |
| 44 | 44 | { |
| 45 | 45 | switch ($testFile) { |
| 46 | - case 'LineLengthUnitTest.1.inc': |
|
| 47 | - return [ |
|
| 48 | - 31 => 1, |
|
| 49 | - 34 => 1, |
|
| 50 | - 45 => 1, |
|
| 51 | - 82 => 1, |
|
| 52 | - ]; |
|
| 53 | - break; |
|
| 54 | - case 'LineLengthUnitTest.2.inc': |
|
| 55 | - case 'LineLengthUnitTest.3.inc': |
|
| 56 | - return [7 => 1]; |
|
| 57 | - break; |
|
| 58 | - default: |
|
| 59 | - return []; |
|
| 60 | - break; |
|
| 46 | + case 'LineLengthUnitTest.1.inc': |
|
| 47 | + return [ |
|
| 48 | + 31 => 1, |
|
| 49 | + 34 => 1, |
|
| 50 | + 45 => 1, |
|
| 51 | + 82 => 1, |
|
| 52 | + ]; |
|
| 53 | + break; |
|
| 54 | + case 'LineLengthUnitTest.2.inc': |
|
| 55 | + case 'LineLengthUnitTest.3.inc': |
|
| 56 | + return [7 => 1]; |
|
| 57 | + break; |
|
| 58 | + default: |
|
| 59 | + return []; |
|
| 60 | + break; |
|
| 61 | 61 | }//end switch |
| 62 | 62 | |
| 63 | 63 | }//end getErrorList() |
@@ -76,29 +76,29 @@ discard block |
||
| 76 | 76 | public function getWarningList($testFile='') |
| 77 | 77 | { |
| 78 | 78 | switch ($testFile) { |
| 79 | - case 'LineLengthUnitTest.1.inc': |
|
| 80 | - return [ |
|
| 81 | - 9 => 1, |
|
| 82 | - 15 => 1, |
|
| 83 | - 21 => 1, |
|
| 84 | - 24 => 1, |
|
| 85 | - 29 => 1, |
|
| 86 | - 37 => 1, |
|
| 87 | - 63 => 1, |
|
| 88 | - 73 => 1, |
|
| 89 | - 75 => 1, |
|
| 90 | - ]; |
|
| 91 | - break; |
|
| 92 | - case 'LineLengthUnitTest.2.inc': |
|
| 93 | - case 'LineLengthUnitTest.3.inc': |
|
| 94 | - return [6 => 1]; |
|
| 95 | - break; |
|
| 96 | - case 'LineLengthUnitTest.4.inc': |
|
| 97 | - return [10 => 1]; |
|
| 98 | - break; |
|
| 99 | - default: |
|
| 100 | - return []; |
|
| 101 | - break; |
|
| 79 | + case 'LineLengthUnitTest.1.inc': |
|
| 80 | + return [ |
|
| 81 | + 9 => 1, |
|
| 82 | + 15 => 1, |
|
| 83 | + 21 => 1, |
|
| 84 | + 24 => 1, |
|
| 85 | + 29 => 1, |
|
| 86 | + 37 => 1, |
|
| 87 | + 63 => 1, |
|
| 88 | + 73 => 1, |
|
| 89 | + 75 => 1, |
|
| 90 | + ]; |
|
| 91 | + break; |
|
| 92 | + case 'LineLengthUnitTest.2.inc': |
|
| 93 | + case 'LineLengthUnitTest.3.inc': |
|
| 94 | + return [6 => 1]; |
|
| 95 | + break; |
|
| 96 | + case 'LineLengthUnitTest.4.inc': |
|
| 97 | + return [10 => 1]; |
|
| 98 | + break; |
|
| 99 | + default: |
|
| 100 | + return []; |
|
| 101 | + break; |
|
| 102 | 102 | }//end switch |
| 103 | 103 | |
| 104 | 104 | }//end getWarningList() |
@@ -28,17 +28,17 @@ |
||
| 28 | 28 | public function getErrorList($testFile='') |
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | - case 'EndFileNoNewlineUnitTest.1.inc': |
|
| 32 | - case 'EndFileNoNewlineUnitTest.1.css': |
|
| 33 | - case 'EndFileNoNewlineUnitTest.1.js': |
|
| 34 | - case 'EndFileNoNewlineUnitTest.2.inc': |
|
| 35 | - return [3 => 1]; |
|
| 36 | - case 'EndFileNoNewlineUnitTest.2.css': |
|
| 37 | - case 'EndFileNoNewlineUnitTest.2.js': |
|
| 38 | - case 'EndFileNoNewlineUnitTest.6.inc': |
|
| 39 | - return [2 => 1]; |
|
| 40 | - default: |
|
| 41 | - return []; |
|
| 31 | + case 'EndFileNoNewlineUnitTest.1.inc': |
|
| 32 | + case 'EndFileNoNewlineUnitTest.1.css': |
|
| 33 | + case 'EndFileNoNewlineUnitTest.1.js': |
|
| 34 | + case 'EndFileNoNewlineUnitTest.2.inc': |
|
| 35 | + return [3 => 1]; |
|
| 36 | + case 'EndFileNoNewlineUnitTest.2.css': |
|
| 37 | + case 'EndFileNoNewlineUnitTest.2.js': |
|
| 38 | + case 'EndFileNoNewlineUnitTest.6.inc': |
|
| 39 | + return [2 => 1]; |
|
| 40 | + default: |
|
| 41 | + return []; |
|
| 42 | 42 | }//end switch |
| 43 | 43 | |
| 44 | 44 | }//end getErrorList() |
@@ -28,13 +28,13 @@ |
||
| 28 | 28 | public function getErrorList($testFile='') |
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | - case 'EndFileNewlineUnitTest.3.inc': |
|
| 32 | - case 'EndFileNewlineUnitTest.3.js': |
|
| 33 | - case 'EndFileNewlineUnitTest.3.css': |
|
| 34 | - case 'EndFileNewlineUnitTest.4.inc': |
|
| 35 | - return [2 => 1]; |
|
| 36 | - default: |
|
| 37 | - return []; |
|
| 31 | + case 'EndFileNewlineUnitTest.3.inc': |
|
| 32 | + case 'EndFileNewlineUnitTest.3.js': |
|
| 33 | + case 'EndFileNewlineUnitTest.3.css': |
|
| 34 | + case 'EndFileNewlineUnitTest.4.inc': |
|
| 35 | + return [2 => 1]; |
|
| 36 | + default: |
|
| 37 | + return []; |
|
| 38 | 38 | }//end switch |
| 39 | 39 | |
| 40 | 40 | }//end getErrorList() |
@@ -28,28 +28,28 @@ |
||
| 28 | 28 | public function getErrorList($testFile='UnnecessaryStringConcatUnitTest.inc') |
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | - case 'UnnecessaryStringConcatUnitTest.inc': |
|
| 32 | - return [ |
|
| 33 | - 2 => 1, |
|
| 34 | - 6 => 1, |
|
| 35 | - 9 => 1, |
|
| 36 | - 12 => 1, |
|
| 37 | - 19 => 1, |
|
| 38 | - 20 => 1, |
|
| 39 | - ]; |
|
| 40 | - break; |
|
| 41 | - case 'UnnecessaryStringConcatUnitTest.js': |
|
| 42 | - return [ |
|
| 43 | - 1 => 1, |
|
| 44 | - 8 => 1, |
|
| 45 | - 11 => 1, |
|
| 46 | - 14 => 1, |
|
| 47 | - 15 => 1, |
|
| 48 | - ]; |
|
| 49 | - break; |
|
| 50 | - default: |
|
| 51 | - return []; |
|
| 52 | - break; |
|
| 31 | + case 'UnnecessaryStringConcatUnitTest.inc': |
|
| 32 | + return [ |
|
| 33 | + 2 => 1, |
|
| 34 | + 6 => 1, |
|
| 35 | + 9 => 1, |
|
| 36 | + 12 => 1, |
|
| 37 | + 19 => 1, |
|
| 38 | + 20 => 1, |
|
| 39 | + ]; |
|
| 40 | + break; |
|
| 41 | + case 'UnnecessaryStringConcatUnitTest.js': |
|
| 42 | + return [ |
|
| 43 | + 1 => 1, |
|
| 44 | + 8 => 1, |
|
| 45 | + 11 => 1, |
|
| 46 | + 14 => 1, |
|
| 47 | + 15 => 1, |
|
| 48 | + ]; |
|
| 49 | + break; |
|
| 50 | + default: |
|
| 51 | + return []; |
|
| 52 | + break; |
|
| 53 | 53 | }//end switch |
| 54 | 54 | |
| 55 | 55 | }//end getErrorList() |
@@ -249,4 +249,3 @@ |
||
| 249 | 249 | * @link http://pear.php.net/package/PHP_CodeSniffer |
| 250 | 250 | */ |
| 251 | 251 | |
| 252 | -/** No docblock close tag. Must be last test without new line. |
|
| 253 | 252 | \ No newline at end of file |