PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.2
Elementor Website Builder – more than just a page builder v3.25.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | data/v2/manager.php +14 -13 4.2.23.25.2 View file →
@@ -5,9 +5,9 @@
5 5 use Elementor\Data\V2\Base\Processor;
6 6 use Elementor\Data\V2\Base\Controller;
7 7
8 8 if ( ! defined( 'ABSPATH' ) ) {
9 - exit; // Exit if accessed directly.
9 + exit; // Exit if accessed directly
10 10 }
11 11
12 12 /**
13 13 * @method static \Elementor\Data\V2\Manager instance()
@@ -96,8 +96,9 @@
96 96 * Register endpoint format.
97 97 *
98 98 * @param string $command
99 99 * @param string $format
100 + *
100 101 */
101 102 public function register_endpoint_format( $command, $format ) {
102 103 $this->command_formats[ $command ] = untrailingslashit( $format );
103 104 }
@@ -133,9 +134,9 @@
133 134 /**
134 135 * Command extract args.
135 136 *
136 137 * @param string $command
137 - * @param array $args
138 + * @param array $args
138 139 *
139 140 * @return \stdClass
140 141 */
141 142 public function command_extract_args( $command, $args = [] ) {
@@ -241,10 +242,10 @@
241 242
242 243 /**
243 244 * Run processor.
244 245 *
245 - * @param Processor $processor
246 - * @param array $data
246 + * @param \Elementor\Data\V2\Base\Processor $processor
247 + * @param array $data
247 248 *
248 249 * @return mixed
249 250 */
250 251 public function run_processor( $processor, $data ) {
@@ -259,11 +260,11 @@
259 260 * Run processors.
260 261 *
261 262 * Filter them by class.
262 263 *
263 - * @param Processor[] $processors
264 - * @param string $filter_by_class
265 - * @param array $data
264 + * @param \Elementor\Data\V2\Base\Processor[] $processors
265 + * @param string $filter_by_class
266 + * @param array $data
266 267 *
267 268 * @return false|array
268 269 */
269 270 public function run_processors( $processors, $filter_by_class, $data ) {
@@ -292,19 +293,19 @@
292 293 * Simulate rest API from within the backend.
293 294 * Use args as query.
294 295 *
295 296 * @param string $endpoint
296 - * @param array $args
297 + * @param array $args
297 298 * @param string $method
298 - * @param string $name_space Optional.
299 - * @param string $version Optional.
299 + * @param string $namespace (optional)
300 + * @param string $version (optional)
300 301 *
301 302 * @return \WP_REST_Response
302 303 */
303 - public function run_request( $endpoint, $args = [], $method = \WP_REST_Server::READABLE, $name_space = self::ROOT_NAMESPACE, $version = self::VERSION ) {
304 + public function run_request( $endpoint, $args = [], $method = \WP_REST_Server::READABLE, $namespace = self::ROOT_NAMESPACE, $version = self::VERSION ) {
304 305 $this->run_server();
305 306
306 - $endpoint = '/' . $name_space . '/v' . $version . '/' . trim( $endpoint, '/' );
307 + $endpoint = '/' . $namespace . '/v' . $version . '/' . trim( $endpoint, '/' );
307 308
308 309 // Run reset api.
309 310 $request = new \WP_REST_Request( $method, $endpoint );
310 311
@@ -322,9 +323,9 @@
322 323 *
323 324 * Wrapper for `$this->run_request` return `$response->getData()` instead of `$response`.
324 325 *
325 326 * @param string $endpoint
326 - * @param array $args
327 + * @param array $args
327 328 * @param string $method
328 329 *
329 330 * @return array
330 331 */