Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class MaxMindOptions implements RemoteServicesOptions |
||
9 | { |
||
10 | public function isEnabled(): bool |
||
11 | { |
||
12 | return (bool)(Config('geolocation.maxmind.enabled') ?? false); |
||
|
|||
13 | } |
||
14 | |||
15 | public function getSort(): int |
||
16 | { |
||
17 | return (int)(Config('geolocation.maxmind.sort') ?? 0); |
||
18 | } |
||
19 | |||
20 | public function getKey(): string |
||
21 | { |
||
22 | return 'Token ' . Config('geolocation.maxmind.key'); |
||
23 | } |
||
24 | |||
25 | public function getUrl(): string |
||
28 | } |
||
29 | } |
||
30 |