| @@ -133,9 +133,9 @@ | ||
| 133 | 133 | /** |
| 134 | 134 | * Command extract args. |
| 135 | 135 | * |
| 136 | 136 | * @param string $command |
| 137 | - * @param array $args | |
| 137 | + * @param array $args | |
| 138 | 138 | * |
| 139 | 139 | * @return \stdClass |
| 140 | 140 | */ |
| 141 | 141 | public function command_extract_args( $command, $args = [] ) { |
| @@ -241,10 +241,10 @@ | ||
| 241 | 241 | |
| 242 | 242 | /** |
| 243 | 243 | * Run processor. |
| 244 | 244 | * |
| 245 | - * @param Processor $processor | |
| 246 | - * @param array $data | |
| 245 | + * @param \Elementor\Data\V2\Base\Processor $processor | |
| 246 | + * @param array $data | |
| 247 | 247 | * |
| 248 | 248 | * @return mixed |
| 249 | 249 | */ |
| 250 | 250 | public function run_processor( $processor, $data ) { |
| @@ -259,11 +259,11 @@ | ||
| 259 | 259 | * Run processors. |
| 260 | 260 | * |
| 261 | 261 | * Filter them by class. |
| 262 | 262 | * |
| 263 | - * @param Processor[] $processors | |
| 264 | - * @param string $filter_by_class | |
| 265 | - * @param array $data | |
| 263 | + * @param \Elementor\Data\V2\Base\Processor[] $processors | |
| 264 | + * @param string $filter_by_class | |
| 265 | + * @param array $data | |
| 266 | 266 | * |
| 267 | 267 | * @return false|array |
| 268 | 268 | */ |
| 269 | 269 | public function run_processors( $processors, $filter_by_class, $data ) { |
| @@ -292,19 +292,19 @@ | ||
| 292 | 292 | * Simulate rest API from within the backend. |
| 293 | 293 | * Use args as query. |
| 294 | 294 | * |
| 295 | 295 | * @param string $endpoint |
| 296 | - * @param array $args | |
| 296 | + * @param array $args | |
| 297 | 297 | * @param string $method |
| 298 | - * @param string $name_space Optional. | |
| 299 | - * @param string $version Optional. | |
| 298 | + * @param string $namespace Optional. | |
| 299 | + * @param string $version Optional. | |
| 300 | 300 | * |
| 301 | 301 | * @return \WP_REST_Response |
| 302 | 302 | */ |
| 303 | - public function run_request( $endpoint, $args = [], $method = \WP_REST_Server::READABLE, $name_space = self::ROOT_NAMESPACE, $version = self::VERSION ) { | |
| 303 | + public function run_request( $endpoint, $args = [], $method = \WP_REST_Server::READABLE, $namespace = self::ROOT_NAMESPACE, $version = self::VERSION ) { | |
| 304 | 304 | $this->run_server(); |
| 305 | 305 | |
| 306 | - $endpoint = '/' . $name_space . '/v' . $version . '/' . trim( $endpoint, '/' ); | |
| 306 | + $endpoint = '/' . $namespace . '/v' . $version . '/' . trim( $endpoint, '/' ); | |
| 307 | 307 | |
| 308 | 308 | // Run reset api. |
| 309 | 309 | $request = new \WP_REST_Request( $method, $endpoint ); |
| 310 | 310 | |
| @@ -322,9 +322,9 @@ | ||
| 322 | 322 | * |
| 323 | 323 | * Wrapper for `$this->run_request` return `$response->getData()` instead of `$response`. |
| 324 | 324 | * |
| 325 | 325 | * @param string $endpoint |
| 326 | - * @param array $args | |
| 326 | + * @param array $args | |
| 327 | 327 | * @param string $method |
| 328 | 328 | * |
| 329 | 329 | * @return array |
| 330 | 330 | */ |