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 — 0.9 ( 7d978d...1ce8ac )
by Henrique
07:01 queued 01:39
created

Instance   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 19
ccs 7
cts 7
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A reportError() 0 4 1
A validate() 0 4 1
1
<?php
2
namespace Respect\Validation\Rules;
3
4
class Instance extends AbstractRule
5
{
6
    public $instanceName;
7
8 2
    public function __construct($instanceName)
9
    {
10 2
        $this->instanceName = $instanceName;
11 2
    }
12
13 1
    public function reportError($input, array $extraParams = array())
14
    {
15 1
        return parent::reportError($input, $extraParams);
16
    }
17
18 2
    public function validate($input)
19
    {
20 2
        return $input instanceof $this->instanceName;
21
    }
22
}
23