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

Command/CrudGeneratorCommand.php 2 locations

@@ 335-344 (lines=10) @@
332
        $this->getFilterGenerator($bundle)->generate($bundle, $entity, $metadata[0], $forceOverwrite, $type);
333
    }
334
335
    protected function getFilterGenerator($bundle = null)
336
    {
337
        if (null === $this->filterGenerator) {
338
            $metadataGuesser = new MetadataGuesser(new DisconnectedMetadataFactory($this->getContainer()->get('doctrine')));
339
            $this->filterGenerator = new PetkoparaFilterGenerator($metadataGuesser);
340
            $this->filterGenerator->setSkeletonDirs($this->getSkeletonDirs($bundle));
341
        }
342
343
        return $this->filterGenerator;
344
    }
345
346
    protected function getFormGenerator($bundle = null)
347
    {
@@ 346-355 (lines=10) @@
343
        return $this->filterGenerator;
344
    }
345
346
    protected function getFormGenerator($bundle = null)
347
    {
348
        if (null === $this->formGenerator) {
349
            $metadataGuesser = new MetadataGuesser(new DisconnectedMetadataFactory($this->getContainer()->get('doctrine')));
350
            $this->formGenerator = new PetkoparaFormGenerator($metadataGuesser);
351
            $this->formGenerator->setSkeletonDirs($this->getSkeletonDirs($bundle));
352
        }
353
354
        return $this->formGenerator;
355
    }
356
357
    public function setFilterGenerator(PetkoparaFilterGenerator $filterGenerator)
358
    {