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

EmptyIpLocationResolver::resolveIpLocation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 8
nc 1
nop 1
dl 0
loc 10
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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