1
0
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:
mattstauffer
2023-04-26 13:13:37 +00:00
committed by github-actions[bot]
parent b5e4228356
commit cbb571f7ac
4 changed files with 41 additions and 41 deletions

View File

@@ -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();
}
/**