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

src/Matcher/Pattern/Expander/OneOf.php 1 location

@@ 35-45 (lines=11) @@
32
     * @param $value
33
     * @return boolean
34
     */
35
    public function match($value)
36
    {
37
        foreach ($this->expanders as $expander) {
38
            if ($expander->match($value)) {
39
                return true;
40
            }
41
        }
42
43
        $this->error = sprintf("Any expander available in OneOf expander does not match \"%s\".", new StringConverter($value));
44
        return false;
45
    }
46
47
    /**
48
     * @return string|null

src/Matcher/Pattern/TypePattern.php 1 location

@@ 59-69 (lines=11) @@
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function matchExpanders($value)
60
    {
61
        foreach ($this->expanders as $expander) {
62
            if (!$expander->match($value)) {
63
                $this->error = $expander->getError();
64
                return false;
65
            }
66
        }
67
68
        return true;
69
    }
70
71
    /**
72
     * @return null|string