Skip to content

Commit 93c5098

Browse files
committed
CS/QA: minor cleanup
Remove a few unused variables.
1 parent b4ce110 commit 93c5098

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

tests/Core/Tokenizers/PHP/BackfillFnTokenTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,6 @@ public function testNamespaceOperatorInTypes()
461461
*/
462462
public function testKeywordReturnTypes($testMarker)
463463
{
464-
$tokens = $this->phpcsFile->getTokens();
465-
466464
$token = $this->getTargetToken($testMarker, T_FN);
467465
$this->backfillHelper($token);
468466
$this->scopePositionTestHelper($token, 11, 14);

tests/Core/Tokenizers/Tokenizer/CreateParenthesisNestingMapDNFTypesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ public function testDNFTypeParentheses($testMarker)
218218
$this->assertArrayHasKey('parenthesis_closer', $closer, 'Parenthesis closer is not set');
219219
$this->assertSame($closePtr, $closer['parenthesis_closer'], 'Parenthesis closer is not the expected token');
220220

221-
$intersectionCount = 0;
222221
for ($i = ($openPtr + 1); $i < $closePtr; $i++) {
223222
$this->assertArrayHasKey('nested_parenthesis', $tokens[$i], "Nested parenthesis key not set on token $i ({$tokens[$i]['type']})");
224223
$this->assertArrayHasKey($openPtr, $tokens[$i]['nested_parenthesis'], 'Nested parenthesis is missing target parentheses set');

0 commit comments

Comments
 (0)