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

Templates   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 32
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefault() 0 10 1
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
namespace Respect\Validation\Message;
13
14
use Doctrine\Common\Annotations\Annotation;
15
use Doctrine\Common\Annotations\Annotation\Required;
16
use Doctrine\Common\Annotations\Annotation\Target;
17
18
/**
19
 * @Annotation
20
 * @Target("CLASS")
21
 */
22
final class Templates
23
{
24
    /**
25
     * @Required
26
     *
27
     * @var array<Respect\Validation\Message\Template>
28
     */
29
    public $regular;
30
31
    /**
32
     * @Required
33
     *
34
     * @var array<Respect\Validation\Message\Template>
35
     */
36
    public $inverted;
37
38
    /**
39
     * @var bool
40
     */
41
    public $isIgnorable = false;
42
43
    public static function getDefault(): self
44
    {
45
        $templates = new self();
46
        $templates->regular[0] = new Template();
47
        $templates->regular[0]->message = '{{placeholder}} must be valid';
48
        $templates->inverted[0] = new Template();
49
        $templates->inverted[0]->message = '{{placeholder}} must not be valid';
50
51
        return $templates;
52
    }
53
}
54