mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
Fix code styling
This commit is contained in:
committed by
github-actions[bot]
parent
b5e4228356
commit
cbb571f7ac
@@ -243,12 +243,12 @@ public function readLink(string $path): string
|
||||
public function removeBrokenLinksAt(string $path): void
|
||||
{
|
||||
collect($this->scandir($path))
|
||||
->filter(function ($file) use ($path) {
|
||||
return $this->isBrokenLink($path.'/'.$file);
|
||||
})
|
||||
->each(function ($file) use ($path) {
|
||||
$this->unlink($path.'/'.$file);
|
||||
});
|
||||
->filter(function ($file) use ($path) {
|
||||
return $this->isBrokenLink($path.'/'.$file);
|
||||
})
|
||||
->each(function ($file) use ($path) {
|
||||
$this->unlink($path.'/'.$file);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -265,9 +265,9 @@ public function isBrokenLink(string $path): bool
|
||||
public function scandir(string $path): array
|
||||
{
|
||||
return collect(scandir($path))
|
||||
->reject(function ($file) {
|
||||
return in_array($file, ['.', '..']);
|
||||
})->values()->all();
|
||||
->reject(function ($file) {
|
||||
return in_array($file, ['.', '..']);
|
||||
})->values()->all();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user