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   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 12 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