diff --git a/tests/Core/Generators/Fixtures/HTMLDouble.php b/tests/Core/Generators/Fixtures/HTMLDouble.php index 695c0c6d2f..d4eee17131 100644 --- a/tests/Core/Generators/Fixtures/HTMLDouble.php +++ b/tests/Core/Generators/Fixtures/HTMLDouble.php @@ -20,7 +20,7 @@ class HTMLDouble extends HTML */ protected function getFormattedFooter() { - $output ='
Documentation generated on #REDACTED# by PHP_CodeSniffer #VERSION#
+ $output = '
Documentation generated on #REDACTED# by PHP_CodeSniffer #VERSION#
'; diff --git a/tests/Core/Generators/Fixtures/MarkdownDouble.php b/tests/Core/Generators/Fixtures/MarkdownDouble.php index 79dc6b0bf2..8c11c29b2a 100644 --- a/tests/Core/Generators/Fixtures/MarkdownDouble.php +++ b/tests/Core/Generators/Fixtures/MarkdownDouble.php @@ -20,8 +20,8 @@ class MarkdownDouble extends Markdown */ protected function getFormattedFooter() { - $output = PHP_EOL.'Documentation generated on *REDACTED*'; - $output .= ' by [PHP_CodeSniffer *VERSION*](https://github.com/PHPCSStandards/PHP_CodeSniffer)'.PHP_EOL; + $output = PHP_EOL.'Documentation generated on *REDACTED*'; + $output .= ' by [PHP_CodeSniffer *VERSION*](https://github.com/PHPCSStandards/PHP_CodeSniffer)'.PHP_EOL; return $output; } diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithLongReplacementSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithLongReplacementSniff.php index 659d89ee2a..a940d8dd56 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithLongReplacementSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithLongReplacementSniff.php @@ -11,7 +11,7 @@ use PHP_CodeSniffer\Sniffs\DeprecatedSniff; use PHP_CodeSniffer\Sniffs\Sniff; -class WithLongReplacementSniff implements Sniff,DeprecatedSniff +class WithLongReplacementSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingLinuxNewlinesSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingLinuxNewlinesSniff.php index d870cbf7e4..07ac0241e2 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingLinuxNewlinesSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingLinuxNewlinesSniff.php @@ -11,7 +11,7 @@ use PHP_CodeSniffer\Sniffs\DeprecatedSniff; use PHP_CodeSniffer\Sniffs\Sniff; -class WithReplacementContainingLinuxNewlinesSniff implements Sniff,DeprecatedSniff +class WithReplacementContainingLinuxNewlinesSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingNewlinesSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingNewlinesSniff.php index 2516d7cd2e..f421a866ef 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingNewlinesSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingNewlinesSniff.php @@ -11,7 +11,7 @@ use PHP_CodeSniffer\Sniffs\DeprecatedSniff; use PHP_CodeSniffer\Sniffs\Sniff; -class WithReplacementContainingNewlinesSniff implements Sniff,DeprecatedSniff +class WithReplacementContainingNewlinesSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementSniff.php index 1953448672..7a07211f4d 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementSniff.php @@ -11,7 +11,7 @@ use PHP_CodeSniffer\Sniffs\DeprecatedSniff; use PHP_CodeSniffer\Sniffs\Sniff; -class WithReplacementSniff implements Sniff,DeprecatedSniff +class WithReplacementSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithoutReplacementSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithoutReplacementSniff.php index 888e08fd13..37776b7a0f 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithoutReplacementSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithoutReplacementSniff.php @@ -11,7 +11,7 @@ use PHP_CodeSniffer\Sniffs\DeprecatedSniff; use PHP_CodeSniffer\Sniffs\Sniff; -class WithoutReplacementSniff implements Sniff,DeprecatedSniff +class WithoutReplacementSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyDeprecationVersionSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyDeprecationVersionSniff.php index 4e26b7b761..c902278822 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyDeprecationVersionSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyDeprecationVersionSniff.php @@ -11,7 +11,7 @@ use PHP_CodeSniffer\Sniffs\DeprecatedSniff; use PHP_CodeSniffer\Sniffs\Sniff; -class EmptyDeprecationVersionSniff implements Sniff,DeprecatedSniff +class EmptyDeprecationVersionSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyRemovalVersionSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyRemovalVersionSniff.php index cdf15c3031..af26b3e624 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyRemovalVersionSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyRemovalVersionSniff.php @@ -11,7 +11,7 @@ use PHP_CodeSniffer\Sniffs\DeprecatedSniff; use PHP_CodeSniffer\Sniffs\Sniff; -class EmptyRemovalVersionSniff implements Sniff,DeprecatedSniff +class EmptyRemovalVersionSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationMessageSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationMessageSniff.php index 368bd4140b..686a22487f 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationMessageSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationMessageSniff.php @@ -12,7 +12,7 @@ use PHP_CodeSniffer\Sniffs\Sniff; use stdClass; -class InvalidDeprecationMessageSniff implements Sniff,DeprecatedSniff +class InvalidDeprecationMessageSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationVersionSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationVersionSniff.php index b8218ad57e..44163feea3 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationVersionSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationVersionSniff.php @@ -11,7 +11,7 @@ use PHP_CodeSniffer\Sniffs\DeprecatedSniff; use PHP_CodeSniffer\Sniffs\Sniff; -class InvalidDeprecationVersionSniff implements Sniff,DeprecatedSniff +class InvalidDeprecationVersionSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidRemovalVersionSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidRemovalVersionSniff.php index 1177e73338..1f017058a7 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidRemovalVersionSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidRemovalVersionSniff.php @@ -11,7 +11,7 @@ use PHP_CodeSniffer\Sniffs\DeprecatedSniff; use PHP_CodeSniffer\Sniffs\Sniff; -class InvalidRemovalVersionSniff implements Sniff,DeprecatedSniff +class InvalidRemovalVersionSniff implements Sniff, DeprecatedSniff { public function getDeprecationVersion() diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/MissingInterface/ValidImplementsViaAbstractSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/MissingInterface/ValidImplementsViaAbstractSniff.php index ec23300247..985be10cf5 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/MissingInterface/ValidImplementsViaAbstractSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/MissingInterface/ValidImplementsViaAbstractSniff.php @@ -13,12 +13,12 @@ final class ValidImplementsViaAbstractSniff extends AbstractArraySniff { protected function processSingleLineArray($phpcsFile, $stackPtr, $arrayStart, $arrayEnd, $indices) - { - // Do something. + { + // Do something. } protected function processMultiLineArray($phpcsFile, $stackPtr, $arrayStart, $arrayEnd, $indices) - { - // Do something. + { + // Do something. } } diff --git a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SupportedTokenizers/ListensForPHPAndCSSAndJSSniff.php b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SupportedTokenizers/ListensForPHPAndCSSAndJSSniff.php index 1f12b493a5..f25975c8d3 100644 --- a/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SupportedTokenizers/ListensForPHPAndCSSAndJSSniff.php +++ b/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SupportedTokenizers/ListensForPHPAndCSSAndJSSniff.php @@ -23,7 +23,7 @@ public function register() { return [ T_OPEN_TAG, - T_OPEN_TAG_WITH_ECHO + T_OPEN_TAG_WITH_ECHO, ]; }