Completed
Push — master ( d0dd0d...df62c5 )
by ARCANEDEV
12s
created

Continents   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 20
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 6 1
1
<?php namespace Arcanedev\GeoIP\Entities;
2
3
use Arcanedev\Support\Collection;
4
5
/**
6
 * Class     Continents
7
 *
8
 * @package  Arcanedev\GeoIP\Entities
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class Continents extends Collection
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Constructor
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Make the continents collection.
19
     *
20
     * @param  array  $items
21
     *
22
     * @return self
23
     */
24 84
    public static function make($items = [])
25
    {
26 84
        return new static(
27 84
            config('geoip.continents', $items)
28 14
        );
29
    }
30
}
31