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-13 lines in 15 locations

src/Action.php 5 locations

@@ 56-66 (lines=11) @@
53
     * @param string $name
54
     * @return $this
55
     */
56
    public function setName($name)
57
    {
58
        if (!is_string($name)) {
59
            $exMsg = sprintf('Provided name `%s` is not a string', $name);
60
            throw new LogicException($exMsg);
61
        }
62
63
        $this->name = $name;
64
65
        return $this;
66
    }
67
68
    /**
69
     * Get title
@@ 84-94 (lines=11) @@
81
     * @param string $title
82
     * @return $this
83
     */
84
    public function setTitle($title)
85
    {
86
        if (!is_string($title)) {
87
            $exMsg = sprintf('Provided title `%s` is not a string', $title);
88
            throw new LogicException($exMsg);
89
        }
90
91
        $this->title = $title;
92
93
        return $this;
94
    }
95
96
    /**
97
     * Get method
@@ 112-122 (lines=11) @@
109
     * @param string $method
110
     * @return $this
111
     */
112
    public function setMethod($method)
113
    {
114
        if (!is_string($method)) {
115
            $exMsg = sprintf('Provided method `%s` is not a string', $method);
116
            throw new LogicException($exMsg);
117
        }
118
119
        $this->method = $method;
120
121
        return $this;
122
    }
123
124
    /**
125
     * Get href
@@ 141-151 (lines=11) @@
138
     * @return $this
139
     * @throws LogicException
140
     */
141
    public function setHref($href)
142
    {
143
        if (!is_string($href)) {
144
            $exMsg = sprintf('Provided href `%s` is not a string', $href);
145
            throw new LogicException($exMsg);
146
        }
147
148
        $this->href = $href;
149
150
        return $this;
151
    }
152
153
    /**
154
     * Get type
@@ 169-179 (lines=11) @@
166
     * @param string $type
167
     * @return $this
168
     */
169
    public function setType($type)
170
    {
171
        if (!is_string($type)) {
172
            $exMsg = sprintf('Provided type `%s` is not a string', $type);
173
            throw new LogicException($exMsg);
174
        }
175
176
        $this->type = $type;
177
178
        return $this;
179
    }
180
181
    /**
182
     * Get fields

src/Document.php 1 location

@@ 54-66 (lines=13) @@
51
     * @return $this
52
     * @throws LogicException
53
     */
54
    public function setClass(array $class)
55
    {
56
        foreach ($class as $classItem) {
57
            if (!is_string($classItem)) {
58
                $exMsg = sprintf('Provided class `%s` is not a string', $classItem);
59
                throw new LogicException($exMsg);
60
            }
61
        }
62
63
        $this->class = $class;
64
65
        return $this;
66
    }
67
68
    /**
69
     * Add class

src/Entity.php 4 locations

@@ 52-64 (lines=13) @@
49
     * @return $this
50
     * @throws LogicException
51
     */
52
    public function setClass(array $class)
53
    {
54
        foreach ($class as $classItem) {
55
            if (!is_string($classItem)) {
56
                $exMsg = sprintf('Provided class `%s` is not a string', $classItem);
57
                throw new LogicException($exMsg);
58
            }
59
        }
60
61
        $this->class = $class;
62
63
        return $this;
64
    }
65
66
    /**
67
     * Add class
@@ 108-120 (lines=13) @@
105
     * @return $this
106
     * @throws LogicException
107
     */
108
    public function setRel(array $rel)
109
    {
110
        foreach ($rel as $relItem) {
111
            if (!is_string($relItem)) {
112
                $exMsg = sprintf('Provided rel `%s` is not a string', $relItem);
113
                throw new LogicException($exMsg);
114
            }
115
        }
116
117
        $this->rel = $rel;
118
119
        return $this;
120
    }
121
122
    /**
123
     * Add rel
@@ 129-139 (lines=11) @@
126
     * @return $this
127
     * @throws LogicException
128
     */
129
    public function addRel($rel)
130
    {
131
        if (!is_string($rel)) {
132
            $exMsg = sprintf('Provided rel `%s` is not a string', $rel);
133
            throw new LogicException($exMsg);
134
        }
135
136
        $this->rel[] = $rel;
137
138
        return $this;
139
    }
140
141
    /**
142
     * Get href
@@ 158-168 (lines=11) @@
155
     * @return $this
156
     * @throws LogicException
157
     */
158
    public function setHref($href)
159
    {
160
        if (!is_string($href)) {
161
            $exMsg = sprintf('Provided href `%s` is not a string', $href);
162
            throw new LogicException($exMsg);
163
        }
164
165
        $this->href = $href;
166
167
        return $this;
168
    }
169
170
    /**
171
     * Get properties

src/Field.php 2 locations

@@ 41-51 (lines=11) @@
38
     * @return $this
39
     * @throws LogicException
40
     */
41
    public function setName($name)
42
    {
43
        if (!is_string($name)) {
44
            $exMsg = sprintf('Provided name `%s` is not a string', $name);
45
            throw new LogicException($exMsg);
46
        }
47
48
        $this->name = $name;
49
50
        return $this;
51
    }
52
53
    /**
54
     * Get type
@@ 70-80 (lines=11) @@
67
     * @return $this
68
     * @throws LogicException
69
     */
70
    public function setType($type)
71
    {
72
        if (!is_string($type)) {
73
            $exMsg = sprintf('Provided type `%s` is not a string', $type);
74
            throw new LogicException($exMsg);
75
        }
76
77
        $this->type = $type;
78
79
        return $this;
80
    }
81
82
    /**
83
     * Get value

src/Link.php 3 locations

@@ 36-48 (lines=13) @@
33
     * @return $this
34
     * @throws LogicException
35
     */
36
    public function setRel(array $rel)
37
    {
38
        foreach ($rel as $relItem) {
39
            if (!is_string($relItem)) {
40
                $exMsg = sprintf('Provided rel `%s` is not a string', $relItem);
41
                throw new LogicException($exMsg);
42
            }
43
        }
44
45
        $this->rel = $rel;
46
47
        return $this;
48
    }
49
50
    /**
51
     * Add rel
@@ 57-67 (lines=11) @@
54
     * @return $this
55
     * @throws LogicException
56
     */
57
    public function addRel($rel)
58
    {
59
        if (!is_string($rel)) {
60
            $exMsg = sprintf('Provided rel `%s` is not a string', $rel);
61
            throw new LogicException($exMsg);
62
        }
63
64
        $this->rel[] = $rel;
65
66
        return $this;
67
    }
68
69
    /**
70
     * Get href
@@ 86-96 (lines=11) @@
83
     * @return $this
84
     * @throws LogicException
85
     */
86
    public function setHref($href)
87
    {
88
        if (!is_string($href)) {
89
            $exMsg = sprintf('Provided href `%s` is not a string', $href);
90
            throw new LogicException($exMsg);
91
        }
92
93
        $this->href = $href;
94
95
        return $this;
96
    }
97
98
    /**
99
     * Convert object to array