woothemes/woocommerce

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

Summary

Maintainability
D
2 days
Test Coverage

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

    public function get_settings( $current_section = '' ) {
        if ( 'inventory' === $current_section ) {
            $settings = apply_filters(
                'woocommerce_inventory_settings',
                array(
Severity: Major
Found in includes/admin/settings/class-wc-settings-products.php - About 1 day to fix

    File class-wc-settings-products.php has 381 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * WooCommerce Product Settings
     *
     * @package WooCommerce\Admin
    Severity: Minor
    Found in includes/admin/settings/class-wc-settings-products.php - About 5 hrs to fix

      There are no issues that match your filters.

      Category
      Status