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 — master ( 6040dd...18ce48 )
by Henrique
03:21
created

HexRgbColor::validate()   A

Complexity

Conditions 5
Paths 5

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 5

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 16
c 0
b 0
f 0
ccs 9
cts 9
cp 1
rs 9.6111
cc 5
nc 5
nop 1
crap 5
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
/**
17
 * Validates weather the input is a hex RGB color or not.
18
 *
19
 * @author Davide Pastore <[email protected]>
20
 * @author Henrique Moody <[email protected]>
21
 */
22
final class HexRgbColor extends AbstractEnvelope
23
{
24 1
    public function __construct()
25
    {
26 1
        parent::__construct(new Regex('/^#?([0-9A-F]{3}|[0-9A-F]{6})$/'));
27 1
    }
28
}
29