GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 35d367...dc130e )
by Axel
02:52
created

BooleanComparison::isNull()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
3
namespace PhpAbac\Comparison;
4
5
class BooleanComparison extends AbstractComparison
6
{
7
    /**
8
     * @param bool $expected
9
     * @param bool $value
10
     *
11
     * @return bool
12
     */
13 2
    public function boolAnd($expected, $value)
14
    {
15 2
        return $expected && $value;
16
    }
17
18
    /**
19
     * @param bool $expected
20
     * @param bool $value
21
     *
22
     * @return bool
23
     */
24 1
    public function boolOr($expected, $value)
25
    {
26 1
        return $expected || $value;
27
    }
28
    
29
    /**
30
     * @param mixed $expected
31
     * @param mixed $value
32
     */
33 1
    public function isNull($expected, $value)
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
34
    {
35 1
        return $value === null;
36
    }
37
    
38
    /**
39
     * @param mixed $expected
40
     * @param mixed $value
41
     */
42 1
    public function isNotNull($expected, $value) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
43 1
        return $value !== null;
44
    }
45
}
46