woothemes/woocommerce

View on GitHub
includes/admin/settings/class-wc-settings-accounts.php

Summary

Maintainability
C
7 hrs
Test Coverage

Method get_settings has 193 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function get_settings() {
        $erasure_text = esc_html__( 'account erasure request', 'woocommerce' );
        $privacy_text = esc_html__( 'privacy page', 'woocommerce' );
        if ( current_user_can( 'manage_privacy_options' ) ) {
            if ( version_compare( get_bloginfo( 'version' ), '5.3', '<' ) ) {
Severity: Major
Found in includes/admin/settings/class-wc-settings-accounts.php - About 7 hrs to fix

    There are no issues that match your filters.

    Category
    Status