Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c153728

Browse files
committed
phpcs
1 parent a18c73c commit c153728

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

‎InfinityloopCodingStandard/Sniffs/Classes/FinalClassVisibilitySniff.php‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ public function process(\PHP_CodeSniffer\Files\File $phpcsFile, $variablePointer
7272
$phpcsFile->fixer->endChangeset();
7373
}
7474

75-
/**
76-
* @return int|bool|null
77-
*/
78-
private function findVisibilityPointer(\PHP_CodeSniffer\Files\File $phpcsFile, $variablePointer)
75+
private function findVisibilityPointer(\PHP_CodeSniffer\Files\File $phpcsFile, $variablePointer) : int|bool|null
7976
{
8077
$visibilityPointer = $phpcsFile->findPrevious([\T_PUBLIC, \T_PROTECTED, \T_PRIVATE], $variablePointer);
8178

‎InfinityloopCodingStandard/Sniffs/ControlStructures/SwitchCommentSpacingSniff.php‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,7 @@ public function process(\PHP_CodeSniffer\Files\File $phpcsFile, $stackPtr) : voi
127127
}
128128
}
129129

130-
/**
131-
* @param \PHP_CodeSniffer\Files\File $phpcsFile
132-
* @param int|bool|null $stackPtr
133-
* @param int|null $end
134-
* @return bool|int
135-
*/
136-
private function findNextCase(\PHP_CodeSniffer\Files\File $phpcsFile, $stackPtr, ?int $end = null)
130+
private function findNextCase(\PHP_CodeSniffer\Files\File $phpcsFile, int|bool|null $stackPtr, ?int $end = null) : bool|int
137131
{
138132
$tokens = $phpcsFile->getTokens();
139133

‎InfinityloopCodingStandard/Sniffs/Namespaces/UseDoesNotStartWithBackslashSniff.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,28 @@ public function process(\PHP_CodeSniffer\Files\File $phpcsFile, $usePointer) : v
3131
$tokens = $phpcsFile->getTokens();
3232
$nextTokenPointer = TokenHelper::findNextEffective($phpcsFile, $usePointer + 1);
3333
\assert(\is_int($nextTokenPointer));
34-
34+
3535
if ($tokens[$nextTokenPointer]['code'] === \T_STRING
3636
&& ($tokens[$nextTokenPointer]['content'] === 'function' || $tokens[$nextTokenPointer]['content'] === 'const')
3737
) {
3838
$nextTokenPointer = TokenHelper::findNextEffective($phpcsFile, $nextTokenPointer + 1);
3939
\assert(\is_int($nextTokenPointer));
4040
}
41-
41+
4242
if ($tokens[$nextTokenPointer]['code'] === \T_NS_SEPARATOR) {
4343
return;
4444
}
45-
45+
4646
$fix = $phpcsFile->addFixableError(
4747
'Use statement must start with a backslash.',
4848
$nextTokenPointer,
4949
self::CODE_DOES_NOT_START_WITH_BACKSLASH,
5050
);
51-
51+
5252
if (!$fix) {
5353
return;
5454
}
55-
55+
5656
$phpcsFile->fixer->beginChangeset();
5757
$phpcsFile->fixer->addContentBefore($nextTokenPointer, '\\');
5858
$phpcsFile->fixer->endChangeset();

‎InfinityloopCodingStandard/Sniffs/WhiteSpace/MemberVarSpacingSniff.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class MemberVarSpacingSniff extends \PHP_CodeSniffer\Sniffs\AbstractVariableSnif
1414
* @return int|void
1515
*/
1616
//@phpcs:ignore Squiz.Commenting.FunctionComment.ScalarTypeHintMissing
17+
//@phpcs:ignore SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint
1718
protected function processMemberVar(\PHP_CodeSniffer\Files\File $phpcsFile, $stackPtr)
1819
{
1920
$tokens = $phpcsFile->getTokens();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /