rilwis/meta-box

View on GitHub
inc/fields/post.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method query has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function query( $meta, array $field ): array {
        $args = wp_parse_args( $field['query_args'], [
            'no_found_rows'          => true,
            'update_post_meta_cache' => false,
            'update_post_term_cache' => false,
Severity: Minor
Found in inc/fields/post.php - About 1 hr to fix

    Method normalize has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function normalize( $field ) {
            $field = wp_parse_args( $field, [
                'post_type'  => 'post',
                'parent'     => false,
                'query_args' => [],
    Severity: Minor
    Found in inc/fields/post.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status