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::validate()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 4

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.2
c 0
b 0
f 0
cc 4
eloc 4
nc 4
nop 1
crap 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