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

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

@@ 43-60 (lines=18) @@
40
     * @param $value
41
     * @return boolean
42
     */
43
    public function match($value)
44
    {
45
        if (!is_string($value)) {
46
            $this->error = sprintf("EndsWith expander require \"string\", got \"%s\".", new StringConverter($value));
47
            return false;
48
        }
49
50
        if (empty($this->stringEnding)) {
51
            return true;
52
        }
53
54
        if (!$this->matchValue($value)) {
55
            $this->error = sprintf("string \"%s\" doesn't ends with string \"%s\".", $value, $this->stringEnding);
56
            return false;
57
        }
58
59
        return true;
60
    }
61
62
    /**
63
     * @return string|null

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

@@ 43-60 (lines=18) @@
40
     * @param $value
41
     * @return boolean
42
     */
43
    public function match($value)
44
    {
45
        if (!is_string($value)) {
46
            $this->error = sprintf("StartsWith expander require \"string\", got \"%s\".", new StringConverter($value));
47
            return false;
48
        }
49
50
        if (empty($this->stringBeginning)) {
51
            return true;
52
        }
53
54
        if ($this->matchValue($value)) {
55
            $this->error = sprintf("string \"%s\" doesn't starts with string \"%s\".", $value, $this->stringBeginning);
56
            return false;
57
        }
58
59
        return true;
60
    }
61
62
    /**
63
     * @return string|null