src/Sins/Doctrine/DoctrineOrmServiceProvider.php
Method register
has 207 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function register(Container $app)
{
$app['doctrine.orm.em_default_options'] = array(
'query_cache_driver' => array(
'type' => 'array',
Avoid too many return
statements within this method. Open
Open
return new DefaultRepositoryFactory();
Avoid too many return
statements within this method. Open
Open
return new DefaultEntityListenerResolver();
Avoid too many return
statements within this method. Open
Open
return $app['doctrine.orm.em_factory']($name, $options);
Avoid too many return
statements within this method. Open
Open
return new ManagerRegistry($app);
Avoid too many return
statements within this method. Open
Open
return $config;
Avoid too many return
statements within this method. Open
Open
return new DefaultQuoteStrategy();
Avoid too many return
statements within this method. Open
Open
return $config->newDefaultAnnotationDriver(array($options['path']), $useSimpleAnnotationReader);
Avoid too many return
statements within this method. Open
Open
return $manager;
Avoid too many return
statements within this method. Open
Open
return $app[$name];
Avoid too many return
statements within this method. Open
Open
return new DefaultNamingStrategy();
Avoid too many return
statements within this method. Open
Open
return $app[$mappingName]($options, $config);
Avoid too many return
statements within this method. Open
Open
return $app['doctrine.orm.em_factory.postinit']($name, $options, $em);
Avoid too many return
statements within this method. Open
Open
return $app[$cacheInstanceKey] = $cache;
Avoid too many return
statements within this method. Open
Open
return $app['doctrine.orm.em.'.$name];
Avoid too many return
statements within this method. Open
Open
return $ems;