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

MdSubdivisionCode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 45
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDataSource() 0 40 1
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 Moldova or not.
20
 *
21
 * ISO 3166-1 alpha-2: MD
22
 *
23
 * @see http://www.geonames.org/MD/administrative-division-moldova.html
24
 *
25
 * @author Henrique Moody <[email protected]>
26
 */
27
final class MdSubdivisionCode extends AbstractSearcher
28
{
29
    /**
30
     * {@inheritdoc}
31
     */
32
    protected function getDataSource(): array
33
    {
34
        return [
35
           'AN', // Raionul Anenii Noi
36
           'BA', // Municipiul Bălţi
37
           'BD', // Tighina
38
           'BR', // Raionul Briceni
39
           'BS', // Raionul Basarabeasca
40
           'CA', // Cahul
41
           'CL', // Raionul Călăraşi
42
           'CM', // Raionul Cimişlia
43
           'CR', // Raionul Criuleni
44
           'CS', // Raionul Căuşeni
45
           'CT', // Raionul Cantemir
46
           'CU', // Municipiul Chişinău
47
           'DO', // Donduşeni
48
           'DR', // Raionul Drochia
49
           'DU', // Dubăsari
50
           'ED', // Raionul Edineţ
51
           'FA', // Făleşti
52
           'FL', // Floreşti
53
           'GA', // U.T.A. Găgăuzia
54
           'GL', // Raionul Glodeni
55
           'HI', // Hînceşti
56
           'IA', // Ialoveni
57
           'LE', // Leova
58
           'NI', // Nisporeni
59
           'OC', // Raionul Ocniţa
60
           'OR', // Raionul Orhei
61
           'RE', // Rezina
62
           'RI', // Rîşcani
63
           'SD', // Raionul Şoldăneşti
64
           'SI', // Sîngerei
65
           'SN', // Stînga Nistrului
66
           'SO', // Soroca
67
           'ST', // Raionul Străşeni
68
           'SV', // Raionul Ştefan Vodă
69
           'TA', // Raionul Taraclia
70
           'TE', // Teleneşti
71
           'UN', // Raionul Ungheni
72
       ];
73
    }
74
}
75