Skip to content

Commit 877efff

Browse files
Updating the package
1 parent 7d7c011 commit 877efff

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.scrutinizer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ checks:
2121

2222
tools:
2323
external_code_coverage:
24-
timeout: 600
25-
runs: 6
24+
timeout: 900
25+
runs: 9
2626
php_code_sniffer:
2727
enabled: true
2828
config:

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2016 ARCANEDEV <arcanedev.maroc@gmail.com> - GeoIP
3+
Copyright (c) 2015-2017 ARCANEDEV <arcanedev.maroc@gmail.com> - GeoIP
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/GeoIPServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public function boot()
7878
public function provides()
7979
{
8080
return [
81-
'geoip',
8281
Contracts\GeoIP::class,
8382
Contracts\DriverFactory::class,
8483
Contracts\GeoIPDriver::class,
@@ -98,7 +97,10 @@ private function registerGeoIpManager()
9897
{
9998
$this->singleton(Contracts\DriverFactory::class, DriverManager::class);
10099
$this->singleton(Contracts\GeoIPDriver::class, function ($app) {
101-
return $app[Contracts\DriverFactory::class]->driver();
100+
/** @var \Arcanedev\GeoIP\Contracts\DriverFactory $manager */
101+
$manager = $app[Contracts\DriverFactory::class];
102+
103+
return $manager->driver();
102104
});
103105
}
104106

@@ -112,7 +114,7 @@ private function registerGeoIpCache()
112114
$config = $app['config'];
113115

114116
return new Cache(
115-
$this->app['cache.store'],
117+
$app['cache.store'],
116118
$config->get('geoip.cache.tags', []),
117119
$config->get('geoip.cache.expires', 30)
118120
);
@@ -134,7 +136,5 @@ private function registerGeoIp()
134136
Arr::only($config->get('geoip', []), ['cache', 'location', 'currencies'])
135137
);
136138
});
137-
138-
$this->singleton('arcanedev.geoip', Contracts\GeoIP::class);
139139
}
140140
}

tests/GeoIPServiceProviderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public function it_can_be_instantiated()
5656
public function it_can_provides()
5757
{
5858
$expected = [
59-
'geoip',
6059
\Arcanedev\GeoIP\Contracts\GeoIP::class,
6160
\Arcanedev\GeoIP\Contracts\DriverFactory::class,
6261
\Arcanedev\GeoIP\Contracts\GeoIPDriver::class,

0 commit comments

Comments
 (0)