| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | use Elementor\Core\Base\Module as BaseModule; |
| 5 | 5 | use Elementor\Data\Base\Processor; |
| 6 | 6 | |
| 7 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | - exit; // Exit if accessed directly. | |
| 8 | + exit; // Exit if accessed directly | |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | class Manager extends BaseModule { |
| 12 | 12 | |
| @@ -109,8 +109,9 @@ | ||
| 109 | 109 | * Register endpoint format. |
| 110 | 110 | * |
| 111 | 111 | * @param string $command |
| 112 | 112 | * @param string $format |
| 113 | + * | |
| 113 | 114 | */ |
| 114 | 115 | public function register_endpoint_format( $command, $format ) { |
| 115 | 116 | $this->command_formats[ $command ] = rtrim( $format, '/' ); |
| 116 | 117 | } |
| @@ -153,9 +154,9 @@ | ||
| 153 | 154 | /** |
| 154 | 155 | * Command extract args. |
| 155 | 156 | * |
| 156 | 157 | * @param string $command |
| 157 | - * @param array $args | |
| 158 | + * @param array $args | |
| 158 | 159 | * |
| 159 | 160 | * @return \stdClass |
| 160 | 161 | */ |
| 161 | 162 | public function command_extract_args( $command, $args = [] ) { |
| @@ -261,10 +262,10 @@ | ||
| 261 | 262 | |
| 262 | 263 | /** |
| 263 | 264 | * Run processor. |
| 264 | 265 | * |
| 265 | - * @param Processor $processor | |
| 266 | - * @param array $data | |
| 266 | + * @param \Elementor\Data\Base\Processor $processor | |
| 267 | + * @param array $data | |
| 267 | 268 | * |
| 268 | 269 | * @return mixed |
| 269 | 270 | */ |
| 270 | 271 | public function run_processor( $processor, $data ) { |
| @@ -279,11 +280,11 @@ | ||
| 279 | 280 | * Run processors. |
| 280 | 281 | * |
| 281 | 282 | * Filter them by class. |
| 282 | 283 | * |
| 283 | - * @param Processor[] $processors | |
| 284 | - * @param string $filter_by_class | |
| 285 | - * @param array $data | |
| 284 | + * @param \Elementor\Data\Base\Processor[] $processors | |
| 285 | + * @param string $filter_by_class | |
| 286 | + * @param array $data | |
| 286 | 287 | * |
| 287 | 288 | * @return false|array |
| 288 | 289 | */ |
| 289 | 290 | public function run_processors( $processors, $filter_by_class, $data ) { |
| @@ -312,9 +313,9 @@ | ||
| 312 | 313 | * Simulate rest API from within the backend. |
| 313 | 314 | * Use args as query. |
| 314 | 315 | * |
| 315 | 316 | * @param string $endpoint |
| 316 | - * @param array $args | |
| 317 | + * @param array $args | |
| 317 | 318 | * @param string $method |
| 318 | 319 | * |
| 319 | 320 | * @return \WP_REST_Response |
| 320 | 321 | */ |
| @@ -340,9 +341,9 @@ | ||
| 340 | 341 | * |
| 341 | 342 | * Wrapper for `$this->run_request` return `$response->getData()` instead of `$response`. |
| 342 | 343 | * |
| 343 | 344 | * @param string $endpoint |
| 344 | - * @param array $args | |
| 345 | + * @param array $args | |
| 345 | 346 | * @param string $method |
| 346 | 347 | * |
| 347 | 348 | * @return array |
| 348 | 349 | */ |