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

BankAccount::__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 3
crap 2
1
<?php
2
namespace Respect\Validation\Rules;
3
4
use Respect\Validation\Rules\Locale\Factory;
5
6
class BankAccount extends AbstractWrapper
7
{
8
    /**
9
     * Defines the country code and bank.
10
     *
11
     * The country code is not case sensitive.
12
     *
13
     * @param string  $countryCode The ISO 639-1 country code.
14
     * @param string  $bank        The bank.
15
     * @param Factory $factory
16
     */
17 2
    public function __construct($countryCode, $bank, Factory $factory = null)
18
    {
19 2
        if (null === $factory) {
20 1
            $factory = new Factory();
21 1
        }
22
23 2
        $this->validatable = $factory->bankAccount($countryCode, $bank);
24 2
    }
25
}
26