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

Arr   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 9
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 6 4
1
<?php
2
namespace Respect\Validation\Rules;
3
4
use ArrayAccess;
5
use Countable;
6
use Traversable;
7
8
class Arr extends AbstractRule
9
{
10 12
    public function validate($input)
11
    {
12 12
        return is_array($input) || ($input instanceof ArrayAccess
13 7
            && $input instanceof Traversable
14 12
            && $input instanceof Countable);
15
    }
16
}
17