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 (#694)
by
unknown
03:32
created

Yes::__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 Yes extends Regex
5
{
6 12
    public function __construct($useLocale = false)
7
    {
8 12
        $pattern = '^y(eah?|ep|es)?$';
9 12
        if ($useLocale && defined('YESEXPR')) {
10 1
            $pattern = nl_langinfo(YESEXPR);
11 1
        }
12
13 12
        parent::__construct('/'.$pattern.'/i');
14 12
    }
15
}
16