Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Aug 25, 2023
1 parent f2c35b3 commit 9bf1e9c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Inpsyde/PhpcsHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,13 +540,8 @@ public static function returnsCountInfo(File $file, int $position): array
/** @var array<int, array<string, mixed>> $tokens */
$tokens = $file->getTokens();

if (T_FN === $tokens[$position]['code'] ?? null) {
return [
'nonEmpty' => 1,
'void' => 0,
'null' => 0,
'total' => 1,
];
if (T_FN === ($tokens[$position]['code'] ?? null)) {
return ['nonEmpty' => 1, 'void' => 0, 'null' => 0, 'total' => 1];
}

$pos = $start + 1;
Expand Down

0 comments on commit 9bf1e9c

Please sign in to comment.