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 (#1034)
by Henrique
02:29
created

HuSubdivisionCode::getDataSource()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 46

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 46
rs 9.1781
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 Hungary or not.
20
 *
21
 * ISO 3166-1 alpha-2: HU
22
 *
23
 * @see http://www.geonames.org/HU/administrative-division-hungary.html
24
 *
25
 * @author Henrique Moody <[email protected]>
26
 */
27
final class HuSubdivisionCode extends AbstractSearcher
28
{
29
    /**
30
     * {@inheritdoc}
31
     */
32
    protected function getDataSource(): array
33
    {
34
        return [
35
           'BA', // Baranya megye
36
           'BC', // Békéscsaba
37
           'BE', // Békés megye
38
           'BK', // Bács-Kiskun megye
39
           'BU', // Budapest főváros
40
           'BZ', // Borsod-Abaúj-Zemplén megye
41
           'CS', // Csongrád megye
42
           'DE', // Debrecen
43
           'DU', // Dunaújváros
44
           'EG', // Eger
45
           'ER', // Erd
46
           'FE', // Fejér megye
47
           'GS', // Győr-Moson-Sopron megye
48
           'GY', // Győr
49
           'HB', // Hajdú-Bihar megye
50
           'HE', // Heves megye
51
           'HV', // Hódmezővásárhely
52
           'JN', // Jász-Nagykun-Szolnok megye
53
           'KE', // Komárom-Esztergom megye
54
           'KM', // Kecskemét
55
           'KV', // Kaposvár
56
           'MI', // Miskolc
57
           'NK', // Nagykanizsa
58
           'NO', // Nógrád megye
59
           'NY', // Nyíregyháza
60
           'PE', // Pest megye
61
           'PS', // Pécs
62
           'SD', // Szeged
63
           'SF', // Székesfehérvár
64
           'SH', // Szombathely
65
           'SK', // Szolnok
66
           'SN', // Sopron
67
           'SO', // Somogy megye
68
           'SS', // Szekszárd
69
           'ST', // Salgótarján
70
           'SZ', // Szabolcs-Szatmár-Bereg megye
71
           'TB', // Tatabánya
72
           'TO', // Tolna megye
73
           'VA', // Vas megye
74
           'VE', // Veszprém megye
75
           'VM', // Veszprém
76
           'ZA', // Zala megye
77
           'ZE', // Zalaegerszeg
78
       ];
79
    }
80
}
81