From 0d5f34817e177f3ab7b5308aa15cb0e1f4e57f63 Mon Sep 17 00:00:00 2001 From: Enzo Innocenzi Date: Sat, 9 Oct 2021 19:26:15 +0200 Subject: [PATCH] style: new line before `return` --- src/Exceptions/ManifestNotFound.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Exceptions/ManifestNotFound.php b/src/Exceptions/ManifestNotFound.php index e66a749..9b7844c 100644 --- a/src/Exceptions/ManifestNotFound.php +++ b/src/Exceptions/ManifestNotFound.php @@ -27,11 +27,12 @@ public function getSolution(): Solution $baseCommand = collect([ 'pnpm-lock.yaml' => 'pnpm', 'yarn.lock' => 'yarn', - ])->reduce(function ($_, $command, $lockFile) { + ])->reduce(function ($default, $command, $lockFile) { if (File::exists(base_path($lockFile))) { return $command; } - return $_; + + return $default; }, 'npm run'); return App::environment('local')