deep-web-solutions/wordpress-framework-utilities

View on GitHub
src/includes/AdminNotices/Helpers/AdminNoticesHelpersTrait.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function get_admin_notice_handle( string $name = '', $extra = array(), string $root = 'dws-framework-utilities' ): string {
        if ( $this instanceof PluginComponentInterface ) {
            $root = ( 'dws-framework-utilities' === $root ) ? '' : $root;
            $root = \join( '_', array( $this->get_plugin()->get_plugin_slug(), $root ?: $this->get_name() ) );
        } elseif ( 'dws-framework-utilities' === $root ) {
Severity: Minor
Found in src/includes/AdminNotices/Helpers/AdminNoticesHelpersTrait.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status