diff --git a/src/Standards/Typo3Update/Sniffs/Removed/TypoScriptSniff.php b/src/Standards/Typo3Update/Sniffs/Removed/TypoScriptSniff.php index 7ce75bb..a4cd3e4 100644 --- a/src/Standards/Typo3Update/Sniffs/Removed/TypoScriptSniff.php +++ b/src/Standards/Typo3Update/Sniffs/Removed/TypoScriptSniff.php @@ -91,13 +91,13 @@ class Typo3Update_Sniffs_Removed_TypoScriptSniff extends AbstractGenericUsage { $tokens = $phpcsFile->getTokens(); $token = $tokens[$stackPtr]; - $objectIdentifiersToLoopUp = [$token['content']]; + $identifiersToCheck = [$token['content']]; if (isset($token[FQObjectIdentifier::IDENTIFIER]) && $token[FQObjectIdentifier::IDENTIFIER] !== $token['content']) { - $objectIdentifiersToLoopUp[] = $token[FQObjectIdentifier::IDENTIFIER]; + $identifiersToCheck[] = $token[FQObjectIdentifier::IDENTIFIER]; } - foreach ($objectIdentifiersToLoopUp as $objectIdentifier) { + foreach ($identifiersToCheck as $objectIdentifier) { if (isset($this->configured[$objectIdentifier]) && $token['type'] === $this->configured[$objectIdentifier]['type']) { $this->removed = [ $this->configured[$objectIdentifier] diff --git a/tests/CodeSniffer/Tokenizers/FqObjectIdentifierTest.php b/tests/CodeSniffer/Tokenizers/FqObjectIdentifierTest.php index 805ec06..9115c7f 100644 --- a/tests/CodeSniffer/Tokenizers/FqObjectIdentifierTest.php +++ b/tests/CodeSniffer/Tokenizers/FqObjectIdentifierTest.php @@ -132,7 +132,7 @@ class FqObjectIdentifierTest extends TestCase /** * @test */ - public function AddingPathSegmentAfterAnotherResetsPath() + public function addingPathSegmentAfterAnotherResetsPath() { $initialToken = [ 'type' => TokenInterface::TYPE_OBJECT_IDENTIFIER,