Skip to content

Commit

Permalink
#7170 Fixing latLong vs longLat.
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Aug 5, 2015
1 parent bfb8265 commit a350b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Validation/Validation.php
Expand Up @@ -1043,9 +1043,9 @@ public static function geoCoordinate($value, array $options = [])
{
$options += [
'latLong' => 'both',
'type' => 'longLat'
'type' => 'latLong'
];
if ($options['type'] === 'longLat') {
if ($options['type'] === 'latLong') {
if ($options['latLong'] === 'both') {
$pattern = '/^' . self::$_pattern['latitude'] . ',\s*' . self::$_pattern['longitude'] . '$/';
}
Expand Down

0 comments on commit a350b63

Please sign in to comment.