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 (#766)
by Bradyn
03:21
created

Bic::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 2
crap 2
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
namespace Respect\Validation\Rules;
13
14
use Respect\Validation\Rules\Locale\Factory;
15
16
class Bic extends AbstractWrapper
17
{
18
    /**
19
     * Defines the country code.
20
     *
21
     * The country code is not case sensitive.
22
     *
23
     * @param string  $countryCode The ISO 639-1 country code
24
     * @param Factory $factory
25
     */
26 2
    public function __construct($countryCode, Factory $factory = null)
27
    {
28 2
        if (null === $factory) {
29 1
            $factory = new Factory();
30
        }
31
32 2
        $this->validatable = $factory->bic($countryCode);
33 2
    }
34
}
35