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

BdSubdivisionCode::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 Bangladesh or not.
20
 *
21
 * ISO 3166-1 alpha-2: BD
22
 *
23
 * @see http://www.geonames.org/BD/administrative-division-bangladesh.html
24
 *
25
 * @author Henrique Moody <[email protected]>
26
 */
27
final class BdSubdivisionCode extends AbstractSearcher
28
{
29
    private const DATA = [
30
        '01', // Bandarban zila
31
        '02', // Barguna zila
32
        '03', // Bogra zila
33
        '04', // Brahmanbaria zila
34
        '05', // Bagerhat zila
35
        '06', // Barisal zila
36
        '07', // Bhola zila
37
        '08', // Comilla zila
38
        '09', // Chandpur zila
39
        '10', // Chittagong zila
40
        '11', // Cox's Bazar zila
41
        '12', // Chuadanga zila
42
        '13', // Dhaka zila
43
        '14', // Dinajpur zila
44
        '15', // Faridpur zila
45
        '16', // Feni zila
46
        '17', // Gopalganj zila
47
        '18', // Gazipur zila
48
        '19', // Gaibandha zila
49
        '20', // Habiganj zila
50
        '21', // Jamalpur zila
51
        '22', // Jessore zila
52
        '23', // Jhenaidah zila
53
        '24', // Jaipurhat zila
54
        '25', // Jhalakati zila
55
        '26', // Kishoreganj zila
56
        '27', // Khulna zila
57
        '28', // Kurigram zila
58
        '29', // Khagrachari zila
59
        '30', // Kushtia zila
60
        '31', // Lakshmipur zila
61
        '32', // Lalmonirhat zila
62
        '33', // Manikganj zila
63
        '34', // Mymensingh zila
64
        '35', // Munshiganj zila
65
        '36', // Madaripur zila
66
        '37', // Magura zila
67
        '38', // Moulvibazar zila
68
        '39', // Meherpur zila
69
        '40', // Narayanganj zila
70
        '41', // Netrakona zila
71
        '42', // Narsingdi zila
72
        '43', // Narail zila
73
        '44', // Natore zila
74
        '45', // Nawabganj zila
75
        '46', // Nilphamari zila
76
        '47', // Noakhali zila
77
        '48', // Naogaon zila
78
        '49', // Pabna zila
79
        '50', // Pirojpur zila
80
        '51', // Patuakhali zila
81
        '52', // Panchagarh zila
82
        '53', // Rajbari zila
83
        '54', // Rajshahi zila
84
        '55', // Rangpur zila
85
        '56', // Rangamati zila
86
        '57', // Sherpur zila
87
        '58', // Satkhira zila
88
        '59', // Sirajganj zila
89
        '60', // Sylhet zila
90
        '61', // Sunamganj zila
91
        '62', // Shariatpur zila
92
        '63', // Tangail zila
93
        '64', // Thakurgaon zila
94
        'A', // Barisal
95
        'B', // Chittagong
96
        'C', // Dhaka
97
        'D', // Khulna
98
        'E', // Rajshahi
99
        'F', // Rangpur
100
        'G', // Sylhet
101
        'H', // Mymensingh Division
102
    ];
103
    
104
    /**
105
     * {@inheritdoc}
106
     */
107
    protected function getDataSource(): array
108
    {
109
        return self::DATA;
110
    }
111
}
112