@@ -24,10 +24,10 @@ |
||
| 24 | 24 | |
| 25 | 25 | /* testNestedExtendedClass */ |
| 26 | 26 | class testFECNNestedExtendedClass { |
| 27 | - public function someMethod() { |
|
| 28 | - /* testNestedExtendedAnonClass */ |
|
| 29 | - $anon = new class extends testFECNAnonClass {}; |
|
| 30 | - } |
|
| 27 | + public function someMethod() { |
|
| 28 | + /* testNestedExtendedAnonClass */ |
|
| 29 | + $anon = new class extends testFECNAnonClass {}; |
|
| 30 | + } |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /* testClassThatExtendsAndImplements */ |
@@ -739,17 +739,17 @@ |
||
| 739 | 739 | }//end registerSupplementary() |
| 740 | 740 | |
| 741 | 741 | |
| 742 | - /** |
|
| 743 | - * Processes any tokens registered with registerSupplementary(). |
|
| 744 | - * |
|
| 745 | - * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where to |
|
| 746 | - * process the skip. |
|
| 747 | - * @param int $stackPtr The position in the tokens stack to |
|
| 748 | - * process. |
|
| 749 | - * |
|
| 750 | - * @return void |
|
| 751 | - * @see registerSupplementary() |
|
| 752 | - */ |
|
| 742 | + /** |
|
| 743 | + * Processes any tokens registered with registerSupplementary(). |
|
| 744 | + * |
|
| 745 | + * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where to |
|
| 746 | + * process the skip. |
|
| 747 | + * @param int $stackPtr The position in the tokens stack to |
|
| 748 | + * process. |
|
| 749 | + * |
|
| 750 | + * @return void |
|
| 751 | + * @see registerSupplementary() |
|
| 752 | + */ |
|
| 753 | 753 | protected function processSupplementary(File $phpcsFile, $stackPtr) |
| 754 | 754 | { |
| 755 | 755 | |
@@ -24,11 +24,11 @@ |
||
| 24 | 24 | public $indent = 4; |
| 25 | 25 | |
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * Returns an array of tokens this test wants to listen for. |
|
| 29 | - * |
|
| 30 | - * @return int[] |
|
| 31 | - */ |
|
| 27 | + /** |
|
| 28 | + * Returns an array of tokens this test wants to listen for. |
|
| 29 | + * |
|
| 30 | + * @return int[] |
|
| 31 | + */ |
|
| 32 | 32 | public function register() |
| 33 | 33 | { |
| 34 | 34 | return Tokens::$scopeOpeners; |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | if (!class_exists('ClassOpeningBraceTabIndented')) { |
| 4 | 4 | abstract class ClassOpeningBraceTabIndented |
| 5 | - { |
|
| 6 | - } |
|
| 5 | + { |
|
| 6 | + } |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | |
@@ -35,8 +35,8 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | class IncorrectBracePlacement |
| 38 | - { |
|
| 39 | - } |
|
| 38 | + { |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | 41 | abstract class CodeSnifferFail |
| 42 | 42 | extends |
@@ -24,14 +24,14 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | class MyClass |
| 26 | 26 | { |
| 27 | - function func1() |
|
| 28 | - { |
|
| 27 | + function func1() |
|
| 28 | + { |
|
| 29 | 29 | function func2() |
| 30 | 30 | { |
| 31 | - return $a; |
|
| 31 | + return $a; |
|
| 32 | 32 | } |
| 33 | 33 | return $data; |
| 34 | - } |
|
| 34 | + } |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | class MyClass |
@@ -59,17 +59,17 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | class mpgResponse{ |
| 62 | - var $term_id; |
|
| 63 | - var $currentTag; |
|
| 64 | - function characterHandler($parser,$data){ |
|
| 65 | - switch($this->currentTag) |
|
| 66 | - { |
|
| 67 | - case "term_id": { |
|
| 68 | - $this->term_id=$data; |
|
| 69 | - break; |
|
| 70 | - } |
|
| 71 | - } |
|
| 72 | - }//end characterHandler |
|
| 62 | + var $term_id; |
|
| 63 | + var $currentTag; |
|
| 64 | + function characterHandler($parser,$data){ |
|
| 65 | + switch($this->currentTag) |
|
| 66 | + { |
|
| 67 | + case "term_id": { |
|
| 68 | + $this->term_id=$data; |
|
| 69 | + break; |
|
| 70 | + } |
|
| 71 | + } |
|
| 72 | + }//end characterHandler |
|
| 73 | 73 | }//end class mpgResponse |
| 74 | 74 | |
| 75 | 75 | class foo |
@@ -79,10 +79,10 @@ discard block |
||
| 79 | 79 | ); |
| 80 | 80 | |
| 81 | 81 | array_map( |
| 82 | - function($x) |
|
| 83 | - { |
|
| 84 | - return trim($x); |
|
| 85 | - }, |
|
| 82 | + function($x) |
|
| 83 | + { |
|
| 84 | + return trim($x); |
|
| 85 | + }, |
|
| 86 | 86 | $array |
| 87 | 87 | ); |
| 88 | 88 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | 'is', |
| 174 | 174 | 'an', |
| 175 | 175 | 'array' |
| 176 | - ], |
|
| 176 | + ], |
|
| 177 | 177 | array( |
| 178 | 178 | 'this', |
| 179 | 179 | 'is', |
@@ -185,13 +185,13 @@ discard block |
||
| 185 | 185 | 'is', |
| 186 | 186 | 'an', |
| 187 | 187 | 'array' |
| 188 | - ), |
|
| 188 | + ), |
|
| 189 | 189 | function($x) |
| 190 | 190 | { |
| 191 | 191 | echo 'wee'; |
| 192 | 192 | |
| 193 | 193 | return trim($x); |
| 194 | - } |
|
| 194 | + } |
|
| 195 | 195 | ); |
| 196 | 196 | |
| 197 | 197 | function foo() |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | $test = ' |
| 276 | 276 | ' . function_0( |
| 277 | 277 | $argument_0, |
| 278 | - $argument_1 |
|
| 278 | + $argument_1 |
|
| 279 | 279 | ); |
| 280 | 280 | } |
| 281 | 281 | |
@@ -326,15 +326,15 @@ discard block |
||
| 326 | 326 | public function getInstance() |
| 327 | 327 | { |
| 328 | 328 | return new static( |
| 329 | - 'arg', |
|
| 330 | - 'foo' |
|
| 329 | + 'arg', |
|
| 330 | + 'foo' |
|
| 331 | 331 | ); |
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | public function getSelf() |
| 335 | 335 | { |
| 336 | 336 | return new self( |
| 337 | - 'a','b', 'c' |
|
| 337 | + 'a','b', 'c' |
|
| 338 | 338 | ); |
| 339 | 339 | } |
| 340 | 340 | } |
@@ -343,14 +343,14 @@ discard block |
||
| 343 | 343 | 'x'); |
| 344 | 344 | |
| 345 | 345 | $obj->{$x}(1, |
| 346 | - 2); |
|
| 346 | + 2); |
|
| 347 | 347 | |
| 348 | 348 | return (function ($a, $b) { |
| 349 | 349 | return function ($c, $d) use ($a, $b) { |
| 350 | 350 | echo $a, $b, $c, $d; |
| 351 | 351 | }; |
| 352 | 352 | })( |
| 353 | - 'a','b' |
|
| 353 | + 'a','b' |
|
| 354 | 354 | )('c', |
| 355 | 355 | 'd'); |
| 356 | 356 | |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | |
| 375 | 375 | function foo() |
| 376 | 376 | { |
| 377 | - Bar( |
|
| 377 | + Bar( |
|
| 378 | 378 | function () { |
| 379 | 379 | } |
| 380 | 380 | ); |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | |
| 383 | 383 | $deprecated_functions = [ |
| 384 | 384 | 'the_category_ID' |
| 385 | - => function_call( // 7 spaces, not 8. This is the problem line. |
|
| 385 | + => function_call( // 7 spaces, not 8. This is the problem line. |
|
| 386 | 386 | $a, |
| 387 | 387 | $b |
| 388 | 388 | ), |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | |
| 391 | 391 | $deprecated_functions = [ |
| 392 | 392 | 'the_category_ID' |
| 393 | - => function_call( // 9 spaces, not 8. This is the problem line. |
|
| 393 | + => function_call( // 9 spaces, not 8. This is the problem line. |
|
| 394 | 394 | $a, |
| 395 | 395 | $b |
| 396 | 396 | ), |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | function someFunctionWithAVeryLongName($firstParameter='something', |
| 3 | - $secondParameter='booooo', $third=null, $fourthParameter=false, |
|
| 4 | - $fifthParameter=123.12, $sixthParam=true |
|
| 3 | + $secondParameter='booooo', $third=null, $fourthParameter=false, |
|
| 4 | + $fifthParameter=123.12, $sixthParam=true |
|
| 5 | 5 | ){ |
| 6 | 6 | } |
| 7 | 7 | |
@@ -65,9 +65,9 @@ discard block |
||
| 65 | 65 | $url, |
| 66 | 66 | $requireScheme=TRUE, |
| 67 | 67 | array $allowedSchemes=array( |
| 68 | - 'http', |
|
| 69 | - 'https', |
|
| 70 | - ), |
|
| 68 | + 'http', |
|
| 69 | + 'https', |
|
| 70 | + ), |
|
| 71 | 71 | array $notAllowedSchemes=array('ftp', 'sftp') |
| 72 | 72 | ) { |
| 73 | 73 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | |
| 52 | 52 | if (($condition1 |
| 53 | 53 | || $condition2) |
| 54 | - ) { |
|
| 54 | + ) { |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | if ( |