intraxia/wp-gistpen

View on GitHub
app/Register/Data.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method post_type_gistpen has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function post_type_gistpen() {
        $labels = array(
            'name'               => _x( 'Gistpens', 'Post Type General Name', 'wp-gistpen' ),
            'singular_name'      => _x( 'Gistpen', 'Post Type Singular Name', 'wp-gistpen' ),
            'menu_name'          => __( 'Gistpens', 'wp-gistpen' ),
Severity: Minor
Found in app/Register/Data.php - About 1 hr to fix

    Method taxonomy_language has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function taxonomy_language() {
    
            $labels       = array(
                'name'                       => _x( 'Languages', 'Taxonomy General Name', 'wp-gistpen' ),
                'singular_name'              => _x( 'Language', 'Taxonomy Singular Name', 'wp-gistpen' ),
    Severity: Minor
    Found in app/Register/Data.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status