Completed
Push — master ( 235830...d4758b )
by Alejandro
15s queued 11s
created

EmptyIpLocationResolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A resolveIpLocation() 0 10 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Shlinkio\Shlink\Common\IpGeolocation;
5
6
use Shlinkio\Shlink\Common\Exception\WrongIpException;
7
8
class EmptyIpLocationResolver implements IpLocationResolverInterface
9
{
10
    /**
11
     * @throws WrongIpException
12
     */
13 6
    public function resolveIpLocation(string $ipAddress): array
14
    {
15
        return [
16 6
            'country_code' => '',
17
            'country_name' => '',
18
            'region_name' => '',
19
            'city' => '',
20
            'latitude' => '',
21
            'longitude' => '',
22
            'time_zone' => '',
23
        ];
24
    }
25
}
26