Skip to content

Commit

Permalink
CS/QA: minor cleanup
Browse files Browse the repository at this point in the history
Remove a few unused variables.
  • Loading branch information
jrfnl committed Nov 11, 2024
1 parent 141ef43 commit 810e5eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions tests/Core/Tokenizers/PHP/BackfillFnTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,6 @@ public function testNamespaceOperatorInTypes()
*/
public function testKeywordReturnTypes($testMarker)
{
$tokens = $this->phpcsFile->getTokens();

$token = $this->getTargetToken($testMarker, T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 11, 14);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ public function testDNFTypeParentheses($testMarker)
$this->assertArrayHasKey('parenthesis_closer', $closer, 'Parenthesis closer is not set');
$this->assertSame($closePtr, $closer['parenthesis_closer'], 'Parenthesis closer is not the expected token');

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

0 comments on commit 810e5eb

Please sign in to comment.