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

Uploaded   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 8 3
1
<?php
2
3
namespace Respect\Validation\Rules;
4
5
class Uploaded 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) && is_uploaded_file($input));
14
    }
15
}
16