| @@ -118,9 +118,9 @@ | ||
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * Retrieves one item from the collection. |
| 121 | 121 | * |
| 122 | - * @param string $id | |
| 122 | + * @param string $id | |
| 123 | 123 | * @param \WP_REST_Request $request Full data about the request. |
| 124 | 124 | * |
| 125 | 125 | * @return \WP_Error|\WP_REST_Response Response object on success, or WP_Error object on failure. |
| 126 | 126 | */ |
| @@ -141,9 +141,9 @@ | ||
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | 143 | * Creates one item. |
| 144 | 144 | * |
| 145 | - * @param string $id id of request item. | |
| 145 | + * @param string $id id of request item. | |
| 146 | 146 | * @param \WP_REST_Request $request Full data about the request. |
| 147 | 147 | * |
| 148 | 148 | * @return \WP_Error|\WP_REST_Response Response object on success, or WP_Error object on failure. |
| 149 | 149 | */ |
| @@ -164,9 +164,9 @@ | ||
| 164 | 164 | |
| 165 | 165 | /** |
| 166 | 166 | * Updates one item. |
| 167 | 167 | * |
| 168 | - * @param string $id id of request item. | |
| 168 | + * @param string $id id of request item. | |
| 169 | 169 | * @param \WP_REST_Request $request Full data about the request. |
| 170 | 170 | * |
| 171 | 171 | * @return \WP_Error|\WP_REST_Response Response object on success, or WP_Error object on failure. |
| 172 | 172 | */ |
| @@ -187,9 +187,9 @@ | ||
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | 189 | * Delete one item. |
| 190 | 190 | * |
| 191 | - * @param string $id id of request item. | |
| 191 | + * @param string $id id of request item. | |
| 192 | 192 | * @param \WP_REST_Request $request Full data about the request. |
| 193 | 193 | * |
| 194 | 194 | * @return \WP_Error|\WP_REST_Response Response object on success, or WP_Error object on failure. |
| 195 | 195 | */ |
| @@ -248,9 +248,9 @@ | ||
| 248 | 248 | /** |
| 249 | 249 | * Register items route. |
| 250 | 250 | * |
| 251 | 251 | * @param string $methods |
| 252 | - * @param array $args | |
| 252 | + * @param array $args | |
| 253 | 253 | */ |
| 254 | 254 | public function register_items_route( $methods = WP_REST_Server::READABLE, $args = [] ) { |
| 255 | 255 | $args['is_multi'] = true; |
| 256 | 256 | |
| @@ -291,12 +291,12 @@ | ||
| 291 | 291 | /** |
| 292 | 292 | * Base callback. |
| 293 | 293 | * All reset requests from the client should pass this function. |
| 294 | 294 | * |
| 295 | - * @param string $methods | |
| 295 | + * @param string $methods | |
| 296 | 296 | * @param \WP_REST_Request $request |
| 297 | - * @param bool $is_multi | |
| 298 | - * @param array $args | |
| 297 | + * @param bool $is_multi | |
| 298 | + * @param array $args | |
| 299 | 299 | * |
| 300 | 300 | * @return mixed|\WP_Error|\WP_HTTP_Response|\WP_REST_Response |
| 301 | 301 | */ |
| 302 | 302 | public function base_callback( $methods, $request, $is_multi = false, $args = [] ) { |
| @@ -361,9 +361,9 @@ | ||
| 361 | 361 | * |
| 362 | 362 | * Run `$this->register()`. |
| 363 | 363 | * |
| 364 | 364 | * @param \Elementor\Data\V2\Base\Controller $controller |
| 365 | - * @param string $route | |
| 365 | + * @param string $route | |
| 366 | 366 | */ |
| 367 | 367 | protected function __construct( Controller $controller, $route ) { |
| 368 | 368 | $this->controller = $controller; |
| 369 | 369 | $this->route = $this->ensure_slashes( $route ); |