File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Illuminate/Foundation/Console Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class StorageLinkCommand extends Command
13
13
*/
14
14
protected $ signature = 'storage:link
15
15
{--relative : Create the symbolic link using relative paths}
16
- {--force : Recreate already existing symbolic links} ' ;
16
+ {--force : Recreate existing symbolic links} ' ;
17
17
18
18
/**
19
19
* The console command description.
@@ -30,10 +30,9 @@ class StorageLinkCommand extends Command
30
30
public function handle ()
31
31
{
32
32
$ relative = $ this ->option ('relative ' );
33
- $ force = $ this ->option ('force ' );
34
33
35
34
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 ' ) )) {
37
36
$ this ->error ("The [ $ link] link already exists. " );
38
37
continue ;
39
38
}
@@ -66,7 +65,7 @@ protected function links()
66
65
}
67
66
68
67
/**
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 .
70
69
*
71
70
* @param string $link
72
71
* @param bool $force
You can’t perform that action at this time.
0 commit comments