Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#1191)
by mazen
03:20
created

GrSubdivisionCode::getDataSource()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of Respect/Validation.
5
 *
6
 * (c) Alexandre Gomes Gaigalas <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the "LICENSE.md"
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Respect\Validation\Rules\Locale;
15
16
use Respect\Validation\Rules\AbstractSearcher;
17
18
/**
19
 * Validates whether an input is subdivision code of Greece or not.
20
 *
21
 * ISO 3166-1 alpha-2: GR
22
 *
23
 * @see http://www.geonames.org/GR/administrative-division-greece.html
24
 *
25
 * @author Henrique Moody <[email protected]>
26
 */
27
final class GrSubdivisionCode extends AbstractSearcher
28
{
29
    private const DATA = [
30
        '01', // Nomós Aitolías kai Akarnanías
31
        '03', // Nomós Voiotías
32
        '04', // Nomós Evvoías
33
        '05', // Nomós Evrytanías
34
        '06', // Nomós Fthiótidos
35
        '07', // Nomós Fokídos
36
        '11', // Nomós Argolídos
37
        '12', // Nomós Arkadías
38
        '13', // Nomós Achaḯas
39
        '14', // Nomós Ileías
40
        '15', // Nomós Korinthías
41
        '16', // Nomós Lakonías
42
        '17', // Nomós Messinías
43
        '21', // Nomós Zakýnthou
44
        '22', // Nomós Kerkýras
45
        '23', // Nomós Kefallinías
46
        '24', // Nomós Lefkádas
47
        '31', // Nomós Ártis
48
        '32', // Nomós Thesprotías
49
        '33', // Nomós Ioannínon
50
        '34', // Nomós Prevézis
51
        '41', // Nomós Kardhítsas
52
        '42', // Nomós Larísis
53
        '43', // Nomós Magnisías
54
        '44', // Nomós Trikálon
55
        '51', // Nomós Grevenón
56
        '52', // Nomós Drámas
57
        '53', // Nomós Imathías
58
        '54', // Nomós Thessaloníkis
59
        '55', // Nomós Kaválas
60
        '56', // Nomós Kastoriás
61
        '57', // Nomós Kilkís
62
        '58', // Nomós Kozánis
63
        '59', // Nomós Péllis
64
        '61', // Nomós Pierías
65
        '62', // Nomós Serrón
66
        '63', // Nomós Florínis
67
        '64', // Nomós Chalkidikís
68
        '69', // Agio Oros
69
        '71', // Nomós Évrou
70
        '72', // Nomós Xánthis
71
        '73', // Nomós Rodópis
72
        '81', // Nomós Dodekanísou
73
        '82', // Nomós Kykládon
74
        '83', // Nomós Lésvou
75
        '84', // Nomós Sámou
76
        '85', // Nomós Chíou
77
        '91', // Nomós Irakleíou
78
        '92', // Nomós Lasithíou
79
        '93', // Nomós Rethýmnis
80
        '94', // Nomós Chaniás
81
        'A', // Anatoliki Makedonia kai Thraki
82
        'A1', // Nomós Attikís
83
        'B', // Kentriki Makedonia
84
        'C', // Dytiki Makedonia
85
        'D', // Ipeiros
86
        'E', // Thessalia
87
        'F', // Ionia Nisia
88
        'G', // Dytiki Ellada
89
        'H', // Sterea Ellada
90
        'I', // Attiki
91
        'J', // Peloponnisos
92
        'K', // Voreio Aigaio
93
        'L', // Notio Aigaio
94
        'M', // Kriti
95
    ];
96
    
97
    /**
98
     * {@inheritdoc}
99
     */
100
    protected function getDataSource(): array
101
    {
102
        return self::DATA;
103
    }
104
}
105