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

fixtures/SymfonyApp/cache/test/SymfonyAppTestDebugProjectContainer.php 2 locations

@@ 528-559 (lines=32) @@
525
     *
526
     * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance
527
     */
528
    protected function getDoctrine_Orm_DefaultEntityManagerService()
529
    {
530
        $a = $this->get('annotation_reader');
531
532
        $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => ($this->targetDirs[2].'/TestBundle/Entity'), 1 => ($this->targetDirs[2].'/TestBundle/Bundle/ABundle/Entity'), 2 => ($this->targetDirs[2].'/TestBundle/Bundle/BBundle/Entity')));
533
534
        $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
535
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Entity');
536
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\Entity');
537
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\Entity');
538
539
        $d = new \Doctrine\ORM\Configuration();
540
        $d->setEntityNamespaces(array('TestBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Entity', 'TestABundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\Entity', 'TestBBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\Entity'));
541
        $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
542
        $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
543
        $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
544
        $d->setMetadataDriverImpl($c);
545
        $d->setProxyDir((__DIR__.'/doctrine/orm/Proxies'));
546
        $d->setProxyNamespace('Proxies');
547
        $d->setAutoGenerateProxyClasses(false);
548
        $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
549
        $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
550
        $d->setNamingStrategy($this->get('doctrine.orm.naming_strategy.default'));
551
        $d->setQuoteStrategy($this->get('doctrine.orm.quote_strategy.default'));
552
        $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
553
554
        $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
555
556
        $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
557
558
        return $instance;
559
    }
560
561
    /**
562
     * Gets the 'doctrine.orm.default_listeners.attach_entity_listeners' service.
@@ 608-639 (lines=32) @@
605
     *
606
     * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance
607
     */
608
    protected function getDoctrine_Orm_MysqlEntityManagerService()
609
    {
610
        $a = $this->get('annotation_reader');
611
612
        $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => ($this->targetDirs[2].'/TestBundle/Entity'), 1 => ($this->targetDirs[2].'/TestBundle/Bundle/ABundle/Entity'), 2 => ($this->targetDirs[2].'/TestBundle/Bundle/BBundle/Entity')));
613
614
        $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
615
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Entity');
616
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\Entity');
617
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\Entity');
618
619
        $d = new \Doctrine\ORM\Configuration();
620
        $d->setEntityNamespaces(array('TestBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Entity', 'TestABundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\Entity', 'TestBBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\Entity'));
621
        $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.mysql_metadata_cache'));
622
        $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.mysql_query_cache'));
623
        $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.mysql_result_cache'));
624
        $d->setMetadataDriverImpl($c);
625
        $d->setProxyDir((__DIR__.'/doctrine/orm/Proxies'));
626
        $d->setProxyNamespace('Proxies');
627
        $d->setAutoGenerateProxyClasses(false);
628
        $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
629
        $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
630
        $d->setNamingStrategy($this->get('doctrine.orm.naming_strategy.default'));
631
        $d->setQuoteStrategy($this->get('doctrine.orm.quote_strategy.default'));
632
        $d->setEntityListenerResolver($this->get('doctrine.orm.mysql_entity_listener_resolver'));
633
634
        $this->services['doctrine.orm.mysql_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.mysql_connection'), $d);
635
636
        $this->get('doctrine.orm.mysql_manager_configurator')->configure($instance);
637
638
        return $instance;
639
    }
640
641
    /**
642
     * Gets the 'doctrine.orm.mysql_listeners.attach_entity_listeners' service.