src/Admin/Initializer.php
Method enqueueEditScripts
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function enqueueEditScripts($hook)
{
if ('post.php' == $hook || 'post-new.php' == $hook) {
// Nur auf der Bearbeitungsseite anzeigen
wp_enqueue_script(
Method __construct
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(Data $data, Options $options, Utilities $utilities, PermalinkController $permalinkController)
{
$pluginBasename = Core::$pluginBasename;
add_action('admin_menu', array($this, 'hideTaxonomies'));
add_action('admin_notices', array($this, 'displayAdminNotices'));