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 = 9-9 lines in 3 locations

src/Mapping/Field.php 1 location

@@ 50-58 (lines=9) @@
47
        return is_string($this->name);
48
    }
49
50
    public function getErrorMessage() {
51
        $baseMessage = "'%s' property wasn't set in %s annotation";
52
53
        if (!is_string($this->name)) {
54
            return sprintf($baseMessage, 'name', get_class($this));
55
        }
56
57
        return null;
58
    }
59
60
    public function getArrayCopy() {
61
        $attrs = get_class_vars(self::class);

src/Mapping/MetaField.php 1 location

@@ 25-33 (lines=9) @@
22
        return is_string($this->name);
23
    }
24
25
    public function getErrorMessage() {
26
        $baseMessage = "'%s' property wasn't set in %s annotation";
27
28
        if (!is_string($this->name)) {
29
            return sprintf($baseMessage, 'name', get_class($this));
30
        }
31
32
        return null;
33
    }
34
}

src/Mapping/Index.php 1 location

@@ 116-124 (lines=9) @@
113
        return is_string($this->name);
114
    }
115
116
    public function getErrorMessage() {
117
        $baseMessage = "'%s' property wasn't set in %s annotation";
118
119
        if (!is_string($this->name)) {
120
            return sprintf($baseMessage, 'name', get_class($this));
121
        }
122
123
        return null;
124
    }
125
126
    public function getArrayCopy() {
127
        return [