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

Directory::validate()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 3

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
ccs 4
cts 4
cp 1
rs 9.4285
cc 3
eloc 4
nc 3
nop 1
crap 3
1
<?php
2
namespace Respect\Validation\Rules;
3
4
class Directory extends AbstractRule
5
{
6 12
    public function validate($input)
7
    {
8 12
        if ($input instanceof \SplFileInfo) {
9 3
            return $input->isDir();
10
        }
11
12 9
        return (is_string($input) && is_dir($input));
13
    }
14
}
15