woothemes/woocommerce

View on GitHub
includes/rest-api/Controllers/Version2/class-wc-rest-network-orders-v2-controller.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method get_public_item_schema has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function get_public_item_schema() {
        $schema = parent::get_public_item_schema();

        $schema['properties']['blog']              = array(
            'description' => __( 'Blog id of the record on the multisite.', 'woocommerce' ),

    Method network_orders has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function network_orders( $request ) {
            $blog_id = $request->get_param( 'blog_id' );
            $blog_id = ! empty( $blog_id ) ? $blog_id : get_current_blog_id();
            $active_plugins = get_blog_option( $blog_id, 'active_plugins', array() );
            $network_active_plugins = array_keys( get_site_option( 'active_sitewide_plugins', array() ) );

      There are no issues that match your filters.

      Category
      Status