Skip to content

Commit

Permalink
Coding standard fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Nov 4, 2019
1 parent b74e813 commit 68b1adb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Tokenizers/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ protected function processAdditional()

$this->tokens[$i]['code'] = T_FN;
$this->tokens[$i]['type'] = 'T_FN';
$this->tokens[$i]['parenthesis_owner'] = $i;
$this->tokens[$i]['parenthesis_owner'] = $i;
$this->tokens[$i]['parenthesis_opener'] = $x;
$this->tokens[$i]['parenthesis_closer'] = $this->tokens[$x]['parenthesis_closer'];

Expand Down
4 changes: 2 additions & 2 deletions tests/Core/Tokenizer/BackfillFnTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function dataBackfill()
['/* testFunctionName */'],
];

}//end dataAnonClassNoParentheses()
}//end dataBackfill()


/**
Expand Down Expand Up @@ -63,7 +63,7 @@ public function testBackfill($testMarker)
$this->assertTrue(array_key_exists('parenthesis_owner', $tokens[$closer]), 'Closing parenthesis owner is not set');
$this->assertSame($tokens[$closer]['parenthesis_owner'], $token, 'Closing parenthesis owner is not the T_FN token');

}//end testAnonClassNoParentheses()
}//end testBackfill()


}//end class

0 comments on commit 68b1adb

Please sign in to comment.