@@ -223,7 +223,7 @@ |
||
| 223 | 223 | /** |
| 224 | 224 | * @param mixed $returnValue |
| 225 | 225 | * |
| 226 | - * @return \PHPUnit_Framework_MockObject_MockObject|GeoIP2Adapter |
|
| 226 | + * @return GeoIP2Adapter |
|
| 227 | 227 | */ |
| 228 | 228 | private function getGeoIP2AdapterMock($returnValue = '') |
| 229 | 229 | { |
@@ -12,18 +12,18 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Geocoder\Provider\GeoIP2\Tests; |
| 14 | 14 | |
| 15 | -use Geocoder\Collection; |
|
| 16 | -use Geocoder\IntegrationTest\BaseTestCase; |
|
| 17 | -use Geocoder\Location; |
|
| 18 | -use Geocoder\Query\GeocodeQuery; |
|
| 19 | -use Geocoder\Query\ReverseQuery; |
|
| 20 | -use Geocoder\Provider\GeoIP2\GeoIP2; |
|
| 21 | -use Geocoder\Provider\GeoIP2\GeoIP2Adapter; |
|
| 22 | 15 | use GeoIp2\Database\Reader; |
| 23 | 16 | use GeoIp2\Exception\AuthenticationException; |
| 24 | 17 | use GeoIp2\Exception\OutOfQueriesException; |
| 18 | +use Geocoder\Collection; |
|
| 25 | 19 | use Geocoder\Exception\InvalidCredentials; |
| 26 | 20 | use Geocoder\Exception\QuotaExceeded; |
| 21 | +use Geocoder\IntegrationTest\BaseTestCase; |
|
| 22 | +use Geocoder\Location; |
|
| 23 | +use Geocoder\Provider\GeoIP2\GeoIP2; |
|
| 24 | +use Geocoder\Provider\GeoIP2\GeoIP2Adapter; |
|
| 25 | +use Geocoder\Query\GeocodeQuery; |
|
| 26 | +use Geocoder\Query\ReverseQuery; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @author Jens Wiese <[email protected]> |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | use Geocoder\IntegrationTest\BaseTestCase; |
| 14 | 14 | use Geocoder\Location; |
| 15 | +use Geocoder\Provider\BingMaps\BingMaps; |
|
| 15 | 16 | use Geocoder\Query\GeocodeQuery; |
| 16 | 17 | use Geocoder\Query\ReverseQuery; |
| 17 | -use Geocoder\Provider\BingMaps\BingMaps; |
|
| 18 | 18 | |
| 19 | 19 | class BingMapsTest extends BaseTestCase |
| 20 | 20 | { |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | use Geocoder\Collection; |
| 16 | 16 | use Geocoder\IntegrationTest\BaseTestCase; |
| 17 | 17 | use Geocoder\Location; |
| 18 | +use Geocoder\Provider\ArcGISOnline\ArcGISOnline; |
|
| 18 | 19 | use Geocoder\Query\GeocodeQuery; |
| 19 | 20 | use Geocoder\Query\ReverseQuery; |
| 20 | -use Geocoder\Provider\ArcGISOnline\ArcGISOnline; |
|
| 21 | 21 | |
| 22 | 22 | class ArcGISOnlineTest extends BaseTestCase |
| 23 | 23 | { |
@@ -14,9 +14,9 @@ |
||
| 14 | 14 | |
| 15 | 15 | use Geocoder\Collection; |
| 16 | 16 | use Geocoder\IntegrationTest\BaseTestCase; |
| 17 | +use Geocoder\Provider\Mapzen\Mapzen; |
|
| 17 | 18 | use Geocoder\Query\GeocodeQuery; |
| 18 | 19 | use Geocoder\Query\ReverseQuery; |
| 19 | -use Geocoder\Provider\Mapzen\Mapzen; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @author Gary Gale <[email protected]> |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | use Geocoder\Collection; |
| 16 | 16 | use Geocoder\IntegrationTest\BaseTestCase; |
| 17 | 17 | use Geocoder\Location; |
| 18 | +use Geocoder\Provider\MaxMindBinary\MaxMindBinary; |
|
| 18 | 19 | use Geocoder\Query\GeocodeQuery; |
| 19 | 20 | use Geocoder\Query\ReverseQuery; |
| 20 | -use Geocoder\Provider\MaxMindBinary\MaxMindBinary; |
|
| 21 | 21 | |
| 22 | 22 | class MaxMindBinaryTest extends BaseTestCase |
| 23 | 23 | { |
@@ -16,12 +16,12 @@ |
||
| 16 | 16 | use Geocoder\Exception\InvalidArgument; |
| 17 | 17 | use Geocoder\Exception\InvalidServerResponse; |
| 18 | 18 | use Geocoder\Exception\UnsupportedOperation; |
| 19 | +use Geocoder\Http\Provider\AbstractHttpProvider; |
|
| 19 | 20 | use Geocoder\Model\Address; |
| 20 | 21 | use Geocoder\Model\AddressCollection; |
| 22 | +use Geocoder\Provider\Provider; |
|
| 21 | 23 | use Geocoder\Query\GeocodeQuery; |
| 22 | 24 | use Geocoder\Query\ReverseQuery; |
| 23 | -use Geocoder\Http\Provider\AbstractHttpProvider; |
|
| 24 | -use Geocoder\Provider\Provider; |
|
| 25 | 25 | use Http\Client\HttpClient; |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -15,10 +15,10 @@ |
||
| 15 | 15 | use Geocoder\Exception\InvalidServerResponse; |
| 16 | 16 | use Geocoder\IntegrationTest\BaseTestCase; |
| 17 | 17 | use Geocoder\Location; |
| 18 | +use Geocoder\Provider\GoogleMaps\GoogleMaps; |
|
| 18 | 19 | use Geocoder\Provider\GoogleMaps\Model\GoogleAddress; |
| 19 | 20 | use Geocoder\Query\GeocodeQuery; |
| 20 | 21 | use Geocoder\Query\ReverseQuery; |
| 21 | -use Geocoder\Provider\GoogleMaps\GoogleMaps; |
|
| 22 | 22 | use Psr\Http\Message\RequestInterface; |
| 23 | 23 | |
| 24 | 24 | class GoogleMapsTest extends BaseTestCase |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @param mixed $value |
|
| 44 | + * @param double $value |
|
| 45 | 45 | * @param string $message |
| 46 | 46 | */ |
| 47 | 47 | public static function notNull($value, string $message = '') |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @param $value |
|
| 60 | + * @param double $value |
|
| 61 | 61 | * @param $message |
| 62 | 62 | */ |
| 63 | 63 | private static function float($value, string $message) |
@@ -13,10 +13,10 @@ |
||
| 13 | 13 | namespace Geocoder\Provider\Chain\Tests; |
| 14 | 14 | |
| 15 | 15 | use Geocoder\Model\AddressCollection; |
| 16 | +use Geocoder\Provider\Chain\Chain; |
|
| 17 | +use Geocoder\Provider\Provider; |
|
| 16 | 18 | use Geocoder\Query\GeocodeQuery; |
| 17 | 19 | use Geocoder\Query\ReverseQuery; |
| 18 | -use Geocoder\Provider\Provider; |
|
| 19 | -use Geocoder\Provider\Chain\Chain; |
|
| 20 | 20 | use Nyholm\NSA; |
| 21 | 21 | use PHPUnit\Framework\TestCase; |
| 22 | 22 | |