Completed
Pull Request — master (#86)
by Scott
01:49
created

En   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 44
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A providesLanguages() 0 8 1
A specialNumbers() 0 32 1
1
<?php
2
namespace Povils\PHPMND\Languages;
3
4
use Povils\PHPMND\Language;
5
6
class En extends Language
7
{
8
    public static function providesLanguages(): array
9
    {
10
        return [
11
            'en',
12
            'en_GB',
13
            'en_US'
14
        ];
15
    }
16
17
    public function specialNumbers(): array
18
    {
19
        return [
20
            2 => [
21
                'half',
22
            ],
23
            3 => [
24
                'third',
25
            ],
26
            7 => [
27
                'week',
28
            ],
29
            10 => [
30
                'tenth',
31
                'decile',
32
            ],
33
            24 => [
34
                'hours',
35
            ],
36
            28 => [
37
                'February',
38
            ],
39
            60 => [
40
                'second',
41
                'minute',
42
            ],
43
            100 => [
44
                'percent',
45
                'centile'
46
            ],
47
        ];
48
    }
49
}
50