Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 2, 2018
1 parent 66eae04 commit cbfb4fb
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/Illuminate/Filesystem/FilesystemManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,19 +325,6 @@ public function set($name, $disk)
$this->disks[$name] = $disk;
}

/**
* Unset the given disks instances.
*
* @param array $names
* @return void
*/
public function unset($names)
{
foreach ($names as $name) {
unset($this->disks[$name]);
}
}

/**
* Get the filesystem connection configuration.
*
Expand Down Expand Up @@ -369,6 +356,21 @@ public function getDefaultCloudDriver()
return $this->app['config']['filesystems.cloud'];
}

/**
* Unset the given disk instances.
*
* @param array|string $disk
* @return $this
*/
public function forgetDisk($disk)
{
foreach ((array) $disk as $diskName) {
unset($this->disks[$diskName]);
}

return $this;
}

/**
* Register a custom driver creator Closure.
*
Expand Down

0 comments on commit cbfb4fb

Please sign in to comment.