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.

Code Duplication    Length = 31-31 lines in 2 locations

src/Evaluator/LogicalAnd.php 1 location

@@ 9-39 (lines=31) @@
6
 * @author Kristjan Siimson <[email protected]>
7
 * @package Evaluator\Domain
8
 */
9
class LogicalAnd implements Evaluator
10
{
11
    /**
12
     * @var Evaluator
13
     */
14
    protected $first;
15
16
    /**
17
     * @var Evaluator
18
     */
19
    protected $second;
20
21
    /**
22
     * @param Evaluator $first
23
     * @param Evaluator $second
24
     */
25
    public function __construct(Evaluator $first, Evaluator $second)
26
    {
27
        $this->first = $first;
28
        $this->second = $second;
29
    }
30
31
    /**
32
     * @param string $date
33
     * @return bool
34
     */
35
    public function is($date)
36
    {
37
        return $this->first->is($date) && $this->second->is($date);
38
    }
39
}
40

src/Evaluator/LogicalOr.php 1 location

@@ 9-39 (lines=31) @@
6
 * @author Kristjan Siimson <[email protected]>
7
 * @package Evaluator\Domain
8
 */
9
class LogicalOr implements Evaluator
10
{
11
    /**
12
     * @var Evaluator
13
     */
14
    protected $first;
15
16
    /**
17
     * @var Evaluator
18
     */
19
    protected $second;
20
21
    /**
22
     * @param Evaluator $first
23
     * @param Evaluator $second
24
     */
25
    public function __construct(Evaluator $first, Evaluator $second)
26
    {
27
        $this->first = $first;
28
        $this->second = $second;
29
    }
30
31
    /**
32
     * @param string $date
33
     * @return bool
34
     */
35
    public function is($date)
36
    {
37
        return $this->first->is($date) || $this->second->is($date);
38
    }
39
}
40