Skip to content

Commit 9397a57

Browse files
committed
Merge branch 'master' into 4.x
2 parents e023fad + cb59397 commit 9397a57

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

src/Sniffs/AbstractPatternSniff.php

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

740740

741-
/**
742-
* Processes any tokens registered with registerSupplementary().
743-
*
744-
* @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where to
745-
* process the skip.
746-
* @param int $stackPtr The position in the tokens stack to
747-
* process.
748-
*
749-
* @return void
750-
* @see registerSupplementary()
751-
*/
741+
/**
742+
* Processes any tokens registered with registerSupplementary().
743+
*
744+
* @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where to
745+
* process the skip.
746+
* @param int $stackPtr The position in the tokens stack to
747+
* process.
748+
*
749+
* @return void
750+
* @see registerSupplementary()
751+
*/
752752
protected function processSupplementary(File $phpcsFile, $stackPtr)
753753
{
754754

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: 2 additions & 2 deletions
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'];
@@ -781,7 +781,7 @@ protected function checkInheritdoc(File $phpcsFile, $stackPtr, $commentStart)
781781
T_DOC_COMMENT_STAR,
782782
];
783783
for ($i = $commentStart; $i <= $tokens[$commentStart]['comment_closer']; $i++) {
784-
if (in_array($tokens[$i]['code'], $allowedTokens) === false) {
784+
if (in_array($tokens[$i]['code'], $allowedTokens, true) === false) {
785785
$trimmedContent = strtolower(trim($tokens[$i]['content']));
786786

787787
if ($trimmedContent === '{@inheritdoc}') {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function processMemberVar(File $phpcsFile, $stackPtr)
138138
return;
139139
}
140140

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

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

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

5555
if ($nextContent === $tokens[$stackPtr]['scope_closer']) {
56-
// The next bit of content is the closing brace, so this
57-
// is an empty function and should have a blank line
58-
// between the opening and closing braces.
56+
// The next bit of content is the closing brace, so this
57+
// is an empty function and should have a blank line
58+
// between the opening and closing braces.
5959
return;
6060
}
6161

0 commit comments

Comments
 (0)