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:06
created

Result   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A isValid() 0 4 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;
13
14
/**
15
 * Class to handle validation.
16
 *
17
 * @author Henrique Moody <[email protected]>
18
 */
19
final class Result
20
{
21
    /**
22
     * @var bool
23
     */
24
    private $isValid;
25
26
    /**
27
     * @param bool $isValid
28
     */
29 1
    public function __construct($isValid)
30
    {
31 1
        $this->isValid = $isValid;
32 1
    }
33
34
    /**
35
     * @return bool
36
     */
37 1
    public function isValid()
38
    {
39 1
        return $this->isValid;
40
    }
41
}
42