Skip to content

Commit

Permalink
fix empty radius
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Baettig committed Jan 20, 2020
1 parent fb81c59 commit 7e0901f
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 65 deletions.
2 changes: 1 addition & 1 deletion app/SwissGeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function findCitiesNearPoint(float $x, float $y, float $radius): ?
return $cityArray;
}

public static function findCitiesNearAddress(string $location, float $radius): ?array
public static function findCitiesNearAddress(string $location, float $radius = 0): ?array
{
$currentLocation = self::findPointByAddress($location);
if (!$currentLocation) {
Expand Down
Loading

0 comments on commit 7e0901f

Please sign in to comment.