Skip to content

Commit 663f7e7

Browse files
authored
Just a tad cleaner (#36359)
* Just a tad cleaner * spacing
1 parent 3404185 commit 663f7e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ protected function resolve($name)
125125

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

128-
if (method_exists($this, $driverMethod)) {
129-
return $this->{$driverMethod}($config);
130-
} else {
128+
if (! method_exists($this, $driverMethod)) {
131129
throw new InvalidArgumentException("Driver [{$name}] is not supported.");
132130
}
131+
132+
return $this->{$driverMethod}($config);
133133
}
134134

135135
/**

0 commit comments

Comments
 (0)