Normalize parenthesis if either opening or closing, not necessarily both

This commit is contained in:
2025-01-26 18:10:54 +01:00
parent ac7441e196
commit f286995656
@@ -26,7 +26,7 @@ trait ProjectsPumpTrait
}
// Normalize parenthesis
if (\str_contains($location, '(') && \str_contains($location, ')')) {
if (\str_contains($location, '(') || \str_contains($location, ')')) {
$location = \str_replace('(', ',', $location);
$location = \str_replace(')', '', $location);
}