[2.x] shorter if condition

This commit is contained in:
Alireza
2023-03-03 23:27:25 +03:30
parent b6b8a72a6a
commit fc747c306d

View File

@ -66,11 +66,7 @@ final class BootFiles implements Bootstrapper
*/
private function load(string $filename): void
{
if (! Str::endsWith($filename, '.php')) {
return;
}
if (! file_exists($filename)) {
if (! Str::endsWith($filename, '.php') || ! file_exists($filename)) {
return;
}