presscodes/maera

View on GitHub
includes/class-maera-core-customizer.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

    function add_controls( $wp_customize ) {

        // Get the available shells and format the array properly
        $available_shells = apply_filters( 'maera/shells/available', array() );
        $shells = array();
Severity: Minor
Found in includes/class-maera-core-customizer.php - About 1 hr to fix

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

        function add_settings( $wp_customize ) {
    
            $wp_customize->add_setting( 'maera_admin_options[shell]', array(
                'default'        => 'core',
                'type'           => 'option',
    Severity: Minor
    Found in includes/class-maera-core-customizer.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status