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
Pull Request — master (#1106)
by Henrique
03:15 queued 55s
created

Digit   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 1
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A validateClean() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of Respect/Validation.
5
 *
6
 * (c) Alexandre Gomes Gaigalas <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the "LICENSE.md"
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Respect\Validation\Rules;
15
16
use function ctype_digit;
17
use function var_dump;
18
19
/**
20
 * Validates whether the input contains only digits.
21
 *
22
 * @author Alexandre Gomes Gaigalas <[email protected]>
23
 * @author Henrique Moody <[email protected]>
24
 * @author Nick Lombard <[email protected]>
25
 */
26
final class Digit extends AbstractFilterRule
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31 19
    public function validateClean($input)
32
    {
33 19
        return ctype_digit($input);
34
    }
35
}
36