From cf8341c3c1e1e974a703d6194e5cfec01b2e47b8 Mon Sep 17 00:00:00 2001 From: Denis Alustau Date: Mon, 6 Nov 2023 14:53:08 +0100 Subject: [PATCH] Fix coding standards --- src/HandlerResolver.php | 4 ++-- src/bref-init.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/HandlerResolver.php b/src/HandlerResolver.php index cfa0545..be1d988 100644 --- a/src/HandlerResolver.php +++ b/src/HandlerResolver.php @@ -99,8 +99,8 @@ private function resolveBootstrapLocation(): string return $bootstrapFile; } - // Going up 4 directories will get us from `vendor/brefphp/laravel-bridge/src` - // to the Laravel root folder so we can navigate to `bootstrap/app.php` + // Going up 4 directories will get us from `vendor/brefphp/laravel-bridge/src` + // to the Laravel root folder so we can navigate to `bootstrap/app.php` if (file_exists(__DIR__ . '/../../../../bootstrap/app.php')) { return realpath(__DIR__ . '/../../../../bootstrap/app.php'); } diff --git a/src/bref-init.php b/src/bref-init.php index fbdb657..fa0c55c 100644 --- a/src/bref-init.php +++ b/src/bref-init.php @@ -28,7 +28,7 @@ return; } - $defaultConfigCachePath = $laravelHome . '/bootstrap/cache/config.php'; + $defaultConfigCachePath = $laravelHome . '/bootstrap/cache/config.php'; if (file_exists($defaultConfigCachePath)) { return; @@ -54,11 +54,11 @@ function resolveBootstrapLocation(): string { $laravelHome = $_SERVER['LAMBDA_TASK_ROOT'] . '/bootstrap/cache/config.php'; - + if (file_exists($laravelHome)) { return $_SERVER['LAMBDA_TASK_ROOT']; } - // Going up 4 directories will get us from `vendor/brefphp/laravel-bridge/src` to the Laravel root folder + // Going up 4 directories will get us from `vendor/brefphp/laravel-bridge/src` to the Laravel root folder return realpath(__DIR__ . '/../../../../'); }