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 — 2.0 ( e6a123...4184ab )
by Henrique
03:41
created

BoolVal   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 4 1
1
<?php
2
/*
3
 * This file is part of Respect/Validation.
4
 *
5
 * (c) Alexandre Gomes Gaigalas <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the "LICENSE.md"
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Respect\Validation\Rules;
12
13
class BoolVal extends AbstractRule
14
{
15
    public function validate($input)
16
    {
17
        return is_bool(filter_var($input, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
18
    }
19
}
20