Skip to content

Commit ad89d14

Browse files
Merge if() statements
1 parent 3f08935 commit ad89d14

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/Detector/Strategy/SuffixTreeStrategy.php

+8-10
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,14 @@ public function processFile(string $file, CodeCloneMap $result): void
5050
foreach (array_keys($tokens) as $key) {
5151
$token = $tokens[$key];
5252

53-
if (is_array($token)) {
54-
if (!isset($this->tokensIgnoreList[$token[0]])) {
55-
$this->word[] = new Token(
56-
$token[0],
57-
token_name($token[0]),
58-
$token[2],
59-
$file,
60-
$token[1]
61-
);
62-
}
53+
if (is_array($token) && !isset($this->tokensIgnoreList[$token[0]])) {
54+
$this->word[] = new Token(
55+
$token[0],
56+
token_name($token[0]),
57+
$token[2],
58+
$file,
59+
$token[1]
60+
);
6361
}
6462
}
6563

0 commit comments

Comments
 (0)