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/Methods/CaseManipulators.php 2 locations

@@ 23-36 (lines=14) @@
20
     *
21
     * @return static String with the first character of $str being lower case
22
     */
23
    public function lowerCaseFirst()
24
    {
25
        $first = UTF8::substr($this->scalarString, 0, 1, $this->encoding);
26
27
        $rest = UTF8::substr
28
        (
29
            $this->scalarString,
30
            1,
31
            $this->getLength() - 1,
32
            $this->encoding
33
        );
34
35
        return $this->newSelf(UTF8::strtolower($first, $this->encoding).$rest);
36
    }
37
38
    /**
39
     * Converts the first character of the supplied string to upper case.
@@ 43-56 (lines=14) @@
40
     *
41
     * @return static String with the first character of $str being upper case
42
     */
43
    public function upperCaseFirst()
44
    {
45
        $first = UTF8::substr($this->scalarString, 0, 1, $this->encoding);
46
47
        $rest = UTF8::substr
48
        (
49
            $this->scalarString,
50
            1,
51
            $this->getLength() - 1,
52
            $this->encoding
53
        );
54
55
        return $this->newSelf(UTF8::strtoupper($first, $this->encoding).$rest);
56
    }
57
58
    /**
59
     * Returns a case swapped version of the string.