mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +01:00
Code quality improvements
This commit is contained in:
@ -63,8 +63,12 @@ final class BootFiles
|
||||
*/
|
||||
private function load(string $filename): void
|
||||
{
|
||||
if (Str::endsWith($filename, '.php') && file_exists($filename)) {
|
||||
include_once $filename;
|
||||
if (! Str::endsWith($filename, '.php')) {
|
||||
return;
|
||||
}
|
||||
if (! file_exists($filename)) {
|
||||
return;
|
||||
}
|
||||
include_once $filename;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user