Skip to content

Commit e3a3488

Browse files
gmazzaptfrommen
andauthored
Simplify condition in Inpsyde/Helpers/Names
Co-authored-by: Thorsten Frommen <info@tfrommen.de> Signed-off-by: Giuseppe Mazzapica <giuseppe.mazzapica@gmail.com>
1 parent 4f6cff1 commit e3a3488

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Inpsyde/Helpers/Names.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ public static function nameableTokenName(File $file, int $position): ?string
6464

6565
if (!in_array($code, self::NAMEABLE_TOKENS, true)) {
6666
return null;
67-
} elseif ($code === T_VARIABLE) {
67+
}
68+
69+
if ($code === T_VARIABLE) {
6870
$name = ltrim((string)($tokens[$position]['content'] ?? ''), '$');
6971

7072
return ($name === '') ? null : $name;

0 commit comments

Comments
 (0)