SinSquare/silex-doctrine-orm-provider

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function register(Container $app)
    {
        if (isset($app['profiler'])) {
            $app['twig'] = $app->extend('twig', function (\Twig_Environment $twig) {
                $twig->addExtension(new DoctrineExtension());
Severity: Minor
Found in src/Sins/Doctrine/DoctrineOrmWebProfilerProvider.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                        return $dataCollectorTemplates;
    Severity: Major
    Found in src/Sins/Doctrine/DoctrineOrmWebProfilerProvider.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return $collectors;
      Severity: Major
      Found in src/Sins/Doctrine/DoctrineOrmWebProfilerProvider.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status