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 — 0.9 (#694)
by
unknown
03:32
created

Bank::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 3
Bugs 1 Features 1
Metric Value
c 3
b 1
f 1
dl 0
loc 8
ccs 6
cts 6
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 Bank 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
    {
18 2
        if (null === $factory) {
19 1
            $factory = new Factory();
20 1
        }
21
22 2
        $this->validatable = $factory->bank($countryCode);
23 2
    }
24
}
25