Skip to content

Commit a10f01f

Browse files
committed
Cleanup
1 parent d593b26 commit a10f01f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SlevomatCodingStandard/Sniffs/Operators/RequireOnlyStandaloneIncrementAndDecrementOperatorsSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function process(File $phpcsFile, $operatorPointer): void
6464
$instructionEndPointer = $afterVariableEndPointer;
6565
}
6666

67-
if ($this->isSingleInstruction($phpcsFile, $instructionStartPointer, $instructionEndPointer)) {
67+
if ($this->isStandalone($phpcsFile, $instructionStartPointer, $instructionEndPointer)) {
6868
return;
6969
}
7070

@@ -89,7 +89,7 @@ public function process(File $phpcsFile, $operatorPointer): void
8989
$phpcsFile->addError($message, $operatorPointer, $code);
9090
}
9191

92-
private function isSingleInstruction(File $phpcsFile, int $instructionStartPointer, int $instructionEndPointer): bool
92+
private function isStandalone(File $phpcsFile, int $instructionStartPointer, int $instructionEndPointer): bool
9393
{
9494
$tokens = $phpcsFile->getTokens();
9595

0 commit comments

Comments
 (0)