diff --git a/Tests/TomTomTest.php b/Tests/TomTomTest.php index a169bc5..d10d011 100644 --- a/Tests/TomTomTest.php +++ b/Tests/TomTomTest.php @@ -15,9 +15,9 @@ use Geocoder\Collection; use Geocoder\IntegrationTest\BaseTestCase; use Geocoder\Location; +use Geocoder\Provider\TomTom\TomTom; use Geocoder\Query\GeocodeQuery; use Geocoder\Query\ReverseQuery; -use Geocoder\Provider\TomTom\TomTom; class TomTomTest extends BaseTestCase { diff --git a/TomTom.php b/TomTom.php index 4855fd6..91de36a 100644 --- a/TomTom.php +++ b/TomTom.php @@ -15,12 +15,12 @@ use Geocoder\Collection; use Geocoder\Exception\InvalidCredentials; use Geocoder\Exception\UnsupportedOperation; +use Geocoder\Http\Provider\AbstractHttpProvider; use Geocoder\Model\Address; use Geocoder\Model\AddressCollection; +use Geocoder\Provider\Provider; use Geocoder\Query\GeocodeQuery; use Geocoder\Query\ReverseQuery; -use Geocoder\Http\Provider\AbstractHttpProvider; -use Geocoder\Provider\Provider; use Psr\Http\Client\ClientInterface; /** @@ -31,12 +31,12 @@ final class TomTom extends AbstractHttpProvider implements Provider /** * @var string */ - const GEOCODE_ENDPOINT_URL = 'https://api.tomtom.com/search/2/geocode/%s.json?key=%s&limit=%d'; + public const GEOCODE_ENDPOINT_URL = 'https://api.tomtom.com/search/2/geocode/%s.json?key=%s&limit=%d'; /** * @var string */ - const REVERSE_ENDPOINT_URL = 'https://api.tomtom.com/search/2/reverseGeocode/%F,%F.json?key=%s'; + public const REVERSE_ENDPOINT_URL = 'https://api.tomtom.com/search/2/reverseGeocode/%F,%F.json?key=%s'; /** * @var string @@ -57,9 +57,6 @@ public function __construct(ClientInterface $client, string $apiKey) parent::__construct($client); } - /** - * {@inheritdoc} - */ public function geocodeQuery(GeocodeQuery $query): Collection { $address = $query->getText(); @@ -108,9 +105,6 @@ public function geocodeQuery(GeocodeQuery $query): Collection return new AddressCollection($locations); } - /** - * {@inheritdoc} - */ public function reverseQuery(ReverseQuery $query): Collection { $coordinates = $query->getCoordinates(); @@ -152,9 +146,6 @@ public function reverseQuery(ReverseQuery $query): Collection return new AddressCollection($locations); } - /** - * {@inheritdoc} - */ public function getName(): string { return 'tomtom';