Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #349 from alleyinteractive/hotfix/endpoints-docblo…
Browse files Browse the repository at this point in the history
…ck-corrections

Fixes incorrect dockblock types
  • Loading branch information
amyevans authored Sep 28, 2021
2 parents ec2e2c0 + 51c16eb commit d5c0295
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions inc/endpoints/class-components-endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public function register_rest_routes() {
* Callback for the route.
*
* @param WP_REST_Request $request Request object.
*
* @return array
* @return \WP_REST_Response
*/
public function get_route_response( $request ) {

Expand Down Expand Up @@ -176,13 +175,13 @@ function( $key ) {
/**
* Modify the output of the components route.
*
* @param array $data Data for response.
* @param WP_Query $query WP_Query object corresponding
* to this request.
* @param string $context The context for this request.
* @param string $path The path for this request.
* @param WP_REST_Request $request WP_REST_Request object.
* @param \Components_Endpoint $this Current class instance.
* @param array $data Data for response.
* @param WP_Query $query WP_Query object corresponding
* to this request.
* @param string $context The context for this request.
* @param string $path The path for this request.
* @param WP_REST_Request $request WP_REST_Request object.
* @param Components_Endpoint $this Current class instance.
*/
$data = (array) apply_filters(
'wp_irving_components_route',
Expand Down

0 comments on commit d5c0295

Please sign in to comment.