Skip to content

Commit

Permalink
feat: remove unnecessary provider interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Mar 2, 2024
1 parent 0b3f8e4 commit 1ca20f8
Show file tree
Hide file tree
Showing 36 changed files with 6 additions and 42 deletions.
1 change: 0 additions & 1 deletion src/Provider/AlgoliaPlaces/AlgoliaPlaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Geocoder\Model\Address;
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/ArcGISOnline/ArcGISOnline.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
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 Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/AzureMaps/AzureMaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Geocoder\Location;
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/BingMaps/BingMaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Geocoder\Http\Provider\AbstractHttpProvider;
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/FreeGeoIp/FreeGeoIp.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Geocoder\Http\Provider\AbstractHttpProvider;
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
3 changes: 1 addition & 2 deletions src/Provider/GeoIP2/GeoIP2.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Geocoder\Model\Address;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\AbstractProvider;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use GeoIp2\Exception\AddressNotFoundException;
Expand All @@ -29,7 +28,7 @@
/**
* @author Jens Wiese <[email protected]>
*/
final class GeoIP2 extends AbstractProvider implements Provider
final class GeoIP2 extends AbstractProvider
{
/**
* @var GeoIP2Adapter
Expand Down
1 change: 0 additions & 1 deletion src/Provider/GeoIPs/GeoIPs.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
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 Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/GeoPlugin/GeoPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
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;

Expand Down
3 changes: 1 addition & 2 deletions src/Provider/GeocodeEarth/GeocodeEarth.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
use Geocoder\Collection;
use Geocoder\Exception\InvalidCredentials;
use Geocoder\Provider\Pelias\Pelias;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;

final class GeocodeEarth extends Pelias implements Provider
final class GeocodeEarth extends Pelias
{
public const API_URL = 'https://api.geocode.earth/';

Expand Down
3 changes: 1 addition & 2 deletions src/Provider/Geoip/Geoip.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Geocoder\Model\Address;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\AbstractProvider;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;

Expand All @@ -27,7 +26,7 @@
*
* @see http://php.net/manual/ref.geoip.php
*/
final class Geoip extends AbstractProvider implements Provider
final class Geoip extends AbstractProvider
{
public function __construct()
{
Expand Down
1 change: 0 additions & 1 deletion src/Provider/Geonames/Geonames.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use Geocoder\Model\AdminLevelCollection;
use Geocoder\Provider\Geonames\Model\CountryInfo;
use Geocoder\Provider\Geonames\Model\GeonamesAddress;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/GoogleMaps/GoogleMaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\GoogleMaps\Model\GoogleAddress;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/GoogleMapsPlaces/GoogleMapsPlaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use Geocoder\Provider\GoogleMapsPlaces\Model\OpeningHours;
use Geocoder\Provider\GoogleMapsPlaces\Model\Photo;
use Geocoder\Provider\GoogleMapsPlaces\Model\PlusCode;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\Query;
use Geocoder\Query\ReverseQuery;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/GraphHopper/GraphHopper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Geocoder\Model\Address;
use Geocoder\Model\AddressCollection;
use Geocoder\Model\Bounds;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/Here/Here.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Here\Model\HereAddress;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\Query;
use Geocoder\Query\ReverseQuery;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/HostIp/AbstractHostIp.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
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;

Expand Down
1 change: 0 additions & 1 deletion src/Provider/IP2Location/IP2Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
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 Psr\Http\Client\ClientInterface;
Expand Down
3 changes: 1 addition & 2 deletions src/Provider/IP2LocationBinary/IP2LocationBinary.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
use Geocoder\Model\Address;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\AbstractProvider;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;

final class IP2LocationBinary extends AbstractProvider implements Provider
final class IP2LocationBinary extends AbstractProvider
{
/**
* @var string
Expand Down
1 change: 0 additions & 1 deletion src/Provider/IpInfo/IpInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
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;

Expand Down
1 change: 0 additions & 1 deletion src/Provider/IpInfoDb/IpInfoDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
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 Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/Ipstack/Ipstack.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
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 Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/LocationIQ/LocationIQ.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Geocoder\Location;
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/MapQuest/MapQuest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use Geocoder\Model\AdminLevel;
use Geocoder\Model\Bounds;
use Geocoder\Model\Country;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/MapTiler/MapTiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Model\Bounds;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/Mapbox/Mapbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Mapbox\Model\MapboxAddress;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/Mapzen/Mapzen.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
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 Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/MaxMind/MaxMind.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
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 Psr\Http\Client\ClientInterface;
Expand Down
3 changes: 1 addition & 2 deletions src/Provider/MaxMindBinary/MaxMindBinary.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
use Geocoder\Model\Address;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\AbstractProvider;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;

final class MaxMindBinary extends AbstractProvider implements Provider
final class MaxMindBinary extends AbstractProvider
{
/**
* @var string
Expand Down
1 change: 0 additions & 1 deletion src/Provider/Nominatim/Nominatim.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Nominatim\Model\NominatimAddress;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/OpenCage/OpenCage.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\OpenCage\Model\OpenCageAddress;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
3 changes: 1 addition & 2 deletions src/Provider/OpenRouteService/OpenRouteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
use Geocoder\Collection;
use Geocoder\Exception\InvalidCredentials;
use Geocoder\Provider\Pelias\Pelias;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;

final class OpenRouteService extends Pelias implements Provider
final class OpenRouteService extends Pelias
{
public const API_URL = 'https://api.openrouteservice.org/geocode';

Expand Down
1 change: 0 additions & 1 deletion src/Provider/Pelias/Pelias.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
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 Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/Photon/Photon.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Photon\Model\PhotonAddress;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/PickPoint/PickPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Geocoder\Location;
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/TomTom/TomTom.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
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 Psr\Http\Client\ClientInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Provider/Yandex/Yandex.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Geocoder\Http\Provider\AbstractHttpProvider;
use Geocoder\Model\AddressBuilder;
use Geocoder\Model\AddressCollection;
use Geocoder\Provider\Provider;
use Geocoder\Provider\Yandex\Model\YandexAddress;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
Expand Down

0 comments on commit 1ca20f8

Please sign in to comment.