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
Push — 1.0 ( 145725...d072b4 )
by Henrique
03:07
created

Bic::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 2
crap 6
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
    public function __construct($countryCode, Factory $factory = null)
27
    {
28
        if (null === $factory) {
29
            $factory = new Factory();
30
        }
31
32
        $this->validatable = $factory->bic($countryCode);
33
    }
34
}
35