includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php
Method register_routes
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'shipping_zone',
'type' => 'object',