woothemes/woocommerce

View on GitHub
includes/admin/helper/class-wc-helper-api.php

Summary

Maintainability
A
1 hr
Test Coverage

Method _authenticate has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static function _authenticate( &$url, &$args ) {
        $auth = WC_Helper_Options::get( 'auth' );

        if ( empty( $auth['access_token'] ) || empty( $auth['access_token_secret'] ) ) {
            return false;
Severity: Minor
Found in includes/admin/helper/class-wc-helper-api.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status