woothemes/woocommerce

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

Summary

Maintainability
A
3 hrs
Test Coverage

Method register_routes has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function register_routes() {
        register_rest_route(
            $this->namespace, '/' . $this->rest_base, array(
                array(
                    'methods'             => WP_REST_Server::READABLE,

    Method get_item_schema has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function get_item_schema() {
            $schema = array(
                '$schema'    => 'http://json-schema.org/draft-04/schema#',
                'title'      => 'shipping_zone',
                'type'       => 'object',

      There are no issues that match your filters.

      Category
      Status