From 68b1adb9926c3edd3e1c2025d88be9dd21cb775a Mon Sep 17 00:00:00 2001 From: Greg Sherwood Date: Tue, 5 Nov 2019 08:42:07 +1100 Subject: [PATCH] Coding standard fixes --- src/Tokenizers/PHP.php | 2 +- tests/Core/Tokenizer/BackfillFnTokenTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tokenizers/PHP.php b/src/Tokenizers/PHP.php index 7024cae254..16e01c9269 100644 --- a/src/Tokenizers/PHP.php +++ b/src/Tokenizers/PHP.php @@ -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']; diff --git a/tests/Core/Tokenizer/BackfillFnTokenTest.php b/tests/Core/Tokenizer/BackfillFnTokenTest.php index fcca65b45b..dc906c5030 100644 --- a/tests/Core/Tokenizer/BackfillFnTokenTest.php +++ b/tests/Core/Tokenizer/BackfillFnTokenTest.php @@ -32,7 +32,7 @@ public function dataBackfill() ['/* testFunctionName */'], ]; - }//end dataAnonClassNoParentheses() + }//end dataBackfill() /** @@ -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