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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
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 19
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 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