mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
[2.x] shorter if condition
This commit is contained in:
@ -66,11 +66,7 @@ final class BootFiles implements Bootstrapper
|
|||||||
*/
|
*/
|
||||||
private function load(string $filename): void
|
private function load(string $filename): void
|
||||||
{
|
{
|
||||||
if (! Str::endsWith($filename, '.php')) {
|
if (! Str::endsWith($filename, '.php') || ! file_exists($filename)) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! file_exists($filename)) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user