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

MtSubdivisionCode::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 Malta or not.
20
 *
21
 * ISO 3166-1 alpha-2: MT
22
 *
23
 * @see http://www.geonames.org/MT/administrative-division-malta.html
24
 *
25
 * @author Henrique Moody <[email protected]>
26
 */
27
final class MtSubdivisionCode extends AbstractSearcher
28
{
29
    private const DATA = [
30
        '01', // Attard
31
        '02', // Balzan
32
        '03', // Birgu
33
        '04', // Birkirkara
34
        '05', // Birzebbuga
35
        '06', // Bormla
36
        '07', // Dingli
37
        '08', // Fgura
38
        '09', // Floriana
39
        '10', // Fontana
40
        '11', // Gudja
41
        '12', // Gzira
42
        '13', // Ghajnsielem
43
        '14', // Gharb
44
        '15', // Gargur
45
        '16', // Ghasri
46
        '17', // Gaxaq
47
        '18', // Hamrun
48
        '19', // Iklin
49
        '20', // Isla
50
        '21', // Kalkara
51
        '22', // Kercem
52
        '23', // Kirkop
53
        '24', // Lija
54
        '25', // Luqa
55
        '26', // Marsa
56
        '27', // Marsaskala
57
        '28', // Marsaxlokk
58
        '29', // Mdina
59
        '30', // Melliea
60
        '31', // Mgarr
61
        '32', // Mosta
62
        '33', // Mqabba
63
        '34', // Msida
64
        '35', // Mtarfa
65
        '36', // Munxar
66
        '37', // Nadur
67
        '38', // Naxxar
68
        '39', // Paola
69
        '40', // Pembroke
70
        '41', // Pieta
71
        '42', // Qala
72
        '43', // Qormi
73
        '44', // Qrendi
74
        '45', // Rabat Għawdex
75
        '46', // Rabat Malta
76
        '47', // Safi
77
        '48', // San Giljan
78
        '49', // San Gwann
79
        '50', // San Lawrenz
80
        '51', // San Pawl il-Bahar
81
        '52', // Sannat
82
        '53', // Santa Lucija
83
        '54', // Santa Venera
84
        '55', // Siggiewi
85
        '56', // Sliema
86
        '57', // Swieqi
87
        '58', // Tarxien
88
        '59', // Ta Xbiex
89
        '60', // Valletta
90
        '61', // Xagra
91
        '62', // Xewkija
92
        '63', // Xgajra
93
        '64', // Zabbar
94
        '65', // Żebbuġ Għawdex
95
        '66', // Żebbuġ Malta
96
        '67', // Zejtun
97
        '68', // Zurrieq
98
    ];
99
    
100
    /**
101
     * {@inheritdoc}
102
     */
103
    protected function getDataSource(): array
104
    {
105
        return self::DATA;
106
    }
107
}
108