Skip to content

Commit 810e5eb

Browse files
committed
CS/QA: minor cleanup
Remove a few unused variables.
1 parent 141ef43 commit 810e5eb

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
@@ -405,8 +405,6 @@ public function testNamespaceOperatorInTypes()
405405
*/
406406
public function testKeywordReturnTypes($testMarker)
407407
{
408-
$tokens = $this->phpcsFile->getTokens();
409-
410408
$token = $this->getTargetToken($testMarker, T_FN);
411409
$this->backfillHelper($token);
412410
$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)