abrain/einsatzverwaltung

View on GitHub
src/Admin/Initializer.php

Summary

Maintainability
A
3 hrs
Test Coverage
F
0%

Method enqueueEditScripts has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function enqueueEditScripts($hook)
    {
        if ('post.php' == $hook || 'post-new.php' == $hook) {
            // Nur auf der Bearbeitungsseite anzeigen
            wp_enqueue_script(
Severity: Major
Found in src/Admin/Initializer.php - About 2 hrs to fix

    Method __construct has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    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'));
    Severity: Minor
    Found in src/Admin/Initializer.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status