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
Push — 0.9 ( 7d978d...1ce8ac )
by Henrique
07:01 queued 01:39
created

NotEmpty::validate()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2
Metric Value
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
crap 2
1
<?php
2
namespace Respect\Validation\Rules;
3
4
class NotEmpty extends AbstractRule
5
{
6 16
    public function validate($input)
7
    {
8 16
        if (is_string($input)) {
9 6
            $input = trim($input);
10 6
        }
11
12 16
        return !empty($input);
13
    }
14
}
15