felixarntz/wp-site-identity

View on GitHub

Showing 247 of 247 total issues

Avoid excessively long class names like WP_Site_Identity_Widget_Not_Found_Exception. Keep class name length under 40.
Open

class WP_Site_Identity_Widget_Not_Found_Exception extends Exception {

}

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Setting_Validation_Error_Exception. Keep class name length under 40.
Open

class WP_Site_Identity_Setting_Validation_Error_Exception extends Exception {

}

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Setting_Feedback_Handler. Keep class name length under 40.
Open

class WP_Site_Identity_Setting_Feedback_Handler {

    /**
     * Prefix to use for all setting names in WordPress.
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Settings_Section_Not_Found_Exception. Keep class name length under 40.
Open

class WP_Site_Identity_Settings_Section_Not_Found_Exception extends Exception {

}

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Standard_Widget_Registry. Keep class name length under 40.
Open

class WP_Site_Identity_Standard_Widget_Registry implements WP_Site_Identity_Widget_Registry {

    /**
     * Prefix to use for all shortcode tags within WordPress.
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Setting_Not_Found_Exception. Keep class name length under 40.
Open

class WP_Site_Identity_Setting_Not_Found_Exception extends Exception {

}

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Settings_Field_Not_Found_Exception. Keep class name length under 40.
Open

class WP_Site_Identity_Settings_Field_Not_Found_Exception extends Exception {

}

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Standard_Setting_Registry. Keep class name length under 40.
Open

class WP_Site_Identity_Standard_Setting_Registry implements WP_Site_Identity_Setting_Registry {

    /**
     * Prefix to use for all setting names within WordPress.
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Shortcode_Not_Found_Exception. Keep class name length under 40.
Open

class WP_Site_Identity_Shortcode_Not_Found_Exception extends Exception {

}

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Standard_Shortcode_Registry. Keep class name length under 40.
Open

class WP_Site_Identity_Standard_Shortcode_Registry implements WP_Site_Identity_Shortcode_Registry {

    /**
     * Prefix to use for all shortcode tags within WordPress.
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Settings_Field_Control_Callbacks. Keep class name length under 40.
Open

final class WP_Site_Identity_Settings_Field_Control_Callbacks {

    /**
     * Renders a text control for a field.
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Settings_Section_Factory. Keep class name length under 40.
Open

class WP_Site_Identity_Settings_Section_Factory {

    /**
     * Registry to use for instantiating setting sections.
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Standard_Settings_Section_Registry. Keep class name length under 40.
Open

class WP_Site_Identity_Standard_Settings_Section_Registry implements WP_Site_Identity_Settings_Section_Registry {

    /**
     * All registered settings sections as `$slug => $instance` pairs.
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long variable names like $aggregate_setting_name. Keep variable name length under 20.
Open

            $aggregate_setting_name = $matches[1];

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long class names like WP_Site_Identity_Standard_Admin_Page_Registry. Keep class name length under 40.
Open

class WP_Site_Identity_Standard_Admin_Page_Registry implements WP_Site_Identity_Admin_Page_Registry {

    /**
     * Prefix to use for all admin page slugs within WordPress.
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Admin_Page_Not_Found_Exception. Keep class name length under 40.
Open

class WP_Site_Identity_Admin_Page_Not_Found_Exception extends Exception {

}

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long class names like WP_Site_Identity_Standard_Settings_Form_Registry. Keep class name length under 40.
Open

class WP_Site_Identity_Standard_Settings_Form_Registry implements WP_Site_Identity_Settings_Form_Registry {

    /**
     * All registered settings forms as `$slug => $instance` pairs.
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Avoid excessively long variable names like $brand_data_field_slug. Keep variable name length under 20.
Open

            foreach ( $brand_data_section['fields'] as $brand_data_field_slug ) {

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $address_single_settings. Keep variable name length under 20.
Open

        $address_single_settings = $address_fields;

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $aggregate_setting_name. Keep variable name length under 20.
Open

    private function print_partial( $aggregate_setting_name, $setting_name ) {

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Severity
Category
Status
Source
Language