woothemes/woocommerce

View on GitHub
includes/data-stores/class-wc-customer-download-log-data-store.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method get_download_logs has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function get_download_logs( $args = array() ) {
        global $wpdb;

        $args = wp_parse_args(
            $args,
Severity: Minor
Found in includes/data-stores/class-wc-customer-download-log-data-store.php - About 1 hr to fix

    Method create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function create( WC_Customer_Download_Log &$download_log ) {
            global $wpdb;
    
            // Always set a timestamp.
            if ( is_null( $download_log->get_timestamp( 'edit' ) ) ) {
    Severity: Minor
    Found in includes/data-stores/class-wc-customer-download-log-data-store.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status