src/includes/AdminNotices/Helpers/AdminNoticesHelpersTrait.php
Method get_admin_notice_handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 ) {