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

BfSubdivisionCode::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 Burkina Faso or not.
20
 *
21
 * ISO 3166-1 alpha-2: BF
22
 *
23
 * @see http://www.geonames.org/BF/administrative-division-burkina-faso.html
24
 *
25
 * @author Henrique Moody <[email protected]>
26
 */
27
final class BfSubdivisionCode extends AbstractSearcher
28
{
29
    private const DATA = [
30
        '01', // Boucle du Mouhoun
31
        '02', // Cascades
32
        '03', // Centre
33
        '04', // Centre-Est
34
        '05', // Centre-Nord
35
        '06', // Centre-Ouest
36
        '07', // Centre-Sud
37
        '08', // Est
38
        '09', // Hauts-Bassins
39
        '10', // Nord
40
        '11', // Plateau-Central
41
        '12', // Sahel
42
        '13', // Sud-Ouest
43
        'BAL', // Bale
44
        'BAM', // Bam
45
        'BAN', // Banwa
46
        'BAZ', // Bazega
47
        'BGR', // Bougouriba
48
        'BLG', // Boulgou
49
        'BLK', // Boulkiemde
50
        'COM', // Comoe
51
        'GAN', // Ganzourgou
52
        'GNA', // Gnagna
53
        'GOU', // Gourma
54
        'HOU', // Houet
55
        'IOB', // Ioba
56
        'KAD', // Kadiogo
57
        'KEN', // Kenedougou
58
        'KMD', // Komondjari
59
        'KMP', // Kompienga
60
        'KOP', // Koulpelogo
61
        'KOS', // Kossi
62
        'KOT', // Kouritenga
63
        'KOW', // Kourweogo
64
        'LER', // Leraba
65
        'LOR', // Loroum
66
        'MOU', // Mouhoun
67
        'NAM', // Namentenga
68
        'NAO', // Nahouri
69
        'NAY', // Nayala
70
        'NOU', // Noumbiel
71
        'OUB', // Oubritenga
72
        'OUD', // Oudalan
73
        'PAS', // Passore
74
        'PON', // Poni
75
        'SEN', // Seno
76
        'SIS', // Sissili
77
        'SMT', // Sanmatenga
78
        'SNG', // Sanguie
79
        'SOM', // Soum
80
        'SOR', // Sourou
81
        'TAP', // Tapoa
82
        'TUI', // Tuy
83
        'YAG', // Yagha
84
        'YAT', // Yatenga
85
        'ZIR', // Ziro
86
        'ZON', // Zondoma
87
        'ZOU', // Zoundweogo
88
    ];
89
    
90
    /**
91
     * {@inheritdoc}
92
     */
93
    protected function getDataSource(): array
94
    {
95
        return self::DATA;
96
    }
97
}
98