Skip to content

Commit 724e36f

Browse files
committed
CS: various small whitespace fixes
1 parent bc5b3d4 commit 724e36f

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

src/Sniffs/AbstractPatternSniff.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -744,17 +744,17 @@ protected function registerSupplementary()
744744
}//end registerSupplementary()
745745

746746

747-
/**
748-
* Processes any tokens registered with registerSupplementary().
749-
*
750-
* @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where to
751-
* process the skip.
752-
* @param int $stackPtr The position in the tokens stack to
753-
* process.
754-
*
755-
* @return void
756-
* @see registerSupplementary()
757-
*/
747+
/**
748+
* Processes any tokens registered with registerSupplementary().
749+
*
750+
* @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where to
751+
* process the skip.
752+
* @param int $stackPtr The position in the tokens stack to
753+
* process.
754+
*
755+
* @return void
756+
* @see registerSupplementary()
757+
*/
758758
protected function processSupplementary(File $phpcsFile, $stackPtr)
759759
{
760760

src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ protected function processReturn(File $phpcsFile, $stackPtr, $commentStart)
195195

196196
// Skip constructor and destructor.
197197
$methodName = $phpcsFile->getDeclarationName($stackPtr);
198-
$isSpecialMethod = in_array($methodName, $this->specialMethods, true);
198+
$isSpecialMethod = in_array($methodName, $this->specialMethods, true);
199199

200200
$return = null;
201201
foreach ($tokens[$commentStart]['comment_tags'] as $tag) {

src/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function processReturn(File $phpcsFile, $stackPtr, $commentStart)
6767

6868
// Skip constructor and destructor.
6969
$methodName = $phpcsFile->getDeclarationName($stackPtr);
70-
$isSpecialMethod = in_array($methodName, $this->specialMethods, true);
70+
$isSpecialMethod = in_array($methodName, $this->specialMethods, true);
7171

7272
if ($return !== null) {
7373
$content = $tokens[($return + 2)]['content'];

src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function processMemberVar(File $phpcsFile, $stackPtr)
127127
return;
128128
}
129129

130-
// Support both a var type and a description.
130+
// Support both a var type and a description.
131131
preg_match('`^((?:\|?(?:array\([^\)]*\)|[\\\\a-z0-9\[\]]+))*)( .*)?`i', $tokens[($foundVar + 2)]['content'], $varParts);
132132
if (isset($varParts[1]) === false) {
133133
return;

src/Standards/Squiz/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public function process(File $phpcsFile, $stackPtr)
6363
$nextContent = $phpcsFile->findNext(T_WHITESPACE, ($openBrace + 1), null, true);
6464

6565
if ($nextContent === $tokens[$stackPtr]['scope_closer']) {
66-
// The next bit of content is the closing brace, so this
67-
// is an empty function and should have a blank line
68-
// between the opening and closing braces.
66+
// The next bit of content is the closing brace, so this
67+
// is an empty function and should have a blank line
68+
// between the opening and closing braces.
6969
return;
7070
}
7171

tests/Core/Tokenizers/PHP/DNFTypesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,16 +451,16 @@ public static function dataDNFTypeParentheses()
451451
'testMarker' => '/* testDNFTypeWithPHP84FinalKeywordAndStatic */',
452452
],
453453
'OO property type: asymmetric visibility, private(set)' => [
454-
'testMarker' => '/* testDNFTypePropertyWithPrivateSet */',
454+
'testMarker' => '/* testDNFTypePropertyWithPrivateSet */',
455455
],
456456
'OO property type: asymmetric vis, public private(set)' => [
457-
'testMarker' => '/* testDNFTypePropertyWithPublicPrivateSet */',
457+
'testMarker' => '/* testDNFTypePropertyWithPublicPrivateSet */',
458458
],
459459
'OO property type: asymmetric visibility, protected(set)' => [
460-
'testMarker' => '/* testDNFTypePropertyWithProtectedSet */',
460+
'testMarker' => '/* testDNFTypePropertyWithProtectedSet */',
461461
],
462462
'OO property type: asymmetric vis, public protected(set)' => [
463-
'testMarker' => '/* testDNFTypePropertyWithPublicProtectedSet */',
463+
'testMarker' => '/* testDNFTypePropertyWithPublicProtectedSet */',
464464
],
465465
'OO property type: with only abstract keyword' => [
466466
'testMarker' => '/* testDNFTypeWithPHP84AbstractKeyword */',

0 commit comments

Comments
 (0)