Passed
Pull Request — develop (#51)
by Kevin
06:34
created

CanadianProvinces   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 23
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSourceData() 0 18 1
1
<?php
2
3
namespace Magium\Configuration\Source\Political;
4
5
use Magium\Configuration\Source\SourceInterface;
6
7
class CanadianProvinces implements SourceInterface
8
{
9
10
    public function getSourceData()
11
    {
12
        return [
13
            'AB' => 'Alberta',
14
            'BC' => 'British Columbia',
15
            'MB' => 'Manitoba',
16
            'NB' => 'New Brunswick',
17
            'NL' => 'Newfoundland and Labrador',
18
            'NT' => 'Northwest Territories',
19
            'NS' => 'Nova Scotia',
20
            'NU' => 'Nunavut',
21
            'ON' => 'Ontario',
22
            'PE' => 'Prince Edward Island',
23
            'QC' => 'Quebec',
24
            'SK' => 'Saskatchewan',
25
            'YT' => 'Yukon'
26
        ];
27
    }
28
29
}
30