Skip to content

Commit

Permalink
Merge pull request #11 from ankurk91/patch/geo
Browse files Browse the repository at this point in the history
Fix issue with GEO property #10
  • Loading branch information
rubenvanassche authored Jan 7, 2020
2 parents 87a3bc4 + 35af65a commit a91b6e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PropertyTypes/CoordinatesPropertyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct($names, float $lat, float $lng)

public function getValue(): string
{
return "{$this->lat},{$this->lng}";
return "{$this->lat};{$this->lng}";
}

public function getOriginalValue(): array
Expand Down
2 changes: 1 addition & 1 deletion tests/Components/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function it_can_generate_an_apple_structured_location()

$property = $payload->getProperty('X-APPLE-STRUCTURED-LOCATION');

$this->assertEquals('51.2343,4.4287', $property->getValue());
$this->assertEquals('51.2343;4.4287', $property->getValue());
$this->assertEquals([
'lat' => 51.2343,
'lng' => 4.4287,
Expand Down
2 changes: 1 addition & 1 deletion tests/PropertyTypes/CoordinatesPropertyTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function it_can_create_a_coordinates_property_type()
$propertyType = new CoordinatesPropertyType('GEO', 10.5, 20.5);

$this->assertEquals(['GEO'], $propertyType->getNames());
$this->assertEquals('10.5,20.5', $propertyType->getValue());
$this->assertEquals('10.5;20.5', $propertyType->getValue());
$this->assertEquals([
'lat' => 10.5,
'lng' => 20.5,
Expand Down

0 comments on commit a91b6e5

Please sign in to comment.