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

Executable::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
3
namespace Respect\Validation\Rules;
4
5
class Executable extends AbstractRule
6
{
7 3
    public function validate($input)
8
    {
9 3
        if ($input instanceof \SplFileInfo) {
10 1
            return $input->isExecutable();
11
        }
12
13 2
        return (is_string($input) && is_executable($input));
14
    }
15
}
16