Pink-Crab/Perique_Admin_Menu

View on GitHub

Showing 2 of 2 total issues

Method process has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function process( object $class ): object {
        // If we have a valid SUB page.
        if (
            is_a( $class, Page::class )
            && is_admin()
Severity: Minor
Found in src/Module/Page_Middleware.php - About 1 hr to fix

    Method admin_exception_notice has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function admin_exception_notice( $object, Throwable $exception ): void {
            add_action(
                'admin_notices',
                function() use ( $object, $exception ) {
                    $class   = 'notice notice-error';
    Severity: Minor
    Found in src/Registrar/Page_Dispatcher.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language