tastphp/framework

View on GitHub
src/Framework/Doctrine/DoctrineService.php

Summary

Maintainability
B
5 hrs
Test Coverage

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

    public function register(Container $app)
    {
        $app['db.default_options'] = array(
            'driver' => 'pdo_mysql',
            'dbname' => 'test',
Severity: Major
Found in src/Framework/Doctrine/DoctrineService.php - About 3 hrs to fix

    Avoid too many return statements within this method.
    Open

                return $dbs[$app['dbs.default']];
    Severity: Major
    Found in src/Framework/Doctrine/DoctrineService.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return $managers;
      Severity: Major
      Found in src/Framework/Doctrine/DoctrineService.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $dbs[$app['dbs.default']];
        Severity: Major
        Found in src/Framework/Doctrine/DoctrineService.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return $dbs[$app['dbs.default']];
          Severity: Major
          Found in src/Framework/Doctrine/DoctrineService.php - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status