SinSquare/silex-doctrine-orm-provider

View on GitHub
src/Sins/Doctrine/DoctrineOrmValidatorProvider.php

Summary

Maintainability
A
1 hr
Test Coverage

Method register has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function register(Container $app)
    {
        if (!isset($app['validator'])) {
            throw new \LogicException(sprintf("You have to register the 'ValidatorServiceProvider' before registering 'DoctrineOrmValidatorProvider'."));
        }
Severity: Minor
Found in src/Sins/Doctrine/DoctrineOrmValidatorProvider.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                return new LazyLoadingMetadataFactory(
                    new LoaderChain($loaders)
                );
    Severity: Major
    Found in src/Sins/Doctrine/DoctrineOrmValidatorProvider.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status