Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 27, 2021
1 parent e4b509e commit 3e547d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Illuminate/Foundation/Console/StorageLinkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class StorageLinkCommand extends Command
*/
protected $signature = 'storage:link
{--relative : Create the symbolic link using relative paths}
{--force : Recreate already existing symbolic links}';
{--force : Recreate existing symbolic links}';

/**
* The console command description.
Expand All @@ -30,10 +30,9 @@ class StorageLinkCommand extends Command
public function handle()
{
$relative = $this->option('relative');
$force = $this->option('force');

foreach ($this->links() as $link => $target) {
if (file_exists($link) && ! $this->removableSymlink($link, $force)) {
if (file_exists($link) && ! $this->removableSymlink($link, $this->option('force'))) {
$this->error("The [$link] link already exists.");
continue;
}
Expand Down Expand Up @@ -66,7 +65,7 @@ protected function links()
}

/**
* Checks that the provided path is a symlink and force option is turned on.
* Determine if the provided path is a symlink that can be removed.
*
* @param string $link
* @param bool $force
Expand Down

0 comments on commit 3e547d2

Please sign in to comment.