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 (#1222)
by Henrique
04:38 queued 02:13
created

No   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
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 nl_langinfo;
17
use const NOEXPR;
18
19
/**
20
 * Validates if value is considered as "No".
21
 *
22
 * @author Henrique Moody <[email protected]>
23
 */
24
final class No extends AbstractEnvelope
25
{
26 7
    public function __construct(bool $useLocale = false)
27
    {
28 7
        $pattern = '^n(o(t|pe)?|ix|ay)?$';
29 7
        if ($useLocale) {
30 6
            $pattern = nl_langinfo(NOEXPR);
31
        }
32
33 7
        parent::__construct(new Regex('/'.$pattern.'/i'));
34 7
    }
35
}
36