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 (#1176)
by Henrique
02:49
created

No::__construct()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 3.072

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
ccs 4
cts 5
cp 0.8
rs 10
c 0
b 0
f 0
cc 3
nc 2
nop 1
crap 3.072
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
 * @author Henrique Moody <[email protected]>
18
 */
19
class No extends AbstractEnvelope
20
{
21 11
    public function __construct($useLocale = false)
22
    {
23 11
        $pattern = '^n(o(t|pe)?|ix|ay)?$';
24 11
        if ($useLocale && defined('NOEXPR')) {
25
            $pattern = nl_langinfo(NOEXPR);
26
        }
27
28 11
        parent::__construct(new Regex('/'.$pattern.'/i'));
29 11
    }
30
}
31