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 = 14-14 lines in 2 locations

src/Rule/Design/ConditionalExpression.php 1 location

@@ 14-27 (lines=14) @@
11
 * Try to avoid using inline ifs. They conceal the complexity of your code.
12
 * Furthermore they obstruct the expandability. Refactor your code and increase the readability.
13
 */
14
class ConditionalExpression extends AbstractRule implements MethodAware
15
{
16
    /**
17
     * @param AbstractNode|MethodNode $node
18
     */
19
    public function apply(AbstractNode $node)
20
    {
21
        $conditionalExpressions = $node->findChildrenOfType('ConditionalExpression');
22
23
        foreach ($conditionalExpressions as $conditionalExpression) {
24
            $this->addViolation($conditionalExpression);
25
        }
26
    }
27
}
28

src/Rule/Design/SwitchStatement.php 1 location

@@ 13-26 (lines=14) @@
10
/**
11
 * Try to avoid using switch-case statements. Use polymorphism instead.
12
 */
13
class SwitchStatement extends AbstractRule implements MethodAware
14
{
15
    /**
16
     * @param AbstractNode|MethodNode $node
17
     */
18
    public function apply(AbstractNode $node)
19
    {
20
        $switchStatements = $node->findChildrenOfType('SwitchStatement');
21
22
        foreach ($switchStatements as $switchStatement) {
23
            $this->addViolation($switchStatement);
24
        }
25
    }
26
}
27