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

src/DataObjects/Document.php 1 location

@@ 379-386 (lines=8) @@
376
        $objectFactory = $this->getSession()->getObjectFactory();
377
        $result = array();
378
        if (count($versions) !== null) {
379
            foreach ($versions as $objectData) {
380
                $document = $objectFactory->convertObject($objectData, $context);
381
                if (!(!$document instanceof DocumentInterface)) {
382
                    // this should never happen
383
                    continue;
384
                }
385
                $result[] = $document;
386
            }
387
        }
388
389
        return $result;

src/DataObjects/Folder.php 1 location

@@ 309-317 (lines=9) @@
306
307
        $result = array();
308
        $objectFactory = $this->getObjectFactory();
309
        foreach ($checkedOutDocs->getObjects() as $objectData) {
310
            $document = $objectFactory->convertObject($objectData, $context);
311
            if (!($document instanceof DocumentInterface)) {
312
                // should not happen but could happen if the repository is not implemented correctly ...
313
                continue;
314
            }
315
316
            $result[] = $document;
317
        }
318
319
        return $result;
320
    }