artesaos/defender

View on GitHub
src/Defender/Providers/DefenderServiceProvider.php

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid too many return statements within this method.
Open

                return '<?php endif; ?>';
Severity: Major
Found in src/Defender/Providers/DefenderServiceProvider.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return new EloquentPermissionRepository($app, $app->make(\Artesaos\Defender\Contracts\Permission::class));
    Severity: Major
    Found in src/Defender/Providers/DefenderServiceProvider.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return new EloquentUserRepository($app, $app->make($userModel));
      Severity: Major
      Found in src/Defender/Providers/DefenderServiceProvider.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $app['defender.permission'];
        Severity: Major
        Found in src/Defender/Providers/DefenderServiceProvider.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return $app['defender.user'];
          Severity: Major
          Found in src/Defender/Providers/DefenderServiceProvider.php - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status