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

UgSubdivisionCode::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 Uganda or not.
20
 *
21
 * ISO 3166-1 alpha-2: UG
22
 *
23
 * @see http://www.geonames.org/UG/administrative-division-uganda.html
24
 *
25
 * @author Henrique Moody <[email protected]>
26
 */
27
final class UgSubdivisionCode extends AbstractSearcher
28
{
29
    private const DATA =  [
30
       '101', // Kalangala
31
       '102', // Kampala
32
       '103', // Kiboga
33
       '104', // Luwero
34
       '105', // Masaka
35
       '106', // Mpigi
36
       '107', // Mubende
37
       '108', // Mukono
38
       '109', // Nakasongola
39
       '110', // Rakai
40
       '111', // Sembabule
41
       '112', // Kayunga
42
       '113', // Wakiso
43
       '114', // Lyantonde
44
       '115', // Mityana
45
       '116', // Nakaseke
46
       '117', // Buikwe
47
       '118', // Bukomansimbi
48
       '119', // Butambala
49
       '120', // Buvuma
50
       '121', // Gomba
51
       '122', // Kalungu
52
       '123', // Kyankwanzi
53
       '124', // Lwengo
54
       '125', // Kyotera
55
       '201', // Bugiri
56
       '202', // Busia
57
       '203', // Iganga
58
       '204', // Jinja
59
       '205', // Kamuli
60
       '206', // Kapchorwa
61
       '207', // Katakwi
62
       '208', // Kumi
63
       '209', // Mbale
64
       '210', // Pallisa
65
       '211', // Soroti
66
       '212', // Tororo
67
       '213', // Kaberamaido
68
       '214', // Mayuge
69
       '215', // Sironko
70
       '216', // Amuria
71
       '217', // Budaka
72
       '218', // Bududa
73
       '219', // Bukedea
74
       '220', // Bukwa
75
       '221', // Butaleja
76
       '222', // Kaliro
77
       '223', // Manafwa
78
       '224', // Namutumba
79
       '225', // Bulambuli
80
       '226', // Buyende
81
       '227', // Kibuku
82
       '228', // Kween
83
       '229', // Luuka
84
       '230', // Namayingo
85
       '231', // Ngora
86
       '232', // Serere
87
       '233', // Butebo
88
       '301', // Adjumani
89
       '302', // Apac
90
       '303', // Arua
91
       '304', // Gulu
92
       '305', // Kitgum
93
       '306', // Kotido
94
       '307', // Lira
95
       '308', // Moroto
96
       '309', // Moyo
97
       '310', // Nebbi
98
       '311', // Nakapiripirit
99
       '312', // Pader
100
       '313', // Yumbe
101
       '314', // Abim
102
       '315', // Amolatar
103
       '316', // Amuru
104
       '317', // Dokolo
105
       '318', // Kaabong
106
       '319', // Koboko
107
       '320', // Maracha
108
       '321', // Oyam
109
       '322', // Agago
110
       '323', // Alebtong
111
       '324', // Amudat
112
       '325', // Kole
113
       '326', // Lamwo
114
       '327', // Napak
115
       '328', // Nwoya
116
       '329', // Otuke
117
       '330', // Zombo
118
       '401', // Bundibugyo
119
       '402', // Bushenyi
120
       '403', // Hoima
121
       '404', // Kabale
122
       '405', // Kabarole
123
       '406', // Kasese
124
       '407', // Kibaale
125
       '408', // Kisoro
126
       '409', // Masindi
127
       '410', // Mbarara
128
       '411', // Ntungamo
129
       '412', // Rukungiri
130
       '413', // Kamwenge
131
       '414', // Kanungu
132
       '415', // Kyenjojo
133
       '416', // Buliisa
134
       '417', // Ibanda
135
       '418', // Isingiro
136
       '419', // Kiruhura
137
       '420', // Buhweju
138
       '421', // Kiryandongo
139
       '422', // Kyegegwa
140
       '423', // Mitoma
141
       '424', // Ntoroko
142
       '425', // Rubirizi
143
       '426', // Sheema
144
       'C', // Central
145
       'E', // Eastern
146
       'N', // Northern
147
       'W', // Western
148
    ];
149
150
    /**
151
     * {@inheritdoc}
152
     */
153
    protected function getDataSource(): array
154
    {
155
        return self::DATA;
156
    }
157
}
158