Skip to content

Commit 3e547d2

Browse files
committed
formatting
1 parent e4b509e commit 3e547d2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Illuminate/Foundation/Console/StorageLinkCommand.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class StorageLinkCommand extends Command
1313
*/
1414
protected $signature = 'storage:link
1515
{--relative : Create the symbolic link using relative paths}
16-
{--force : Recreate already existing symbolic links}';
16+
{--force : Recreate existing symbolic links}';
1717

1818
/**
1919
* The console command description.
@@ -30,10 +30,9 @@ class StorageLinkCommand extends Command
3030
public function handle()
3131
{
3232
$relative = $this->option('relative');
33-
$force = $this->option('force');
3433

3534
foreach ($this->links() as $link => $target) {
36-
if (file_exists($link) && ! $this->removableSymlink($link, $force)) {
35+
if (file_exists($link) && ! $this->removableSymlink($link, $this->option('force'))) {
3736
$this->error("The [$link] link already exists.");
3837
continue;
3938
}
@@ -66,7 +65,7 @@ protected function links()
6665
}
6766

6867
/**
69-
* Checks that the provided path is a symlink and force option is turned on.
68+
* Determine if the provided path is a symlink that can be removed.
7069
*
7170
* @param string $link
7271
* @param bool $force

0 commit comments

Comments
 (0)