Showing 24 of 24 total issues
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',
Method register
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function register(Container $app) { if (isset($app['profiler'])) { $app['twig'] = $app->extend('twig', function (\Twig_Environment $twig) { $twig->addExtension(new DoctrineExtension());
Method register
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function register(Container $app) { if (!isset($app['validator'])) { throw new \LogicException(sprintf("You have to register the 'ValidatorServiceProvider' before registering 'DoctrineOrmValidatorProvider'.")); }
Function fixParam
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function fixParam($param) { if (!is_string($param)) { return $param; }
- Read upRead up
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 $app['doctrine.orm.em_factory.postinit']($name, $options, $em);
Avoid too many return
statements within this method. Open
Open
return $manager;
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[$name];
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 $dataCollectorTemplates;
Avoid too many return
statements within this method. Open
Open
return new LazyLoadingMetadataFactory( new LoaderChain($loaders) );
Avoid too many return
statements within this method. Open
Open
return $param;
Avoid too many return
statements within this method. Open
Open
return $collectors;
Avoid too many return
statements within this method. Open
Open
return $config;
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 $config->newDefaultAnnotationDriver(array($options['path']), $useSimpleAnnotationReader);
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 new DefaultNamingStrategy();
Avoid too many return
statements within this method. Open
Open
return new DefaultQuoteStrategy();