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
Push — 0.9 ( 7d978d...1ce8ac )
by Henrique
07:01 queued 01:39
created

MaxException   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
lcom 0
cbo 1
dl 0
loc 20
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A chooseTemplate() 0 4 2
1
<?php
2
namespace Respect\Validation\Exceptions;
3
4
class MaxException extends ValidationException
5
{
6
    const INCLUSIVE = 1;
7
8
    public static $defaultTemplates = array(
9
        self::MODE_DEFAULT => array(
10
            self::STANDARD => '{{name}} must be lower than {{interval}}',
11
            self::INCLUSIVE => '{{name}} must be lower than or equals {{interval}}',
12
        ),
13
        self::MODE_NEGATIVE => array(
14
            self::STANDARD => '{{name}} must not be lower than {{interval}}',
15
            self::INCLUSIVE => '{{name}} must not be lower than or equals {{interval}}',
16
        ),
17
    );
18
19 10
    public function chooseTemplate()
20
    {
21 10
        return $this->getParam('inclusive') ? static::INCLUSIVE : static::STANDARD;
22
    }
23
}
24