Minor: Remove some unreachable code.
trigger_error() should stop execution when the error type is E_USER_ERROR.
This commit is contained in:
parent
2b97a8f712
commit
d86f4f4b94
|
|
@ -114,7 +114,6 @@ if ( !class_exists(PucFactory::class, false) ):
|
|||
),
|
||||
E_USER_ERROR
|
||||
);
|
||||
return null;
|
||||
}
|
||||
|
||||
if ( !isset($apiClass) ) {
|
||||
|
|
@ -129,7 +128,6 @@ if ( !class_exists(PucFactory::class, false) ):
|
|||
htmlentities(self::$latestCompatibleVersion),
|
||||
htmlentities($service)
|
||||
), E_USER_ERROR);
|
||||
return null;
|
||||
}
|
||||
|
||||
return new $checkerClass(
|
||||
|
|
|
|||
Loading…
Reference in New Issue