Completed
Push — master ( 4a3e49...406f94 )
by Alejandro
16s queued 12s
created

EmptyIpLocationResolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A resolveIpLocation() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Shlinkio\Shlink\IpGeolocation\Resolver;
5
6
use Shlinkio\Shlink\Common\Exception\WrongIpException;
7
use Shlinkio\Shlink\IpGeolocation\Model;
8
use Shlinkio\Shlink\IpGeolocation\Resolver\IpLocationResolverInterface;
9
10
class EmptyIpLocationResolver implements IpLocationResolverInterface
11
{
12
    /**
13
     * @throws WrongIpException
14
     */
15 6
    public function resolveIpLocation(string $ipAddress): Model\Location
16
    {
17 6
        return Model\Location::emptyInstance();
18
    }
19
}
20