File tree Expand file tree Collapse file tree 9 files changed +21
-21
lines changed Expand file tree Collapse file tree 9 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 33namespace PulkitJalan \GeoIP \Console ;
44
55use Illuminate \Console \Command ;
6- use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
7- use PulkitJalan \GeoIP \Exceptions \InvalidDatabaseException ;
86use PulkitJalan \GeoIP \GeoIPUpdater ;
7+ use PulkitJalan \GeoIP \Exceptions \InvalidDatabaseException ;
8+ use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
99
1010class UpdateCommand extends Command
1111{
Original file line number Diff line number Diff line change 22
33namespace PulkitJalan \GeoIP \Drivers ;
44
5- use GuzzleHttp \Exception \RequestException ;
65use Illuminate \Support \Arr ;
6+ use GuzzleHttp \Exception \RequestException ;
77use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
88
99class IpStackDriver extends AbstractGeoIPDriver
Original file line number Diff line number Diff line change 22
33namespace PulkitJalan \GeoIP \Drivers ;
44
5- use GeoIp2 \WebService \Client ;
65use Illuminate \Support \Arr ;
6+ use GeoIp2 \WebService \Client ;
77use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
88
99class MaxmindApiDriver extends MaxmindDriver
Original file line number Diff line number Diff line change 44
55use GeoIp2 \Database \Reader ;
66use Illuminate \Support \Arr ;
7- use MaxMind \Db \Reader \InvalidDatabaseException as MaxMindInvalidDatabaseException ;
8- use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
97use PulkitJalan \GeoIP \Exceptions \InvalidDatabaseException ;
8+ use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
9+ use MaxMind \Db \Reader \InvalidDatabaseException as MaxMindInvalidDatabaseException ;
1010
1111class MaxmindDatabaseDriver extends MaxmindDriver
1212{
Original file line number Diff line number Diff line change 22
33namespace PulkitJalan \GeoIP \Drivers ;
44
5- use GuzzleHttp \Exception \RequestException ;
65use Illuminate \Support \Arr ;
6+ use GuzzleHttp \Exception \RequestException ;
77use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
88
99class TelizeDriver extends AbstractGeoIPDriver
Original file line number Diff line number Diff line change 44
55use Illuminate \Support \Arr ;
66use Illuminate \Support \Str ;
7- use PulkitJalan \GeoIP \Drivers \AbstractGeoIPDriver ;
87use PulkitJalan \GeoIP \Drivers \IPApiDriver ;
8+ use PulkitJalan \GeoIP \Drivers \TelizeDriver ;
99use PulkitJalan \GeoIP \Drivers \IpStackDriver ;
1010use PulkitJalan \GeoIP \Drivers \MaxmindApiDriver ;
11+ use PulkitJalan \GeoIP \Drivers \AbstractGeoIPDriver ;
1112use PulkitJalan \GeoIP \Drivers \MaxmindDatabaseDriver ;
12- use PulkitJalan \GeoIP \Drivers \TelizeDriver ;
1313use PulkitJalan \GeoIP \Exceptions \InvalidDriverException ;
1414
1515class GeoIPManager
Original file line number Diff line number Diff line change 22
33namespace PulkitJalan \GeoIP ;
44
5+ use PharData ;
56use Exception ;
6- use GuzzleHttp \Client as GuzzleClient ;
77use Illuminate \Support \Arr ;
8- use PharData ;
9- use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
8+ use GuzzleHttp \Client as GuzzleClient ;
109use PulkitJalan \GeoIP \Exceptions \InvalidDatabaseException ;
10+ use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
1111
1212class GeoIPUpdater
1313{
Original file line number Diff line number Diff line change 44
55use BadMethodCallException ;
66use Illuminate \Support \Arr ;
7+ use PulkitJalan \GeoIP \GeoIP ;
78use PHPUnit \Framework \TestCase ;
89use PulkitJalan \GeoIP \Exceptions \GeoIPException ;
9- use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
10- use PulkitJalan \GeoIP \Exceptions \InvalidDatabaseException ;
1110use PulkitJalan \GeoIP \Exceptions \InvalidDriverException ;
12- use PulkitJalan \GeoIP \GeoIP ;
11+ use PulkitJalan \GeoIP \Exceptions \InvalidDatabaseException ;
12+ use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
1313
1414class GeoIPTest extends TestCase
1515{
Original file line number Diff line number Diff line change 22
33namespace PulkitJalan \GeoIP \Tests ;
44
5- use Exception ;
6- use GuzzleHttp \Client as GuzzleClient ;
7- use GuzzleHttp \Psr7 \Response ;
8- use Mockery ;
95use Phar ;
6+ use Mockery ;
107use PharData ;
8+ use Exception ;
9+ use GuzzleHttp \Psr7 \Response ;
1110use PHPUnit \Framework \TestCase ;
12- use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
13- use PulkitJalan \GeoIP \Exceptions \InvalidDatabaseException ;
1411use PulkitJalan \GeoIP \GeoIPUpdater ;
12+ use GuzzleHttp \Client as GuzzleClient ;
13+ use PulkitJalan \GeoIP \Exceptions \InvalidDatabaseException ;
14+ use PulkitJalan \GeoIP \Exceptions \InvalidCredentialsException ;
1515
1616class GeoIPUpdaterTest extends TestCase
1717{
You can’t perform that action at this time.
0 commit comments