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

src/Document.php 1 location

@@ 307-312 (lines=6) @@
304
        }
305
306
        $links = $this->getLinks();
307
        if (!empty($links)) {
308
            $data['links'] = array();
309
            foreach ($links as $link) {
310
                $data['links'][] = $link->toArray();
311
            }
312
        }
313
314
        return $data;
315
    }

src/Entity.php 1 location

@@ 285-290 (lines=6) @@
282
        }
283
284
        $links = $this->getLinks();
285
        if (!empty($links)) {
286
            $data['links'] = array();
287
            foreach ($links as $link) {
288
                $data['links'][] = $link->toArray();
289
            }
290
        }
291
292
        return $data;
293
    }