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 (#892)
by
unknown
06:38 queued 03:46
created

SuperSet   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A validate() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Respect/Validation.
5
 *
6
 * (c) Singwai Chan<[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\Rules;
13
14
class SuperSet extends AbstractRule
15
{
16
17
    public $compareTo;
18
19
    /**
20
     * SuperSet constructor.
21
     * @param $compareTo
22
     */
23 9
    public function __construct($compareTo)
24
    {
25 9
        $this->compareTo = $compareTo;
26 9
    }
27
28 9
    public function validate($input)
29
    {
30 9
        return !array_diff($input, $this->compareTo);
31
    }
32
}
33