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 — 0.9 (#692)
by
unknown
02:58
created

No::__construct()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
ccs 7
cts 7
cp 1
rs 9.6666
cc 3
eloc 5
nc 2
nop 1
crap 3
1
<?php
2
namespace Respect\Validation\Rules;
3
4
class No extends Regex
5
{
6 13
    public function __construct($useLocale = false)
7
    {
8 13
        $pattern = '^n(o(t|pe)?|ix|ay)?$';
9 13
        if ($useLocale && defined('NOEXPR')) {
10 1
            $pattern = nl_langinfo(NOEXPR);
11 1
        }
12
13 13
        parent::__construct('/'.$pattern.'/i');
14 13
    }
15
}
16