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 — 0.9 ( 7d978d...1ce8ac )
by Henrique
07:01 queued 01:39
created

Bic::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 2

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 8
ccs 7
cts 7
cp 1
rs 9.4285
cc 2
eloc 4
nc 2
nop 2
crap 2
1
<?php
2
namespace Respect\Validation\Rules;
3
4
use Respect\Validation\Rules\Locale\Factory;
5
6
class Bic extends AbstractWrapper
7
{
8
    /**
9
     * Defines the country code.
10
     *
11
     * The country code is not case sensitive.
12
     *
13
     * @param string  $countryCode The ISO 639-1 country code.
14
     * @param Factory $factory
15
     */
16 2
    public function __construct($countryCode, Factory $factory = null)
17 1
    {
18 2
        if (null === $factory) {
19 1
            $factory = new Factory();
20 1
        }
21
22 2
        $this->validatable = $factory->bic($countryCode);
23 2
    }
24
}
25