From 730bc7d3b3faded6c9aa0bb8247b33a35cd63ce7 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Sun, 5 Mar 2023 01:48:07 +0000 Subject: [PATCH] chore: code style --- src/Bootstrappers/BootFiles.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Bootstrappers/BootFiles.php b/src/Bootstrappers/BootFiles.php index 98bb2dec..3add2a70 100644 --- a/src/Bootstrappers/BootFiles.php +++ b/src/Bootstrappers/BootFiles.php @@ -66,10 +66,12 @@ final class BootFiles implements Bootstrapper */ private function load(string $filename): void { - if (! Str::endsWith($filename, '.php') || ! file_exists($filename)) { + if (! Str::endsWith($filename, '.php')) { + return; + } + if (! file_exists($filename)) { return; } - include_once $filename; }