@@ -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 | ?> |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @return array<int, int> |
| 27 | 27 | */ |
| 28 | - public function getErrorList($testFile='MultiLineFunctionDeclarationUnitTest.inc') |
|
| 28 | + public function getErrorList($testFile = 'MultiLineFunctionDeclarationUnitTest.inc') |
|
| 29 | 29 | { |
| 30 | 30 | if ($testFile === 'MultiLineFunctionDeclarationUnitTest.inc') { |
| 31 | 31 | $errors = [ |
@@ -15,99 +15,99 @@ |
||
| 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='MultiLineFunctionDeclarationUnitTest.inc') |
|
| 29 | - { |
|
| 30 | - if ($testFile === 'MultiLineFunctionDeclarationUnitTest.inc') { |
|
| 31 | - $errors = [ |
|
| 32 | - 2 => 1, |
|
| 33 | - 3 => 1, |
|
| 34 | - 4 => 2, |
|
| 35 | - 5 => 1, |
|
| 36 | - 7 => 1, |
|
| 37 | - 11 => 1, |
|
| 38 | - 12 => 1, |
|
| 39 | - 13 => 1, |
|
| 40 | - 16 => 1, |
|
| 41 | - 36 => 1, |
|
| 42 | - 43 => 2, |
|
| 43 | - 48 => 1, |
|
| 44 | - 81 => 1, |
|
| 45 | - 82 => 2, |
|
| 46 | - 88 => 1, |
|
| 47 | - 102 => 2, |
|
| 48 | - 137 => 1, |
|
| 49 | - 141 => 2, |
|
| 50 | - 142 => 1, |
|
| 51 | - 158 => 1, |
|
| 52 | - 160 => 1, |
|
| 53 | - 182 => 2, |
|
| 54 | - 186 => 2, |
|
| 55 | - 190 => 2, |
|
| 56 | - 194 => 1, |
|
| 57 | - 195 => 1, |
|
| 58 | - 233 => 1, |
|
| 59 | - 234 => 1, |
|
| 60 | - 235 => 1, |
|
| 61 | - 236 => 1, |
|
| 62 | - 244 => 1, |
|
| 63 | - 245 => 1, |
|
| 64 | - 246 => 1, |
|
| 65 | - 247 => 1, |
|
| 66 | - 248 => 1, |
|
| 67 | - 249 => 1, |
|
| 68 | - 250 => 1, |
|
| 69 | - 251 => 1, |
|
| 70 | - 252 => 1, |
|
| 71 | - 253 => 1, |
|
| 72 | - 254 => 1, |
|
| 73 | - ]; |
|
| 74 | - } else { |
|
| 75 | - $errors = [ |
|
| 76 | - 2 => 1, |
|
| 77 | - 3 => 1, |
|
| 78 | - 4 => 2, |
|
| 79 | - 5 => 1, |
|
| 80 | - 7 => 1, |
|
| 81 | - 11 => 1, |
|
| 82 | - 12 => 1, |
|
| 83 | - 13 => 1, |
|
| 84 | - 16 => 1, |
|
| 85 | - 26 => 1, |
|
| 86 | - 36 => 1, |
|
| 87 | - 43 => 2, |
|
| 88 | - 48 => 1, |
|
| 89 | - 65 => 1, |
|
| 90 | - ]; |
|
| 91 | - }//end if |
|
| 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='MultiLineFunctionDeclarationUnitTest.inc') |
|
| 29 | + { |
|
| 30 | + if ($testFile === 'MultiLineFunctionDeclarationUnitTest.inc') { |
|
| 31 | + $errors = [ |
|
| 32 | + 2 => 1, |
|
| 33 | + 3 => 1, |
|
| 34 | + 4 => 2, |
|
| 35 | + 5 => 1, |
|
| 36 | + 7 => 1, |
|
| 37 | + 11 => 1, |
|
| 38 | + 12 => 1, |
|
| 39 | + 13 => 1, |
|
| 40 | + 16 => 1, |
|
| 41 | + 36 => 1, |
|
| 42 | + 43 => 2, |
|
| 43 | + 48 => 1, |
|
| 44 | + 81 => 1, |
|
| 45 | + 82 => 2, |
|
| 46 | + 88 => 1, |
|
| 47 | + 102 => 2, |
|
| 48 | + 137 => 1, |
|
| 49 | + 141 => 2, |
|
| 50 | + 142 => 1, |
|
| 51 | + 158 => 1, |
|
| 52 | + 160 => 1, |
|
| 53 | + 182 => 2, |
|
| 54 | + 186 => 2, |
|
| 55 | + 190 => 2, |
|
| 56 | + 194 => 1, |
|
| 57 | + 195 => 1, |
|
| 58 | + 233 => 1, |
|
| 59 | + 234 => 1, |
|
| 60 | + 235 => 1, |
|
| 61 | + 236 => 1, |
|
| 62 | + 244 => 1, |
|
| 63 | + 245 => 1, |
|
| 64 | + 246 => 1, |
|
| 65 | + 247 => 1, |
|
| 66 | + 248 => 1, |
|
| 67 | + 249 => 1, |
|
| 68 | + 250 => 1, |
|
| 69 | + 251 => 1, |
|
| 70 | + 252 => 1, |
|
| 71 | + 253 => 1, |
|
| 72 | + 254 => 1, |
|
| 73 | + ]; |
|
| 74 | + } else { |
|
| 75 | + $errors = [ |
|
| 76 | + 2 => 1, |
|
| 77 | + 3 => 1, |
|
| 78 | + 4 => 2, |
|
| 79 | + 5 => 1, |
|
| 80 | + 7 => 1, |
|
| 81 | + 11 => 1, |
|
| 82 | + 12 => 1, |
|
| 83 | + 13 => 1, |
|
| 84 | + 16 => 1, |
|
| 85 | + 26 => 1, |
|
| 86 | + 36 => 1, |
|
| 87 | + 43 => 2, |
|
| 88 | + 48 => 1, |
|
| 89 | + 65 => 1, |
|
| 90 | + ]; |
|
| 91 | + }//end if |
|
| 92 | 92 | |
| 93 | - return $errors; |
|
| 93 | + return $errors; |
|
| 94 | 94 | |
| 95 | - }//end getErrorList() |
|
| 95 | + }//end getErrorList() |
|
| 96 | 96 | |
| 97 | 97 | |
| 98 | - /** |
|
| 99 | - * Returns the lines where warnings should occur. |
|
| 100 | - * |
|
| 101 | - * The key of the array should represent the line number and the value |
|
| 102 | - * should represent the number of warnings that should occur on that line. |
|
| 103 | - * |
|
| 104 | - * @return array<int, int> |
|
| 105 | - */ |
|
| 106 | - public function getWarningList() |
|
| 107 | - { |
|
| 108 | - return []; |
|
| 98 | + /** |
|
| 99 | + * Returns the lines where warnings should occur. |
|
| 100 | + * |
|
| 101 | + * The key of the array should represent the line number and the value |
|
| 102 | + * should represent the number of warnings that should occur on that line. |
|
| 103 | + * |
|
| 104 | + * @return array<int, int> |
|
| 105 | + */ |
|
| 106 | + public function getWarningList() |
|
| 107 | + { |
|
| 108 | + return []; |
|
| 109 | 109 | |
| 110 | - }//end getWarningList() |
|
| 110 | + }//end getWarningList() |
|
| 111 | 111 | |
| 112 | 112 | |
| 113 | 113 | }//end class |