includes/admin/helper/class-wc-helper-api.php
Method _authenticate
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;