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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 1 Features 1
Metric Value
wmc 2
c 3
b 1
f 1
lcom 0
cbo 2
dl 0
loc 20
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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