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 (#692)
by
unknown
02:58
created

Exists::validate()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

Importance

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