Skip to content

Commit

Permalink
[9] Simplify type match
Browse files Browse the repository at this point in the history
  • Loading branch information
denniseilander committed Jan 21, 2025
1 parent 9f1d15c commit 6dc4393
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AboutApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ public static function formatInformation(Collection $information): Collection
return match (true) {
is_bool($value) => $value === true ? 'Yes' : 'No',
is_array($value) => implode(', ', $value),
is_string($value) => $value,
is_int($value) => number_format($value),
$value === '', $value === null => '-',
is_string($value) => blank($value) ? '-' : $value,
default => (string) $value,
};
});
Expand Down

0 comments on commit 6dc4393

Please sign in to comment.