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

src/Document.php 1 location

@@ 241-256 (lines=16) @@
238
     * @return $this
239
     * @throws LogicException
240
     */
241
    public function setLinks(array $links)
242
    {
243
        foreach ($links as $key => $link) {
244
            if (!($link instanceof Link)) {
245
                $exMsg = sprintf(
246
                    'Array key `%s` is not an instance of Link',
247
                    $key
248
                );
249
                throw new LogicException($exMsg);
250
            }
251
        }
252
253
        $this->links = $links;
254
255
        return $this;
256
    }
257
258
    /**
259
     * Add link

src/Entity.php 1 location

@@ 225-240 (lines=16) @@
222
     * @return $this
223
     * @throws LogicException
224
     */
225
    public function setLinks(array $links)
226
    {
227
        foreach ($links as $key => $link) {
228
            if (!($link instanceof Link)) {
229
                $exMsg = sprintf(
230
                    'Array key `%s` is not an instance of Link',
231
                    $key
232
                );
233
                throw new LogicException($exMsg);
234
            }
235
        }
236
237
        $this->links = $links;
238
239
        return $this;
240
    }
241
242
    /**
243
     * Add link