Skip to content

Commit 6792680

Browse files
committed
Tokenizer/ErrorSuppression: minor optimization
1 parent efae257 commit 6792680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tokenizers/Tokenizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ private function createPositionMap()
255255
) {
256256
$ignoring = ['all' => true];
257257
if ($ownLine === true) {
258-
$this->ignoredLines[$this->tokens[$i]['line']] = ['all' => true];
258+
$this->ignoredLines[$this->tokens[$i]['line']] = $ignoring;
259259
}
260260
} else if ($ignoring !== null
261261
&& strpos($commentText, '@codingStandardsIgnoreEnd') !== false
@@ -272,7 +272,7 @@ private function createPositionMap()
272272
) {
273273
$ignoring = ['all' => true];
274274
if ($ownLine === true) {
275-
$this->ignoredLines[$this->tokens[$i]['line']] = ['all' => true];
275+
$this->ignoredLines[$this->tokens[$i]['line']] = $ignoring;
276276
$this->ignoredLines[($this->tokens[$i]['line'] + 1)] = $ignoring;
277277
} else {
278278
$this->ignoredLines[$this->tokens[$i]['line']] = $ignoring;

0 commit comments

Comments
 (0)