src/Sins/Doctrine/DoctrineOrmValidatorProvider.php
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'."));
}
Avoid too many return
statements within this method. Open
Open
return new LazyLoadingMetadataFactory(
new LoaderChain($loaders)
);