Completed
Push — master ( 7bfd63...14e19b )
by Steven
01:08
created

IpApiPro::url()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Stevebauman\Location\Drivers;
4
5
class IpApiPro extends IpApi
6
{
7
    /**
8
     * {@inheritDoc}
9
     */
10
    protected function url($ip)
11
    {
12
        $key = config('ip_api.token');
13
14
        return "https://pro.ip-api.com/json/{$ip}?key={$key}";
15
    }
16
}
17