@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @return array<int, int> |
| 27 | 27 | */ |
| 28 | - public function getErrorList($testFile='ControlSignatureUnitTest.inc') |
|
| 28 | + public function getErrorList($testFile = 'ControlSignatureUnitTest.inc') |
|
| 29 | 29 | { |
| 30 | 30 | $errors = [ |
| 31 | 31 | 7 => 1, |
@@ -15,88 +15,88 @@ |
||
| 15 | 15 | { |
| 16 | 16 | |
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Returns the lines where errors should occur. |
|
| 20 | - * |
|
| 21 | - * The key of the array should represent the line number and the value |
|
| 22 | - * should represent the number of errors that should occur on that line. |
|
| 23 | - * |
|
| 24 | - * @param string $testFile The name of the file being tested. |
|
| 25 | - * |
|
| 26 | - * @return array<int, int> |
|
| 27 | - */ |
|
| 28 | - public function getErrorList($testFile='ControlSignatureUnitTest.inc') |
|
| 29 | - { |
|
| 30 | - $errors = [ |
|
| 31 | - 7 => 1, |
|
| 32 | - 12 => 1, |
|
| 33 | - 15 => 1, |
|
| 34 | - 18 => 1, |
|
| 35 | - 20 => 1, |
|
| 36 | - 22 => 2, |
|
| 37 | - 28 => 2, |
|
| 38 | - 32 => 1, |
|
| 39 | - 38 => 2, |
|
| 40 | - 42 => 1, |
|
| 41 | - 48 => 2, |
|
| 42 | - 52 => 1, |
|
| 43 | - 62 => 2, |
|
| 44 | - 66 => 2, |
|
| 45 | - 76 => 4, |
|
| 46 | - 80 => 2, |
|
| 47 | - 94 => 1, |
|
| 48 | - 99 => 1, |
|
| 49 | - 108 => 1, |
|
| 50 | - 112 => 1, |
|
| 51 | - ]; |
|
| 18 | + /** |
|
| 19 | + * Returns the lines where errors should occur. |
|
| 20 | + * |
|
| 21 | + * The key of the array should represent the line number and the value |
|
| 22 | + * should represent the number of errors that should occur on that line. |
|
| 23 | + * |
|
| 24 | + * @param string $testFile The name of the file being tested. |
|
| 25 | + * |
|
| 26 | + * @return array<int, int> |
|
| 27 | + */ |
|
| 28 | + public function getErrorList($testFile='ControlSignatureUnitTest.inc') |
|
| 29 | + { |
|
| 30 | + $errors = [ |
|
| 31 | + 7 => 1, |
|
| 32 | + 12 => 1, |
|
| 33 | + 15 => 1, |
|
| 34 | + 18 => 1, |
|
| 35 | + 20 => 1, |
|
| 36 | + 22 => 2, |
|
| 37 | + 28 => 2, |
|
| 38 | + 32 => 1, |
|
| 39 | + 38 => 2, |
|
| 40 | + 42 => 1, |
|
| 41 | + 48 => 2, |
|
| 42 | + 52 => 1, |
|
| 43 | + 62 => 2, |
|
| 44 | + 66 => 2, |
|
| 45 | + 76 => 4, |
|
| 46 | + 80 => 2, |
|
| 47 | + 94 => 1, |
|
| 48 | + 99 => 1, |
|
| 49 | + 108 => 1, |
|
| 50 | + 112 => 1, |
|
| 51 | + ]; |
|
| 52 | 52 | |
| 53 | - if ($testFile === 'ControlSignatureUnitTest.inc') { |
|
| 54 | - $errors[122] = 1; |
|
| 55 | - $errors[130] = 2; |
|
| 56 | - $errors[134] = 1; |
|
| 57 | - $errors[150] = 1; |
|
| 58 | - $errors[153] = 1; |
|
| 59 | - $errors[158] = 1; |
|
| 60 | - $errors[165] = 1; |
|
| 61 | - $errors[170] = 2; |
|
| 62 | - $errors[185] = 1; |
|
| 63 | - $errors[190] = 2; |
|
| 64 | - $errors[191] = 2; |
|
| 65 | - $errors[195] = 1; |
|
| 66 | - $errors[227] = 1; |
|
| 67 | - $errors[234] = 1; |
|
| 68 | - $errors[239] = 2; |
|
| 69 | - $errors[243] = 2; |
|
| 70 | - $errors[244] = 2; |
|
| 71 | - $errors[248] = 1; |
|
| 72 | - $errors[259] = 1; |
|
| 73 | - $errors[262] = 1; |
|
| 74 | - $errors[267] = 1; |
|
| 75 | - $errors[269] = 1; |
|
| 76 | - $errors[276] = 1; |
|
| 77 | - $errors[279] = 1; |
|
| 78 | - $errors[283] = 1; |
|
| 79 | - $errors[306] = 3; |
|
| 80 | - }//end if |
|
| 53 | + if ($testFile === 'ControlSignatureUnitTest.inc') { |
|
| 54 | + $errors[122] = 1; |
|
| 55 | + $errors[130] = 2; |
|
| 56 | + $errors[134] = 1; |
|
| 57 | + $errors[150] = 1; |
|
| 58 | + $errors[153] = 1; |
|
| 59 | + $errors[158] = 1; |
|
| 60 | + $errors[165] = 1; |
|
| 61 | + $errors[170] = 2; |
|
| 62 | + $errors[185] = 1; |
|
| 63 | + $errors[190] = 2; |
|
| 64 | + $errors[191] = 2; |
|
| 65 | + $errors[195] = 1; |
|
| 66 | + $errors[227] = 1; |
|
| 67 | + $errors[234] = 1; |
|
| 68 | + $errors[239] = 2; |
|
| 69 | + $errors[243] = 2; |
|
| 70 | + $errors[244] = 2; |
|
| 71 | + $errors[248] = 1; |
|
| 72 | + $errors[259] = 1; |
|
| 73 | + $errors[262] = 1; |
|
| 74 | + $errors[267] = 1; |
|
| 75 | + $errors[269] = 1; |
|
| 76 | + $errors[276] = 1; |
|
| 77 | + $errors[279] = 1; |
|
| 78 | + $errors[283] = 1; |
|
| 79 | + $errors[306] = 3; |
|
| 80 | + }//end if |
|
| 81 | 81 | |
| 82 | - return $errors; |
|
| 82 | + return $errors; |
|
| 83 | 83 | |
| 84 | - }//end getErrorList() |
|
| 84 | + }//end getErrorList() |
|
| 85 | 85 | |
| 86 | 86 | |
| 87 | - /** |
|
| 88 | - * Returns the lines where warnings should occur. |
|
| 89 | - * |
|
| 90 | - * The key of the array should represent the line number and the value |
|
| 91 | - * should represent the number of warnings that should occur on that line. |
|
| 92 | - * |
|
| 93 | - * @return array<int, int> |
|
| 94 | - */ |
|
| 95 | - public function getWarningList() |
|
| 96 | - { |
|
| 97 | - return []; |
|
| 87 | + /** |
|
| 88 | + * Returns the lines where warnings should occur. |
|
| 89 | + * |
|
| 90 | + * The key of the array should represent the line number and the value |
|
| 91 | + * should represent the number of warnings that should occur on that line. |
|
| 92 | + * |
|
| 93 | + * @return array<int, int> |
|
| 94 | + */ |
|
| 95 | + public function getWarningList() |
|
| 96 | + { |
|
| 97 | + return []; |
|
| 98 | 98 | |
| 99 | - }//end getWarningList() |
|
| 99 | + }//end getWarningList() |
|
| 100 | 100 | |
| 101 | 101 | |
| 102 | 102 | }//end class |
@@ -10,33 +10,33 @@ |
||
| 10 | 10 | echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
| 11 | 11 | |
| 12 | 12 | echo 'var is '.(($var < 0) |
| 13 | - ? 'negative' |
|
| 14 | - : 'positive'); |
|
| 13 | + ? 'negative' |
|
| 14 | + : 'positive'); |
|
| 15 | 15 | |
| 16 | 16 | $args = array( |
| 17 | - '"'.$this->id.'"', |
|
| 18 | - '"'.$this->stepInfo['title'].'"', |
|
| 19 | - '"'.((isset($this->stepInfo['description']) === TRUE) ? $this->stepInfo['description'] : '').'"', |
|
| 20 | - '"'.(isset($this->stepInfo['description']) === TRUE ? $this->stepInfo['description'] : '').'"', |
|
| 21 | - '"'.$this->stepInfo['title'].'"', |
|
| 22 | - ); |
|
| 17 | + '"'.$this->id.'"', |
|
| 18 | + '"'.$this->stepInfo['title'].'"', |
|
| 19 | + '"'.((isset($this->stepInfo['description']) === TRUE) ? $this->stepInfo['description'] : '').'"', |
|
| 20 | + '"'.(isset($this->stepInfo['description']) === TRUE ? $this->stepInfo['description'] : '').'"', |
|
| 21 | + '"'.$this->stepInfo['title'].'"', |
|
| 22 | + ); |
|
| 23 | 23 | |
| 24 | 24 | echo (TRUE)?'Hello':'Bye'; |
| 25 | 25 | |
| 26 | 26 | $array = array( |
| 27 | - 'one' => ($test == 1) ? true : false, |
|
| 28 | - 'two' => (($test == 1) ? true : false), |
|
| 29 | - 'three' => (($test == 1) ? true : false) |
|
| 27 | + 'one' => ($test == 1) ? true : false, |
|
| 28 | + 'two' => (($test == 1) ? true : false), |
|
| 29 | + 'three' => (($test == 1) ? true : false) |
|
| 30 | 30 | ); |
| 31 | 31 | $var = ($test == 1) ? true : false; |
| 32 | 32 | $var = (myFunc(1,2,3) == 1) ? true : false; |
| 33 | 33 | |
| 34 | 34 | set('config', function() { |
| 35 | - $foo = ($bar === "on") ? "1" : "2"; |
|
| 35 | + $foo = ($bar === "on") ? "1" : "2"; |
|
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | 38 | $config = function() { |
| 39 | - $foo = ($bar === "on") ? "1" : "2"; |
|
| 39 | + $foo = ($bar === "on") ? "1" : "2"; |
|
| 40 | 40 | }; |
| 41 | 41 | |
| 42 | 42 | rand(0, 1) ? 'ěščřžýáí' : NULL; |
@@ -2,12 +2,12 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
| 4 | 4 | echo 'var is '.($var < 0 ? 'negative' : 'positive'); |
| 5 | -echo 'var is '.(($var < 0) ? 'negative' :'positive'); |
|
| 6 | -echo 'var is '.(($var < 0) ? 'negative': 'positive'); |
|
| 7 | -echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 8 | -echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 9 | -echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 10 | -echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 5 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 6 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 7 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 8 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 9 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 10 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
| 11 | 11 | |
| 12 | 12 | echo 'var is '.(($var < 0) |
| 13 | 13 | ? 'negative' |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | '"'.$this->stepInfo['title'].'"', |
| 22 | 22 | ); |
| 23 | 23 | |
| 24 | -echo (TRUE)?'Hello':'Bye'; |
|
| 24 | +echo (TRUE) ? 'Hello' : 'Bye'; |
|
| 25 | 25 | |
| 26 | 26 | $array = array( |
| 27 | 27 | 'one' => ($test == 1) ? true : false, |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | 'three' => (($test == 1) ? true : false) |
| 30 | 30 | ); |
| 31 | 31 | $var = ($test == 1) ? true : false; |
| 32 | -$var = (myFunc(1,2,3) == 1) ? true : false; |
|
| 32 | +$var = (myFunc(1, 2, 3) == 1) ? true : false; |
|
| 33 | 33 | |
| 34 | 34 | set('config', function() { |
| 35 | 35 | $foo = ($bar === "on") ? "1" : "2"; |
@@ -41,8 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | rand(0, 1) ? 'ěščřžýáí' : NULL; |
| 43 | 43 | |
| 44 | -$c = ($argv[1]) ? : ""; |
|
| 44 | +$c = ($argv[1]) ?: ""; |
|
| 45 | 45 | $filepath = realpath($argv[1]) ?: $argv[1]; |
| 46 | 46 | $c = ($argv[1]) ? /* comment */ : ""; |
| 47 | -$c = ($argv[1]) ? |
|
| 48 | -: ""; |
|
| 47 | +$c = ($argv[1]) ?: ""; |
|
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | wHile ($i < 10) {} |
| 8 | 8 | |
| 9 | 9 | DO { |
| 10 | -} While ($1 < 10) |
|
| 10 | +}While ($1 < 10) |
|
| 11 | 11 | |
| 12 | 12 | Switch ($condition) {} |
| 13 | 13 | |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | wHile ($i < 10) {} |
| 8 | 8 | |
| 9 | 9 | DO { |
| 10 | -} While ($1 < 10) |
|
| 10 | +} While ($1 < 10) { |
|
| 11 | 11 | |
| 12 | 12 | Switch ($condition) {} |
| 13 | 13 | |
@@ -22,3 +22,4 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | $r = MATCH ($x) {}; |
| 25 | +} |
|
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | // phpcs:set Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 0 |
| 31 | 31 | |
| 32 | 32 | foreach ([ |
| 33 | - 'foo' => 'bar', |
|
| 34 | - 'foobaz' => 'bazzy', |
|
| 35 | - ] as $key => $value) { |
|
| 33 | + 'foo' => 'bar', |
|
| 34 | + 'foobaz' => 'bazzy', |
|
| 35 | + ] as $key => $value) { |
|
| 36 | 36 | } |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | // Invalid. |
| 8 | -foreach ( $something as $blah => $that ) { |
|
| 8 | +foreach ($something as $blah => $that) { |
|
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | foreach ($something as $blah => $that) { |
@@ -18,14 +18,14 @@ discard block |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | // The works. |
| 21 | -foreach ( $something aS $blah => $that ) { |
|
| 21 | +foreach ($something aS $blah => $that) { |
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | // phpcs:set Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesAfterOpen 1 |
| 25 | 25 | // phpcs:set Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 1 |
| 26 | 26 | foreach ($something as $blah => $that) {} |
| 27 | -foreach ( $something as $blah => $that ) {} |
|
| 28 | -foreach ( $something as $blah => $that ) {} |
|
| 27 | +foreach ($something as $blah => $that) {} |
|
| 28 | +foreach ($something as $blah => $that) {} |
|
| 29 | 29 | // phpcs:set Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesAfterOpen 0 |
| 30 | 30 | // phpcs:set Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 0 |
| 31 | 31 | |
@@ -15,37 +15,37 @@ |
||
| 15 | 15 | { |
| 16 | 16 | |
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Returns the lines where errors should occur. |
|
| 20 | - * |
|
| 21 | - * The key of the array should represent the line number and the value |
|
| 22 | - * should represent the number of errors that should occur on that line. |
|
| 23 | - * |
|
| 24 | - * @return array<int, int> |
|
| 25 | - */ |
|
| 26 | - public function getErrorList() |
|
| 27 | - { |
|
| 28 | - return [ |
|
| 29 | - 8 => 1, |
|
| 30 | - 13 => 1, |
|
| 31 | - ]; |
|
| 32 | - |
|
| 33 | - }//end getErrorList() |
|
| 34 | - |
|
| 35 | - |
|
| 36 | - /** |
|
| 37 | - * Returns the lines where warnings should occur. |
|
| 38 | - * |
|
| 39 | - * The key of the array should represent the line number and the value |
|
| 40 | - * should represent the number of warnings that should occur on that line. |
|
| 41 | - * |
|
| 42 | - * @return array<int, int> |
|
| 43 | - */ |
|
| 44 | - public function getWarningList() |
|
| 45 | - { |
|
| 46 | - return []; |
|
| 47 | - |
|
| 48 | - }//end getWarningList() |
|
| 18 | + /** |
|
| 19 | + * Returns the lines where errors should occur. |
|
| 20 | + * |
|
| 21 | + * The key of the array should represent the line number and the value |
|
| 22 | + * should represent the number of errors that should occur on that line. |
|
| 23 | + * |
|
| 24 | + * @return array<int, int> |
|
| 25 | + */ |
|
| 26 | + public function getErrorList() |
|
| 27 | + { |
|
| 28 | + return [ |
|
| 29 | + 8 => 1, |
|
| 30 | + 13 => 1, |
|
| 31 | + ]; |
|
| 32 | + |
|
| 33 | + }//end getErrorList() |
|
| 34 | + |
|
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * Returns the lines where warnings should occur. |
|
| 38 | + * |
|
| 39 | + * The key of the array should represent the line number and the value |
|
| 40 | + * should represent the number of warnings that should occur on that line. |
|
| 41 | + * |
|
| 42 | + * @return array<int, int> |
|
| 43 | + */ |
|
| 44 | + public function getWarningList() |
|
| 45 | + { |
|
| 46 | + return []; |
|
| 47 | + |
|
| 48 | + }//end getWarningList() |
|
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | }//end class |
@@ -2,5 +2,5 @@ |
||
| 2 | 2 | function myFunc($blah, $x, $blah) {} |
| 3 | 3 | function myFunc($a, $b, $c) {} |
| 4 | 4 | function myFunc($a, $a, $a) {} |
| 5 | -function myFunc($a='1', $b='1', $a='2') {} |
|
| 5 | +function myFunc($a = '1', $b = '1', $a = '2') {} |
|
| 6 | 6 | ?> |
@@ -16,15 +16,15 @@ discard block |
||
| 16 | 16 | { |
| 17 | 17 | |
| 18 | 18 | |
| 19 | - private function func1() |
|
| 20 | - { |
|
| 19 | + private function func1() |
|
| 20 | + { |
|
| 21 | 21 | |
| 22 | - }//end func1() |
|
| 22 | + }//end func1() |
|
| 23 | 23 | |
| 24 | 24 | |
| 25 | - public function func1() { |
|
| 25 | + public function func1() { |
|
| 26 | 26 | |
| 27 | - }//end func1() |
|
| 27 | + }//end func1() |
|
| 28 | 28 | |
| 29 | 29 | |
| 30 | 30 | }//end class |
@@ -34,12 +34,12 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | |
| 36 | 36 | |
| 37 | - abstract function func1(); |
|
| 37 | + abstract function func1(); |
|
| 38 | 38 | |
| 39 | 39 | |
| 40 | - public function func1() { |
|
| 40 | + public function func1() { |
|
| 41 | 41 | |
| 42 | - }//end func1() |
|
| 42 | + }//end func1() |
|
| 43 | 43 | |
| 44 | 44 | |
| 45 | 45 | }//end class |
@@ -49,18 +49,18 @@ discard block |
||
| 49 | 49 | { |
| 50 | 50 | |
| 51 | 51 | |
| 52 | - function func1(); |
|
| 52 | + function func1(); |
|
| 53 | 53 | |
| 54 | 54 | |
| 55 | - function func2() ; |
|
| 55 | + function func2() ; |
|
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | }//end interface |
| 59 | 59 | |
| 60 | 60 | function recurseCreateTree( |
| 61 | - array $flatList, |
|
| 62 | - $markup, |
|
| 63 | - $lastOffset=0 |
|
| 61 | + array $flatList, |
|
| 62 | + $markup, |
|
| 63 | + $lastOffset=0 |
|
| 64 | 64 | ) { |
| 65 | 65 | } |
| 66 | 66 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | function func1(); |
| 53 | 53 | |
| 54 | 54 | |
| 55 | - function func2() ; |
|
| 55 | + function func2(); |
|
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | }//end interface |
@@ -60,12 +60,12 @@ discard block |
||
| 60 | 60 | function recurseCreateTree( |
| 61 | 61 | array $flatList, |
| 62 | 62 | $markup, |
| 63 | - $lastOffset=0 |
|
| 63 | + $lastOffset = 0 |
|
| 64 | 64 | ) { |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | |
| 68 | -function test ( ){} |
|
| 68 | +function test( ) {} |
|
| 69 | 69 | |
| 70 | 70 | function parent() {} |
| 71 | 71 | function self() {} |
@@ -15,37 +15,37 @@ |
||
| 15 | 15 | { |
| 16 | 16 | |
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Returns the lines where errors should occur. |
|
| 20 | - * |
|
| 21 | - * The key of the array should represent the line number and the value |
|
| 22 | - * should represent the number of errors that should occur on that line. |
|
| 23 | - * |
|
| 24 | - * @return array<int, int> |
|
| 25 | - */ |
|
| 26 | - public function getErrorList() |
|
| 27 | - { |
|
| 28 | - return [ |
|
| 29 | - 55 => 1, |
|
| 30 | - 68 => 1, |
|
| 31 | - ]; |
|
| 32 | - |
|
| 33 | - }//end getErrorList() |
|
| 34 | - |
|
| 35 | - |
|
| 36 | - /** |
|
| 37 | - * Returns the lines where warnings should occur. |
|
| 38 | - * |
|
| 39 | - * The key of the array should represent the line number and the value |
|
| 40 | - * should represent the number of warnings that should occur on that line. |
|
| 41 | - * |
|
| 42 | - * @return array<int, int> |
|
| 43 | - */ |
|
| 44 | - public function getWarningList() |
|
| 45 | - { |
|
| 46 | - return []; |
|
| 47 | - |
|
| 48 | - }//end getWarningList() |
|
| 18 | + /** |
|
| 19 | + * Returns the lines where errors should occur. |
|
| 20 | + * |
|
| 21 | + * The key of the array should represent the line number and the value |
|
| 22 | + * should represent the number of errors that should occur on that line. |
|
| 23 | + * |
|
| 24 | + * @return array<int, int> |
|
| 25 | + */ |
|
| 26 | + public function getErrorList() |
|
| 27 | + { |
|
| 28 | + return [ |
|
| 29 | + 55 => 1, |
|
| 30 | + 68 => 1, |
|
| 31 | + ]; |
|
| 32 | + |
|
| 33 | + }//end getErrorList() |
|
| 34 | + |
|
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * Returns the lines where warnings should occur. |
|
| 38 | + * |
|
| 39 | + * The key of the array should represent the line number and the value |
|
| 40 | + * should represent the number of warnings that should occur on that line. |
|
| 41 | + * |
|
| 42 | + * @return array<int, int> |
|
| 43 | + */ |
|
| 44 | + public function getWarningList() |
|
| 45 | + { |
|
| 46 | + return []; |
|
| 47 | + |
|
| 48 | + }//end getWarningList() |
|
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | }//end class |
@@ -3,12 +3,12 @@ |
||
| 3 | 3 | |
| 4 | 4 | class MyClass |
| 5 | 5 | { |
| 6 | - function func1() {} |
|
| 6 | + function func1() {} |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | interface MyInterface |
| 10 | 10 | { |
| 11 | - function func1() {} |
|
| 11 | + function func1() {} |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | function __autoload($class) {} |
@@ -13,5 +13,5 @@ |
||
| 13 | 13 | |
| 14 | 14 | function __autoload($class) {} |
| 15 | 15 | |
| 16 | -echo preg_replace_callback('~-([a-z])~', function ($match) { return strtoupper($match[1]); }, 'hello-world'); |
|
| 16 | +echo preg_replace_callback('~-([a-z])~', function($match) { return strtoupper($match[1]); }, 'hello-world'); |
|
| 17 | 17 | ?> |