Use is_numeric instead of ctype to check for decimal and integers

This commit is contained in:
2025-01-26 18:19:58 +01:00
parent f286995656
commit 0646482770
@@ -40,7 +40,7 @@ trait ProjectsPumpTrait
// Clean non desired remaining location pieces
$location = \array_filter($location, function ($l) {
if (empty($l)) return false;
if (ctype_digit($l)) return false;
if (is_numeric($l)) return false;
if (\str_contains($l, 'º')) return false;
return true;