GrafiteInc/Database

View on GitHub

Showing 2 of 2 total issues

Method boot has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function boot()
    {
        $this->publishes([
            __DIR__ . '/../config/backup.php' => base_path('config/backup.php'),
        ]);
Severity: Major
Found in src/GrafiteDatabaseProvider.php - About 2 hrs to fix

    Method handle has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function handle()
        {
            $this->info('Starting database backup');
    
            $backupStoragePath = config('backup.path', base_path('database/backups'));
    Severity: Minor
    Found in src/Commands/DatabaseBackup.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language