Skip to content

Commit

Permalink
Just a tad cleaner (#36359)
Browse files Browse the repository at this point in the history
* Just a tad cleaner

* spacing
  • Loading branch information
Norgul authored Feb 23, 2021
1 parent 3404185 commit 663f7e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Filesystem/FilesystemManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ protected function resolve($name)

$driverMethod = 'create'.ucfirst($name).'Driver';

if (method_exists($this, $driverMethod)) {
return $this->{$driverMethod}($config);
} else {
if (! method_exists($this, $driverMethod)) {
throw new InvalidArgumentException("Driver [{$name}] is not supported.");
}

return $this->{$driverMethod}($config);
}

/**
Expand Down

0 comments on commit 663f7e7

Please sign in to comment.