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::validate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
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