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 (#691)
by
unknown
07:33
created

AlphaException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 20
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A chooseTemplate() 0 4 2
1
<?php
2
namespace Respect\Validation\Exceptions;
3
4
class AlphaException extends ValidationException
5
{
6
    const EXTRA = 1;
7
8
    public static $defaultTemplates = array(
9
        self::MODE_DEFAULT => array(
10
            self::STANDARD => '{{name}} must contain only letters (a-z)',
11
            self::EXTRA => '{{name}} must contain only letters (a-z) and "{{additionalChars}}"',
12
        ),
13
        self::MODE_NEGATIVE => array(
14
            self::STANDARD => '{{name}} must not contain letters (a-z)',
15
            self::EXTRA => '{{name}} must not contain letters (a-z) or "{{additionalChars}}"',
16
        ),
17
    );
18
19 82
    public function chooseTemplate()
20
    {
21 82
        return $this->getParam('additionalChars') ? static::EXTRA : static::STANDARD;
22
    }
23
}
24