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

NoWhitespace::validate()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 3

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 12
ccs 6
cts 6
cp 1
rs 9.4285
cc 3
eloc 6
nc 3
nop 1
crap 3
1
<?php
2
namespace Respect\Validation\Rules;
3
4
class NoWhitespace extends AbstractRule
5
{
6 43
    public function validate($input)
7
    {
8 43
        if (is_null($input)) {
9 3
            return true;
10
        }
11
12 40
        if (false === is_scalar($input)) {
13 1
            return false;
14
        }
15
16 39
        return !preg_match('#\s#', $input);
17
    }
18
}
19