Use is_numeric instead of ctype to check for decimal and integers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user