Showing 2 of 2 total issues
Method process
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process( object $class ): object {
// If we have a valid SUB page.
if (
is_a( $class, Page::class )
&& is_admin()
Method admin_exception_notice
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function admin_exception_notice( $object, Throwable $exception ): void {
add_action(
'admin_notices',
function() use ( $object, $exception ) {
$class = 'notice notice-error';