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

GnSubdivisionCode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDataSource() 0 44 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 Guinea or not.
20
 *
21
 * ISO 3166-1 alpha-2: GN
22
 *
23
 * @see http://www.geonames.org/GN/administrative-division-guinea.html
24
 *
25
 * @author Henrique Moody <[email protected]>
26
 */
27
final class GnSubdivisionCode extends AbstractSearcher
28
{
29
    /**
30
     * {@inheritdoc}
31
     */
32
    protected function getDataSource(): array
33
    {
34
        return [
35
           'B', // Boké
36
           'BE', // Beyla
37
           'BF', // Boffa
38
           'BK', // Boke
39
           'C', // Conakry
40
           'CO', // Coyah
41
           'D', // Kindia
42
           'DB', // Dabola
43
           'DI', // Dinguiraye
44
           'DL', // Dalaba
45
           'DU', // Dubreka
46
           'F', // Faranah
47
           'FA', // Faranah
48
           'FO', // Forecariah
49
           'FR', // Fria
50
           'GA', // Gaoual
51
           'GU', // Gueckedou
52
           'K', // Kankan
53
           'KA', // Kankan
54
           'KB', // Koubia
55
           'KD', // Kindia
56
           'KE', // Kerouane
57
           'KN', // Koundara
58
           'KO', // Kouroussa
59
           'KS', // Kissidougou
60
           'L', // Labé
61
           'LA', // Labe
62
           'LE', // Lelouma
63
           'LO', // Lola
64
           'M', // Mamou
65
           'MC', // Macenta
66
           'MD', // Mandiana
67
           'ML', // Mali
68
           'MM', // Mamou
69
           'N', // Nzérékoré
70
           'NZ', // Nzerekore
71
           'PI', // Pita
72
           'SI', // Siguiri
73
           'TE', // Telimele
74
           'TO', // Tougue
75
           'YO', // Yomou
76
       ];
77
    }
78
}
79