dlundgren/phagrancy

View on GitHub
src/ServiceProvider/Pimple.php

Summary

Maintainability
C
7 hrs
Test Coverage
A
100%

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

    public function register(Container $di)
    {
        $envFile = "{$this->rootPath}/.env";
        if (file_exists($envFile)) {
            $envLoader = new Loader("{$this->rootPath}/.env");
Severity: Major
Found in src/ServiceProvider/Pimple.php - About 2 hrs to fix

    Avoid too many return statements within this method.
    Open

                return new Action\Api\Scope\Box\Delete($c[Repository\Box::class], new Input\BoxDelete(), $c['path.storage']);
    Severity: Major
    Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return new Action\Api\Scope\Box\Definition($c[Repository\Box::class], new Input\Box());
      Severity: Major
      Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return new Action\Scope\Index($c[Repository\Scope::class], new Input\Scope());
        Severity: Major
        Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return new Action\Api\Scope\Box\CreateVersion(new Input\BoxVersion());
          Severity: Major
          Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return new Action\Scopes($c[Repository\Scope::class], new Input\Scope());
            Severity: Major
            Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return new Action\Scope\Box\Definition($c[Repository\Box::class], new Input\Box());
              Severity: Major
              Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return new Action\Scope\Box\SendFile($c[Repository\Box::class], new Input\BoxUpload(), $c['path.storage']);
                Severity: Major
                Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return new Action\Api\Scope\Box\Upload($c[Repository\Box::class], new Input\BoxUpload(), $c['path.storage']);
                  Severity: Major
                  Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return new Action\Api\Scope\Index($c[Repository\Scope::class], new Input\Scope());
                    Severity: Major
                    Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return new Action\Api\Scope\Box\SendFile($c[Repository\Box::class], new Input\BoxUpload(), $c['path.storage']);
                      Severity: Major
                      Found in src/ServiceProvider/Pimple.php - About 30 mins to fix

                        There are no issues that match your filters.

                        Category
                        Status