rilwis/meta-box

View on GitHub
src/Support/Data.php

Summary

Maintainability
D
2 days
Test Coverage

Method get_dashicons has 306 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function get_dashicons() {
        return [
            'admin-appearance',
            'admin-collapse',
            'admin-comments',
Severity: Major
Found in src/Support/Data.php - About 1 day to fix

    File Data.php has 356 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    namespace MetaBox\Support;
    
    class Data {
        public static function get_post_types() {
    Severity: Minor
    Found in src/Support/Data.php - About 4 hrs to fix

      Method get_post_types has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function get_post_types() {
              $unsupported = [
                  // WordPress built-in post types.
                  'customize_changeset',
                  'custom_css',
      Severity: Minor
      Found in src/Support/Data.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status