Merge pull request #108 from beyondcode/analysis-J2x92V

Apply fixes from StyleCI
This commit is contained in:
Marcel Pociot authored and GitHub committed 2020-08-13 00:20:14 +02:00
commit 13f184a955
1 file changed
+3 -3
@@ -41,11 +41,11 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
if (is_dir($valetSitesPath)) { if (is_dir($valetSitesPath)) {
$site = collect(scandir($valetSitesPath)) $site = collect(scandir($valetSitesPath))
->skip(2) ->skip(2)
->map(function($site) use($valetSitesPath) { ->map(function ($site) use ($valetSitesPath) {
return $valetSitesPath.DIRECTORY_SEPARATOR.$site; return $valetSitesPath.DIRECTORY_SEPARATOR.$site;
})->mapWithKeys(function($site){ })->mapWithKeys(function ($site) {
return [$site => readlink($site)]; return [$site => readlink($site)];
})->filter(function($sourcePath) use($projectPath) { })->filter(function ($sourcePath) use ($projectPath) {
return $sourcePath === $projectPath; return $sourcePath === $projectPath;
}) })
->keys() ->keys()