Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:signifly/laravel-database-refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
pactode committed Mar 6, 2019
2 parents e70f069 + 2d01538 commit 123b24f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/RefactorDbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public function handle()
$class = $this->option('class');

if (! class_exists($class)) {
throw new Exception('Invalid refactor class: ' . $class);
throw new Exception('Invalid refactor class: '.$class);
}

if (! (new ReflectionClass($class))->hasMethod('run')) {
throw new Exception('Method run does not exist on: ' . $class);
throw new Exception('Method run does not exist on: '.$class);
}

(new $class)->run();
Expand Down

0 comments on commit 123b24f

Please sign in to comment.