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

BankAccount   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
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 BankAccount extends AbstractWrapper
17
{
18
    /**
19
     * Defines the country code and bank.
20
     *
21
     * The country code is not case sensitive.
22
     *
23
     * @param string  $countryCode The ISO 639-1 country code.
24
     * @param string  $bank        The bank.
25
     * @param Factory $factory
26
     */
27
    public function __construct($countryCode, $bank, Factory $factory = null)
28
    {
29
        if (null === $factory) {
30
            $factory = new Factory();
31
        }
32
33
        $this->validatable = $factory->bankAccount($countryCode, $bank);
34
    }
35
}
36