diff --git a/README.md b/README.md index 0081d8a120..c8b20e52d1 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,10 @@ Now you can build the files using one of these commands: - `npm run start` : Build a development version, watch files for changes - `npm run start:hot` : Build a development version in Fast Refresh mode, watch files for changes. +Notice this repository has `engine-strict=true` directive set. That means you cannot install dependencies with other Node engines rather than the ones defined in the `engines` directive inside [package.json](./package.json). It's recommended to use [NVM](https://github.com/nvm-sh/nvm) and run `nvm use` before installing the dependencies to be sure you're using the recommended Node version. + +We added Node `^18` and npm `^9` to allow dependabot to update our dependencies. But these are not supported versions. + ## Working with DEWP The Dependency Extraction Webpack Plugin makes working with frontend dependencies not so obvious, check [`Working with DEWP.md`](Working with DEWP.md) for more details. diff --git a/bin/GoogleAdsCleanupServices.php b/bin/GoogleAdsCleanupServices.php index 0354e1450e..99493195ff 100644 --- a/bin/GoogleAdsCleanupServices.php +++ b/bin/GoogleAdsCleanupServices.php @@ -160,36 +160,36 @@ protected function remove_enums() { foreach ( array_diff( $library_enums, $used_enums ) as $enum ) { $this->remove_enum( $enum ); - }; + } } /** * Remove a specific enum. * - * @param string $enum Enum name. + * @param string $enum_name Enum name. */ - protected function remove_enum( string $enum ) { - $this->output_text( "Removing enum {$enum}" ); + protected function remove_enum( string $enum_name ) { + $this->output_text( "Removing enum {$enum_name}" ); $this->src_path = '/src/Google/Ads/GoogleAds'; - $this->remove_file( "/{$this->version}/Enums/{$enum}Enum.php" ); - $this->remove_file( "/{$this->version}/Enums/{$enum}Enum_{$enum}.php" ); - $this->remove_file( "/{$this->version}/Enums/{$enum}Enum/{$enum}.php" ); - $this->remove_directory( "/{$this->version}/Enums/{$enum}Enum" ); + $this->remove_file( "/{$this->version}/Enums/{$enum_name}Enum.php" ); + $this->remove_file( "/{$this->version}/Enums/{$enum_name}Enum_{$enum_name}.php" ); + $this->remove_file( "/{$this->version}/Enums/{$enum_name}Enum/{$enum_name}.php" ); + $this->remove_directory( "/{$this->version}/Enums/{$enum_name}Enum" ); // Remove metadata files. $this->src_path = '/metadata/Google/Ads/GoogleAds'; - $this->remove_file( "/{$this->version}/Enums/{$enum}.php" ); + $this->remove_file( "/{$this->version}/Enums/{$enum_name}.php" ); } /** * Find a list of files in a path, including subdirectories, matching a pattern. * - * @param string $path Package path - * @param string $match Regex pattern to match + * @param string $path Package path + * @param string $pattern Regex pattern to match * @return array Matching files */ - protected function get_dir_contents( $path, $match ) { + protected function get_dir_contents( $path, $pattern ) { try { $rdi = new RecursiveDirectoryIterator( $path ); } catch ( UnexpectedValueException $e ) { @@ -203,7 +203,7 @@ protected function get_dir_contents( $path, $match ) { } $rii = new RecursiveIteratorIterator( $rdi ); - $rri = new RegexIterator( $rii, $match ); + $rri = new RegexIterator( $rii, $pattern ); $files = []; foreach ( $rri as $file ) { $files[] = $file->getPathname(); @@ -255,7 +255,7 @@ protected function find_library_file_pattern( string $pattern, string $suffix = } return array_map( - function( $file ) use ( $suffix ) { + function ( $file ) use ( $suffix ) { $name = pathinfo( $file, PATHINFO_FILENAME ); return $suffix ? $this->remove_suffix( $suffix, $name ) : $name; }, @@ -317,10 +317,10 @@ protected function remove_function( string $file, string $name ) { // Parse until we encounter closing bracket. for ( $end = $offset; $end < $length; $end++ ) { if ( '{' === $contents[ $end ] ) { - $bracket++; + ++$bracket; } if ( '}' === $contents[ $end ] ) { - $bracket--; + --$bracket; if ( 1 > $bracket ) { break; } @@ -334,7 +334,7 @@ protected function remove_function( string $file, string $name ) { // Include whitespaces before start. while ( 0 < $start && ctype_space( $contents[ $start - 1 ] ) ) { - $start--; + --$start; } $new = substr( $contents, 0, $start ); @@ -388,7 +388,7 @@ protected function remove_file( string $file ) { return; } - unlink( $file ); + unlink( $file ); // phpcs:ignore WordPress.WP.AlternativeFunctions.unlink_unlink } /** @@ -403,7 +403,7 @@ protected function remove_directory( string $directory ) { return; } - rmdir( $directory ); + rmdir( $directory ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_rmdir } /** diff --git a/bin/SymfonyPolyfillCleanup.php b/bin/SymfonyPolyfillCleanup.php index c99820508b..452869ba99 100644 --- a/bin/SymfonyPolyfillCleanup.php +++ b/bin/SymfonyPolyfillCleanup.php @@ -67,7 +67,6 @@ protected function get_list_of_polyfills(): array { public static function remove( Event $event = null ) { $cleanup = new SymfonyPolyfillCleanup( $event ); $cleanup->remove_bootstraps80(); - } /** @@ -131,10 +130,10 @@ protected function remove_statement_with_pattern( string $file, string $inner_pa // Parse until we encounter closing bracket. for ( $end = $offset; $end < $length; $end++ ) { if ( '{' === $contents[ $end ] ) { - $bracket++; + ++$bracket; } if ( '}' === $contents[ $end ] ) { - $bracket--; + --$bracket; if ( 1 > $bracket ) { break; } @@ -148,7 +147,7 @@ protected function remove_statement_with_pattern( string $file, string $inner_pa // Include whitespaces before start. while ( 0 < $start && ctype_space( $contents[ $start - 1 ] ) ) { - $start--; + --$start; } $new = substr( $contents, 0, $start ); @@ -174,7 +173,7 @@ protected function remove_file( string $file ) { return; } - unlink( $file ); + unlink( $file ); // phpcs:ignore WordPress.WP.AlternativeFunctions.unlink_unlink } /** diff --git a/bin/prefix-vendor-namespace.php b/bin/prefix-vendor-namespace.php index 8c79b3a337..54487ea718 100755 --- a/bin/prefix-vendor-namespace.php +++ b/bin/prefix-vendor-namespace.php @@ -310,11 +310,11 @@ function prefix_string( &$contents, $search ) { * * @since 2.2.2 * - * @param string $path Package path - * @param string $match Regex pattern to match + * @param string $path Package path + * @param string $pattern Regex pattern to match * @return array Matching files */ -function get_dir_contents( $path, $match ) { +function get_dir_contents( $path, $pattern ) { try { $rdi = new RecursiveDirectoryIterator( $path ); } catch ( UnexpectedValueException $e ) { @@ -326,7 +326,7 @@ function get_dir_contents( $path, $match ) { } $rii = new RecursiveIteratorIterator( $rdi ); - $rri = new RegexIterator( $rii, $match ); + $rri = new RegexIterator( $rii, $pattern ); $files = []; foreach ( $rri as $file ) { $files[] = $file->getPathname(); diff --git a/changelog.txt b/changelog.txt index 269273519b..c266100349 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,12 @@ *** WooCommerce Google Listings and Ads Changelog *** += 2.5.12 - 2023-11-22 = +* Dev - Fix E2E gtag events tests. +* Dev - Update WordPress CS to 3.0. +* Dev - Update phpunit polyfills to 1.1 for WP 6.4. +* Tweak - Add filter to be able to build custom shipping method rate handers. +* Tweak - Remove rewrite rules flush. + = 2.5.11 - 2023-11-07 = * Add - Record tracking events for moving steps on the campaign creation and editing pages. * Tweak - Add tracking for campaign count. diff --git a/composer.json b/composer.json index 8e99acd290..e53b914e5f 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ "dealerdirect/phpcodesniffer-composer-installer": "^v0.7", "phpunit/phpunit": "^9.5", "wp-cli/i18n-command": "^2.2", - "wp-coding-standards/wpcs": "^2.3", - "yoast/phpunit-polyfills": "^1.0" + "wp-coding-standards/wpcs": "^3.0", + "yoast/phpunit-polyfills": "^1.1.0" }, "replace" : { "google/grpc-gcp": "*", diff --git a/composer.lock b/composer.lock index f888707051..28eaa009cd 100644 --- a/composer.lock +++ b/composer.lock @@ -4,25 +4,28 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e11445388ffb41fd143162a17acf77b8", + "content-hash": "44d590a9ed062f32ccca8e0708ef9350", "packages": [ { "name": "automattic/jetpack-a8c-mc-stats", - "version": "v1.4.13", + "version": "v1.4.22", "source": { "type": "git", "url": "https://github.com/Automattic/jetpack-a8c-mc-stats.git", - "reference": "64ee9a83861c6b2c8744e2ebc25157806f3548e0" + "reference": "d7fdf2fc7ae33d75e24e82d81269e33ec718446f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/jetpack-a8c-mc-stats/zipball/64ee9a83861c6b2c8744e2ebc25157806f3548e0", - "reference": "64ee9a83861c6b2c8744e2ebc25157806f3548e0", + "url": "https://api.github.com/repos/Automattic/jetpack-a8c-mc-stats/zipball/d7fdf2fc7ae33d75e24e82d81269e33ec718446f", + "reference": "d7fdf2fc7ae33d75e24e82d81269e33ec718446f", "shasum": "" }, "require-dev": { - "automattic/jetpack-changelogger": "^3.1", - "yoast/phpunit-polyfills": "1.0.3" + "automattic/jetpack-changelogger": "^3.3.9", + "yoast/phpunit-polyfills": "1.1.0" + }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." }, "type": "jetpack-library", "extra": { @@ -32,7 +35,7 @@ "link-template": "https://github.com/Automattic/jetpack-a8c-mc-stats/compare/v${old}...v${new}" }, "branch-alias": { - "dev-master": "1.4.x-dev" + "dev-trunk": "1.4.x-dev" } }, "autoload": { @@ -46,28 +49,32 @@ ], "description": "Used to record internal usage stats for Automattic. Not visible to site owners.", "support": { - "source": "https://github.com/Automattic/jetpack-a8c-mc-stats/tree/v1.4.13" + "source": "https://github.com/Automattic/jetpack-a8c-mc-stats/tree/v1.4.22" }, - "time": "2022-04-26T14:33:27+00:00" + "time": "2023-09-19T18:18:33+00:00" }, { "name": "automattic/jetpack-admin-ui", - "version": "v0.2.7", + "version": "v0.2.24", "source": { "type": "git", "url": "https://github.com/Automattic/jetpack-admin-ui.git", - "reference": "56a60ee4d03ac2be62cb341e3df0f2fb5cc851f8" + "reference": "334858057237be51aa916352c7573fc4c06bbd6c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/jetpack-admin-ui/zipball/56a60ee4d03ac2be62cb341e3df0f2fb5cc851f8", - "reference": "56a60ee4d03ac2be62cb341e3df0f2fb5cc851f8", + "url": "https://api.github.com/repos/Automattic/jetpack-admin-ui/zipball/334858057237be51aa916352c7573fc4c06bbd6c", + "reference": "334858057237be51aa916352c7573fc4c06bbd6c", "shasum": "" }, "require-dev": { - "automattic/jetpack-changelogger": "^3.1", + "automattic/jetpack-changelogger": "^3.3.11", + "automattic/jetpack-logo": "^1.6.3", "automattic/wordbless": "dev-master", - "yoast/phpunit-polyfills": "1.0.3" + "yoast/phpunit-polyfills": "1.1.0" + }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." }, "type": "jetpack-library", "extra": { @@ -78,7 +85,7 @@ "link-template": "https://github.com/Automattic/jetpack-admin-ui/compare/${old}...${new}" }, "branch-alias": { - "dev-master": "0.2.x-dev" + "dev-trunk": "0.2.x-dev" }, "version-constants": { "::PACKAGE_VERSION": "src/class-admin-menu.php" @@ -95,30 +102,30 @@ ], "description": "Generic Jetpack wp-admin UI elements", "support": { - "source": "https://github.com/Automattic/jetpack-admin-ui/tree/v0.2.7" + "source": "https://github.com/Automattic/jetpack-admin-ui/tree/v0.2.24" }, - "time": "2022-04-26T14:33:43+00:00" + "time": "2023-10-30T08:37:02+00:00" }, { "name": "automattic/jetpack-autoloader", - "version": "v2.11.5", + "version": "v2.12.0", "source": { "type": "git", "url": "https://github.com/Automattic/jetpack-autoloader.git", - "reference": "664c7cf0ff94b4f2f7c5b359bef3616822004a04" + "reference": "632b69cfc73ed5505f2b03165e7f68d414d0da12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/664c7cf0ff94b4f2f7c5b359bef3616822004a04", - "reference": "664c7cf0ff94b4f2f7c5b359bef3616822004a04", + "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/632b69cfc73ed5505f2b03165e7f68d414d0da12", + "reference": "632b69cfc73ed5505f2b03165e7f68d414d0da12", "shasum": "" }, "require": { "composer-plugin-api": "^1.1 || ^2.0" }, "require-dev": { - "automattic/jetpack-changelogger": "^3.1", - "yoast/phpunit-polyfills": "1.0.3" + "automattic/jetpack-changelogger": "^3.3.11", + "yoast/phpunit-polyfills": "1.1.0" }, "type": "composer-plugin", "extra": { @@ -128,8 +135,11 @@ "changelogger": { "link-template": "https://github.com/Automattic/jetpack-autoloader/compare/v${old}...v${new}" }, + "version-constants": { + "::VERSION": "src/AutoloadGenerator.php" + }, "branch-alias": { - "dev-master": "2.11.x-dev" + "dev-trunk": "2.12.x-dev" } }, "autoload": { @@ -145,27 +155,38 @@ "GPL-2.0-or-later" ], "description": "Creates a custom autoloader for a plugin or theme.", + "keywords": [ + "autoload", + "autoloader", + "composer", + "jetpack", + "plugin", + "wordpress" + ], "support": { - "source": "https://github.com/Automattic/jetpack-autoloader/tree/v2.11.5" + "source": "https://github.com/Automattic/jetpack-autoloader/tree/v2.12.0" }, - "time": "2022-05-18T11:11:44+00:00" + "time": "2023-09-28T18:33:34+00:00" }, { "name": "automattic/jetpack-config", - "version": "v1.9.0", + "version": "v1.15.4", "source": { "type": "git", "url": "https://github.com/Automattic/jetpack-config.git", - "reference": "415d06ba5363b2b204d4763aa4d65bfbdd4b769a" + "reference": "6cf8d61a972530322c9b62f7375fff83342c38f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/jetpack-config/zipball/415d06ba5363b2b204d4763aa4d65bfbdd4b769a", - "reference": "415d06ba5363b2b204d4763aa4d65bfbdd4b769a", + "url": "https://api.github.com/repos/Automattic/jetpack-config/zipball/6cf8d61a972530322c9b62f7375fff83342c38f9", + "reference": "6cf8d61a972530322c9b62f7375fff83342c38f9", "shasum": "" }, "require-dev": { - "automattic/jetpack-changelogger": "^3.1" + "automattic/jetpack-changelogger": "^3.3.9" + }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." }, "type": "jetpack-library", "extra": { @@ -176,7 +197,7 @@ "link-template": "https://github.com/Automattic/jetpack-config/compare/v${old}...v${new}" }, "branch-alias": { - "dev-master": "1.9.x-dev" + "dev-trunk": "1.15.x-dev" } }, "autoload": { @@ -190,37 +211,40 @@ ], "description": "Jetpack configuration package that initializes other packages and configures Jetpack's functionality. Can be used as a base for all variants of Jetpack package usage.", "support": { - "source": "https://github.com/Automattic/jetpack-config/tree/v1.9.0" + "source": "https://github.com/Automattic/jetpack-config/tree/v1.15.4" }, - "time": "2022-05-18T11:11:22+00:00" + "time": "2023-09-19T18:18:30+00:00" }, { "name": "automattic/jetpack-connection", - "version": "v1.40.5", + "version": "v1.59.0", "source": { "type": "git", "url": "https://github.com/Automattic/jetpack-connection.git", - "reference": "461d33c0aa9b8f706d1b62a317a6c770f990ce4d" + "reference": "eb55a554fe9cbb0d0b7ade54ea6ff965a508b05e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/jetpack-connection/zipball/461d33c0aa9b8f706d1b62a317a6c770f990ce4d", - "reference": "461d33c0aa9b8f706d1b62a317a6c770f990ce4d", + "url": "https://api.github.com/repos/Automattic/jetpack-connection/zipball/eb55a554fe9cbb0d0b7ade54ea6ff965a508b05e", + "reference": "eb55a554fe9cbb0d0b7ade54ea6ff965a508b05e", "shasum": "" }, "require": { - "automattic/jetpack-a8c-mc-stats": "^1.4", - "automattic/jetpack-admin-ui": "^0.2", - "automattic/jetpack-constants": "^1.6", - "automattic/jetpack-redirect": "^1.7", - "automattic/jetpack-roles": "^1.4", - "automattic/jetpack-status": "^1.13" + "automattic/jetpack-a8c-mc-stats": "^1.4.22", + "automattic/jetpack-admin-ui": "^0.2.24", + "automattic/jetpack-constants": "^1.6.23", + "automattic/jetpack-redirect": "^1.7.27", + "automattic/jetpack-roles": "^1.4.25", + "automattic/jetpack-status": "^1.18.5" }, "require-dev": { - "automattic/jetpack-changelogger": "^3.1", + "automattic/jetpack-changelogger": "^3.3.11", "automattic/wordbless": "@dev", "brain/monkey": "2.6.1", - "yoast/phpunit-polyfills": "1.0.3" + "yoast/phpunit-polyfills": "1.1.0" + }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." }, "type": "jetpack-library", "extra": { @@ -234,7 +258,7 @@ "link-template": "https://github.com/Automattic/jetpack-connection/compare/v${old}...v${new}" }, "branch-alias": { - "dev-master": "1.40.x-dev" + "dev-trunk": "1.59.x-dev" } }, "autoload": { @@ -250,28 +274,31 @@ ], "description": "Everything needed to connect to the Jetpack infrastructure", "support": { - "source": "https://github.com/Automattic/jetpack-connection/tree/v1.40.5" + "source": "https://github.com/Automattic/jetpack-connection/tree/v1.59.0" }, - "time": "2022-06-08T15:15:35+00:00" + "time": "2023-11-08T09:11:43+00:00" }, { "name": "automattic/jetpack-constants", - "version": "v1.6.16", + "version": "v1.6.23", "source": { "type": "git", "url": "https://github.com/Automattic/jetpack-constants.git", - "reference": "f719d15636026c2e47d927a24edc54898d859a0e" + "reference": "0825fb1fa94956f26adebc01be0d716a0fd3ade0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/f719d15636026c2e47d927a24edc54898d859a0e", - "reference": "f719d15636026c2e47d927a24edc54898d859a0e", + "url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/0825fb1fa94956f26adebc01be0d716a0fd3ade0", + "reference": "0825fb1fa94956f26adebc01be0d716a0fd3ade0", "shasum": "" }, "require-dev": { - "automattic/jetpack-changelogger": "^3.1", + "automattic/jetpack-changelogger": "^3.3.8", "brain/monkey": "2.6.1", - "yoast/phpunit-polyfills": "1.0.3" + "yoast/phpunit-polyfills": "1.1.0" + }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." }, "type": "jetpack-library", "extra": { @@ -281,7 +308,7 @@ "link-template": "https://github.com/Automattic/jetpack-constants/compare/v${old}...v${new}" }, "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-trunk": "1.6.x-dev" } }, "autoload": { @@ -295,31 +322,34 @@ ], "description": "A wrapper for defining constants in a more testable way.", "support": { - "source": "https://github.com/Automattic/jetpack-constants/tree/v1.6.16" + "source": "https://github.com/Automattic/jetpack-constants/tree/v1.6.23" }, - "time": "2022-04-26T14:33:36+00:00" + "time": "2023-08-23T17:56:35+00:00" }, { "name": "automattic/jetpack-redirect", - "version": "v1.7.15", + "version": "v1.7.27", "source": { "type": "git", "url": "https://github.com/Automattic/jetpack-redirect.git", - "reference": "d9c416ba23831cce2608c6fd689754f15dcb8498" + "reference": "43dd3ae2bef71281fe70f62733bfaa44c988f1b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/jetpack-redirect/zipball/d9c416ba23831cce2608c6fd689754f15dcb8498", - "reference": "d9c416ba23831cce2608c6fd689754f15dcb8498", + "url": "https://api.github.com/repos/Automattic/jetpack-redirect/zipball/43dd3ae2bef71281fe70f62733bfaa44c988f1b1", + "reference": "43dd3ae2bef71281fe70f62733bfaa44c988f1b1", "shasum": "" }, "require": { - "automattic/jetpack-status": "^1.13" + "automattic/jetpack-status": "^1.18.4" }, "require-dev": { - "automattic/jetpack-changelogger": "^3.1", + "automattic/jetpack-changelogger": "^3.3.9", "brain/monkey": "2.6.1", - "yoast/phpunit-polyfills": "1.0.3" + "yoast/phpunit-polyfills": "1.1.0" + }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." }, "type": "jetpack-library", "extra": { @@ -329,7 +359,7 @@ "link-template": "https://github.com/Automattic/jetpack-redirect/compare/v${old}...v${new}" }, "branch-alias": { - "dev-master": "1.7.x-dev" + "dev-trunk": "1.7.x-dev" } }, "autoload": { @@ -343,28 +373,31 @@ ], "description": "Utilities to build URLs to the jetpack.com/redirect/ service", "support": { - "source": "https://github.com/Automattic/jetpack-redirect/tree/v1.7.15" + "source": "https://github.com/Automattic/jetpack-redirect/tree/v1.7.27" }, - "time": "2022-05-10T11:30:40+00:00" + "time": "2023-09-19T18:19:22+00:00" }, { "name": "automattic/jetpack-roles", - "version": "v1.4.15", + "version": "v1.4.25", "source": { "type": "git", "url": "https://github.com/Automattic/jetpack-roles.git", - "reference": "6ffbb2fef269334e3528380bfd7a064e3c904dce" + "reference": "708b33f16a879fc2ab5939a972c968c9aeefbe38" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/jetpack-roles/zipball/6ffbb2fef269334e3528380bfd7a064e3c904dce", - "reference": "6ffbb2fef269334e3528380bfd7a064e3c904dce", + "url": "https://api.github.com/repos/Automattic/jetpack-roles/zipball/708b33f16a879fc2ab5939a972c968c9aeefbe38", + "reference": "708b33f16a879fc2ab5939a972c968c9aeefbe38", "shasum": "" }, "require-dev": { - "automattic/jetpack-changelogger": "^3.1", + "automattic/jetpack-changelogger": "^3.3.9", "brain/monkey": "2.6.1", - "yoast/phpunit-polyfills": "1.0.3" + "yoast/phpunit-polyfills": "1.1.0" + }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." }, "type": "jetpack-library", "extra": { @@ -374,7 +407,7 @@ "link-template": "https://github.com/Automattic/jetpack-roles/compare/v${old}...v${new}" }, "branch-alias": { - "dev-master": "1.4.x-dev" + "dev-trunk": "1.4.x-dev" } }, "autoload": { @@ -388,31 +421,35 @@ ], "description": "Utilities, related with user roles and capabilities.", "support": { - "source": "https://github.com/Automattic/jetpack-roles/tree/v1.4.15" + "source": "https://github.com/Automattic/jetpack-roles/tree/v1.4.25" }, - "time": "2022-04-26T14:33:35+00:00" + "time": "2023-09-19T18:18:38+00:00" }, { "name": "automattic/jetpack-status", - "version": "v1.13.6", + "version": "v1.18.5", "source": { "type": "git", "url": "https://github.com/Automattic/jetpack-status.git", - "reference": "6005840740548864d2a67090d87b59a6f141e5c4" + "reference": "fe08772e2005b8cd78ec5e0d416b73a04ae57c10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/jetpack-status/zipball/6005840740548864d2a67090d87b59a6f141e5c4", - "reference": "6005840740548864d2a67090d87b59a6f141e5c4", + "url": "https://api.github.com/repos/Automattic/jetpack-status/zipball/fe08772e2005b8cd78ec5e0d416b73a04ae57c10", + "reference": "fe08772e2005b8cd78ec5e0d416b73a04ae57c10", "shasum": "" }, "require": { - "automattic/jetpack-constants": "^1.6" + "automattic/jetpack-constants": "^1.6.23" }, "require-dev": { - "automattic/jetpack-changelogger": "^3.1", + "automattic/jetpack-changelogger": "^3.3.10", + "automattic/jetpack-ip": "^0.1.6", "brain/monkey": "2.6.1", - "yoast/phpunit-polyfills": "1.0.3" + "yoast/phpunit-polyfills": "1.1.0" + }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." }, "type": "jetpack-library", "extra": { @@ -422,7 +459,7 @@ "link-template": "https://github.com/Automattic/jetpack-status/compare/v${old}...v${new}" }, "branch-alias": { - "dev-master": "1.13.x-dev" + "dev-trunk": "1.18.x-dev" } }, "autoload": { @@ -436,22 +473,22 @@ ], "description": "Used to retrieve information about the current status of Jetpack and the site overall.", "support": { - "source": "https://github.com/Automattic/jetpack-status/tree/v1.13.6" + "source": "https://github.com/Automattic/jetpack-status/tree/v1.18.5" }, - "time": "2022-05-24T14:04:09+00:00" + "time": "2023-09-25T19:07:29+00:00" }, { "name": "firebase/php-jwt", - "version": "v6.8.1", + "version": "v6.9.0", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26" + "reference": "f03270e63eaccf3019ef0f32849c497385774e11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/5dbc8959427416b8ee09a100d7a8588c00fb2e26", - "reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/f03270e63eaccf3019ef0f32849c497385774e11", + "reference": "f03270e63eaccf3019ef0f32849c497385774e11", "shasum": "" }, "require": { @@ -499,22 +536,22 @@ ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v6.8.1" + "source": "https://github.com/firebase/php-jwt/tree/v6.9.0" }, - "time": "2023-07-14T18:33:00+00:00" + "time": "2023-10-05T00:24:42+00:00" }, { "name": "google/apiclient", - "version": "v2.15.0", + "version": "v2.15.1", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client.git", - "reference": "49787fa30b8d8313146a61efbf77ed1fede723c2" + "reference": "7a95ed29e4b6c6859d2d22300c5455a92e2622ad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/49787fa30b8d8313146a61efbf77ed1fede723c2", - "reference": "49787fa30b8d8313146a61efbf77ed1fede723c2", + "url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/7a95ed29e4b6c6859d2d22300c5455a92e2622ad", + "reference": "7a95ed29e4b6c6859d2d22300c5455a92e2622ad", "shasum": "" }, "require": { @@ -525,7 +562,7 @@ "guzzlehttp/psr7": "^1.8.4||^2.2.1", "monolog/monolog": "^2.9||^3.0", "php": "^7.4|^8.0", - "phpseclib/phpseclib": "^3.0.2" + "phpseclib/phpseclib": "^3.0.19" }, "require-dev": { "cache/filesystem-adapter": "^1.1", @@ -568,22 +605,22 @@ ], "support": { "issues": "https://github.com/googleapis/google-api-php-client/issues", - "source": "https://github.com/googleapis/google-api-php-client/tree/v2.15.0" + "source": "https://github.com/googleapis/google-api-php-client/tree/v2.15.1" }, - "time": "2023-05-18T13:51:33+00:00" + "time": "2023-09-13T21:46:39+00:00" }, { "name": "google/apiclient-services", - "version": "v0.312.0", + "version": "v0.323.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client-services.git", - "reference": "45d47fed73b28254c511882bc743b1690a99558d" + "reference": "d5497d30ddfafe7592102ca48bedaf222a4ca7a6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/45d47fed73b28254c511882bc743b1690a99558d", - "reference": "45d47fed73b28254c511882bc743b1690a99558d", + "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/d5497d30ddfafe7592102ca48bedaf222a4ca7a6", + "reference": "d5497d30ddfafe7592102ca48bedaf222a4ca7a6", "shasum": "" }, "require": { @@ -612,22 +649,22 @@ ], "support": { "issues": "https://github.com/googleapis/google-api-php-client-services/issues", - "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.312.0" + "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.323.0" }, - "time": "2023-08-14T00:56:12+00:00" + "time": "2023-11-06T01:08:38+00:00" }, { "name": "google/auth", - "version": "v1.28.0", + "version": "v1.32.1", "source": { "type": "git", "url": "https://github.com/googleapis/google-auth-library-php.git", - "reference": "07f7f6305f1b7df32b2acf6e101c1225c839c7ac" + "reference": "999e9ce8b9d17914f04e1718271a0a46da4de2f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/07f7f6305f1b7df32b2acf6e101c1225c839c7ac", - "reference": "07f7f6305f1b7df32b2acf6e101c1225c839c7ac", + "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/999e9ce8b9d17914f04e1718271a0a46da4de2f3", + "reference": "999e9ce8b9d17914f04e1718271a0a46da4de2f3", "shasum": "" }, "require": { @@ -639,8 +676,8 @@ "psr/http-message": "^1.1||^2.0" }, "require-dev": { - "guzzlehttp/promises": "^1.3", - "kelvinmo/simplejwt": "0.7.0", + "guzzlehttp/promises": "^2.0", + "kelvinmo/simplejwt": "0.7.1", "phpseclib/phpseclib": "^3.0", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.0.0", @@ -670,22 +707,22 @@ "support": { "docs": "https://googleapis.github.io/google-auth-library-php/main/", "issues": "https://github.com/googleapis/google-auth-library-php/issues", - "source": "https://github.com/googleapis/google-auth-library-php/tree/v1.28.0" + "source": "https://github.com/googleapis/google-auth-library-php/tree/v1.32.1" }, - "time": "2023-05-11T21:58:18+00:00" + "time": "2023-10-17T21:13:22+00:00" }, { "name": "google/common-protos", - "version": "v4.2.0", + "version": "v4.4.0", "source": { "type": "git", "url": "https://github.com/googleapis/common-protos-php.git", - "reference": "5d9e21141d94329d69d45a8c7a0cdeafd1a143f3" + "reference": "04b6c213e0add963dab058329caf2d2d9014129a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/common-protos-php/zipball/5d9e21141d94329d69d45a8c7a0cdeafd1a143f3", - "reference": "5d9e21141d94329d69d45a8c7a0cdeafd1a143f3", + "url": "https://api.github.com/repos/googleapis/common-protos-php/zipball/04b6c213e0add963dab058329caf2d2d9014129a", + "reference": "04b6c213e0add963dab058329caf2d2d9014129a", "shasum": "" }, "require": { @@ -722,22 +759,22 @@ ], "support": { "issues": "https://github.com/googleapis/common-protos-php/issues", - "source": "https://github.com/googleapis/common-protos-php/tree/v4.2.0" + "source": "https://github.com/googleapis/common-protos-php/tree/v4.4.0" }, - "time": "2023-07-25T21:51:55+00:00" + "time": "2023-10-02T18:14:18+00:00" }, { "name": "google/gax", - "version": "v1.22.1", + "version": "v1.25.0", "source": { "type": "git", "url": "https://github.com/googleapis/gax-php.git", - "reference": "2566bce7081f17e4f4c35a215864c6d4a62f010f" + "reference": "8f07f56f8d14e784777020cd73cfde518bd7dd33" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/gax-php/zipball/2566bce7081f17e4f4c35a215864c6d4a62f010f", - "reference": "2566bce7081f17e4f4c35a215864c6d4a62f010f", + "url": "https://api.github.com/repos/googleapis/gax-php/zipball/8f07f56f8d14e784777020cd73cfde518bd7dd33", + "reference": "8f07f56f8d14e784777020cd73cfde518bd7dd33", "shasum": "" }, "require": { @@ -777,9 +814,9 @@ ], "support": { "issues": "https://github.com/googleapis/gax-php/issues", - "source": "https://github.com/googleapis/gax-php/tree/v1.22.1" + "source": "https://github.com/googleapis/gax-php/tree/v1.25.0" }, - "time": "2023-08-04T14:32:15+00:00" + "time": "2023-11-02T22:05:32+00:00" }, { "name": "google/longrunning", @@ -827,16 +864,16 @@ }, { "name": "google/protobuf", - "version": "v3.24.0", + "version": "v3.25.0", "source": { "type": "git", "url": "https://github.com/protocolbuffers/protobuf-php.git", - "reference": "bfa8d627de8464634e6e3b5943f6354baa9cedd2" + "reference": "e5a021e653ee3a7a78760caefa605b4ec31bba80" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/bfa8d627de8464634e6e3b5943f6354baa9cedd2", - "reference": "bfa8d627de8464634e6e3b5943f6354baa9cedd2", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/e5a021e653ee3a7a78760caefa605b4ec31bba80", + "reference": "e5a021e653ee3a7a78760caefa605b4ec31bba80", "shasum": "" }, "require": { @@ -865,9 +902,9 @@ "proto" ], "support": { - "source": "https://github.com/protocolbuffers/protobuf-php/tree/v3.24.0" + "source": "https://github.com/protocolbuffers/protobuf-php/tree/v3.25.0" }, - "time": "2023-08-08T21:14:02+00:00" + "time": "2023-11-01T22:12:38+00:00" }, { "name": "googleads/google-ads-php", @@ -934,22 +971,22 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.7.0", + "version": "7.8.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5" + "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5", - "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1110f66a6530a40fe7aea0378fe608ee2b2248f9", + "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.5.3 || ^2.0", - "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", + "guzzlehttp/promises": "^1.5.3 || ^2.0.1", + "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.2 || ^3.0" @@ -1040,7 +1077,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.7.0" + "source": "https://github.com/guzzle/guzzle/tree/7.8.0" }, "funding": [ { @@ -1056,7 +1093,7 @@ "type": "tidelift" } ], - "time": "2023-05-21T14:04:53+00:00" + "time": "2023-08-27T10:20:53+00:00" }, { "name": "guzzlehttp/promises", @@ -1143,16 +1180,16 @@ }, { "name": "guzzlehttp/psr7", - "version": "2.6.0", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "8bd7c33a0734ae1c5d074360512beb716bef3f77" + "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/8bd7c33a0734ae1c5d074360512beb716bef3f77", - "reference": "8bd7c33a0734ae1c5d074360512beb716bef3f77", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/be45764272e8873c72dbe3d2edcfdfcc3bc9f727", + "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727", "shasum": "" }, "require": { @@ -1239,7 +1276,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.6.0" + "source": "https://github.com/guzzle/psr7/tree/2.6.1" }, "funding": [ { @@ -1255,7 +1292,7 @@ "type": "tidelift" } ], - "time": "2023-08-03T15:06:02+00:00" + "time": "2023-08-27T10:13:57+00:00" }, { "name": "league/container", @@ -1338,19 +1375,20 @@ }, { "name": "league/iso3166", - "version": "4.1.0", + "version": "4.3.1", "source": { "type": "git", "url": "https://github.com/thephpleague/iso3166.git", - "reference": "a0dd2a1d956f85811f9c667a1744d822fb2c63d8" + "reference": "11703e0313f34920add11c0228f0dd43ebd10f9a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/iso3166/zipball/a0dd2a1d956f85811f9c667a1744d822fb2c63d8", - "reference": "a0dd2a1d956f85811f9c667a1744d822fb2c63d8", + "url": "https://api.github.com/repos/thephpleague/iso3166/zipball/11703e0313f34920add11c0228f0dd43ebd10f9a", + "reference": "11703e0313f34920add11c0228f0dd43ebd10f9a", "shasum": "" }, "require": { + "ext-mbstring": "*", "php": "^7.3|^8.0" }, "require-dev": { @@ -1391,20 +1429,20 @@ "issues": "https://github.com/thephpleague/iso3166/issues", "source": "https://github.com/thephpleague/iso3166" }, - "time": "2022-09-07T09:14:19+00:00" + "time": "2023-09-11T07:59:36+00:00" }, { "name": "monolog/monolog", - "version": "2.9.1", + "version": "2.9.2", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "f259e2b15fb95494c83f52d3caad003bbf5ffaa1" + "reference": "437cb3628f4cf6042cc10ae97fc2b8472e48ca1f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/f259e2b15fb95494c83f52d3caad003bbf5ffaa1", - "reference": "f259e2b15fb95494c83f52d3caad003bbf5ffaa1", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/437cb3628f4cf6042cc10ae97fc2b8472e48ca1f", + "reference": "437cb3628f4cf6042cc10ae97fc2b8472e48ca1f", "shasum": "" }, "require": { @@ -1481,7 +1519,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/2.9.1" + "source": "https://github.com/Seldaek/monolog/tree/2.9.2" }, "funding": [ { @@ -1493,7 +1531,7 @@ "type": "tidelift" } ], - "time": "2023-02-06T13:44:46+00:00" + "time": "2023-10-27T15:25:26+00:00" }, { "name": "paragonie/constant_time_encoding", @@ -1676,16 +1714,16 @@ }, { "name": "phpseclib/phpseclib", - "version": "3.0.21", + "version": "3.0.33", "source": { "type": "git", "url": "https://github.com/phpseclib/phpseclib.git", - "reference": "4580645d3fc05c189024eb3b834c6c1e4f0f30a1" + "reference": "33fa69b2514a61138dd48e7a49f99445711e0ad0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/4580645d3fc05c189024eb3b834c6c1e4f0f30a1", - "reference": "4580645d3fc05c189024eb3b834c6c1e4f0f30a1", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/33fa69b2514a61138dd48e7a49f99445711e0ad0", + "reference": "33fa69b2514a61138dd48e7a49f99445711e0ad0", "shasum": "" }, "require": { @@ -1766,7 +1804,7 @@ ], "support": { "issues": "https://github.com/phpseclib/phpseclib/issues", - "source": "https://github.com/phpseclib/phpseclib/tree/3.0.21" + "source": "https://github.com/phpseclib/phpseclib/tree/3.0.33" }, "funding": [ { @@ -1782,7 +1820,7 @@ "type": "tidelift" } ], - "time": "2023-07-09T15:24:48+00:00" + "time": "2023-10-21T14:00:39+00:00" }, { "name": "psr/cache", @@ -1883,16 +1921,16 @@ }, { "name": "psr/http-client", - "version": "1.0.2", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/php-fig/http-client.git", - "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", - "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", "shasum": "" }, "require": { @@ -1929,9 +1967,9 @@ "psr-18" ], "support": { - "source": "https://github.com/php-fig/http-client/tree/1.0.2" + "source": "https://github.com/php-fig/http-client" }, - "time": "2023-04-10T20:12:12+00:00" + "time": "2023-09-23T14:17:50+00:00" }, { "name": "psr/http-factory", @@ -2204,16 +2242,16 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.27.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" + "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", + "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", "shasum": "" }, "require": { @@ -2228,7 +2266,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.27-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2266,7 +2304,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0" }, "funding": [ { @@ -2282,20 +2320,20 @@ "type": "tidelift" } ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.27.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" + "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", + "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", "shasum": "" }, "require": { @@ -2307,7 +2345,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.27-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2350,7 +2388,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.28.0" }, "funding": [ { @@ -2366,20 +2404,20 @@ "type": "tidelift" } ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.27.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" + "reference": "42292d99c55abe617799667f454222c54c60e229" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", - "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229", + "reference": "42292d99c55abe617799667f454222c54c60e229", "shasum": "" }, "require": { @@ -2394,7 +2432,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.27-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2433,7 +2471,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0" }, "funding": [ { @@ -2449,20 +2487,20 @@ "type": "tidelift" } ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2023-07-28T09:04:16+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85" + "reference": "fe2f306d1d9d346a7fee353d0d5012e401e984b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/e440d35fa0286f77fb45b79a03fedbeda9307e85", - "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fe2f306d1d9d346a7fee353d0d5012e401e984b5", + "reference": "fe2f306d1d9d346a7fee353d0d5012e401e984b5", "shasum": "" }, "require": { @@ -2471,7 +2509,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2512,7 +2550,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.28.0" }, "funding": [ { @@ -2528,20 +2566,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.27.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" + "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5", + "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5", "shasum": "" }, "require": { @@ -2550,7 +2588,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.27-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2595,7 +2633,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.28.0" }, "funding": [ { @@ -2611,20 +2649,20 @@ "type": "tidelift" } ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1" + "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/13f6d1271c663dc5ae9fb843a8f16521db7687a1", - "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/7581cd600fa9fd681b797d00b02f068e2f13263b", + "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b", "shasum": "" }, "require": { @@ -2633,7 +2671,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2674,7 +2712,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.28.0" }, "funding": [ { @@ -2690,20 +2728,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/translation-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "1211df0afa701e45a04253110e959d4af4ef0f07" + "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/1211df0afa701e45a04253110e959d4af4ef0f07", - "reference": "1211df0afa701e45a04253110e959d4af4ef0f07", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/136b19dd05cdf0709db6537d058bcab6dd6e2dbe", + "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe", "shasum": "" }, "require": { @@ -2752,7 +2790,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/translation-contracts/tree/v2.5.2" }, "funding": [ { @@ -2768,20 +2806,20 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-06-27T16:58:25+00:00" }, { "name": "symfony/validator", - "version": "v5.4.8", + "version": "v5.4.30", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "bdc6d04ba95c73ccbf906b4ad9b8775c738d83ad" + "reference": "ce65d7802d78e43d46669bfa08521bf6104880f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/bdc6d04ba95c73ccbf906b4ad9b8775c738d83ad", - "reference": "bdc6d04ba95c73ccbf906b4ad9b8775c738d83ad", + "url": "https://api.github.com/repos/symfony/validator/zipball/ce65d7802d78e43d46669bfa08521bf6104880f0", + "reference": "ce65d7802d78e43d46669bfa08521bf6104880f0", "shasum": "" }, "require": { @@ -2798,7 +2836,6 @@ "doctrine/annotations": "<1.13", "doctrine/cache": "<1.11", "doctrine/lexer": "<1.1", - "phpunit/phpunit": "<5.4.3", "symfony/dependency-injection": "<4.4", "symfony/expression-language": "<5.1", "symfony/http-kernel": "<4.4", @@ -2808,9 +2845,9 @@ "symfony/yaml": "<4.4" }, "require-dev": { - "doctrine/annotations": "^1.13", + "doctrine/annotations": "^1.13|^2", "doctrine/cache": "^1.11|^2.0", - "egulias/email-validator": "^2.1.10|^3", + "egulias/email-validator": "^2.1.10|^3|^4", "symfony/cache": "^4.4|^5.0|^6.0", "symfony/config": "^4.4|^5.0|^6.0", "symfony/console": "^4.4|^5.0|^6.0", @@ -2865,7 +2902,7 @@ "description": "Provides tools to validate values", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/validator/tree/v5.4.8" + "source": "https://github.com/symfony/validator/tree/v5.4.30" }, "funding": [ { @@ -2881,7 +2918,7 @@ "type": "tidelift" } ], - "time": "2022-04-15T08:07:45+00:00" + "time": "2023-10-27T07:38:31+00:00" } ], "packages-dev": [ @@ -3090,16 +3127,16 @@ }, { "name": "gettext/gettext", - "version": "v4.8.8", + "version": "v4.8.11", "source": { "type": "git", "url": "https://github.com/php-gettext/Gettext.git", - "reference": "302a00aa9d6762c92c884d879c15d3ed05d6a37d" + "reference": "b632aaf5e4579d0b2ae8bc61785e238bff4c5156" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-gettext/Gettext/zipball/302a00aa9d6762c92c884d879c15d3ed05d6a37d", - "reference": "302a00aa9d6762c92c884d879c15d3ed05d6a37d", + "url": "https://api.github.com/repos/php-gettext/Gettext/zipball/b632aaf5e4579d0b2ae8bc61785e238bff4c5156", + "reference": "b632aaf5e4579d0b2ae8bc61785e238bff4c5156", "shasum": "" }, "require": { @@ -3151,7 +3188,7 @@ "support": { "email": "oom@oscarotero.com", "issues": "https://github.com/oscarotero/Gettext/issues", - "source": "https://github.com/php-gettext/Gettext/tree/v4.8.8" + "source": "https://github.com/php-gettext/Gettext/tree/v4.8.11" }, "funding": [ { @@ -3167,7 +3204,7 @@ "type": "patreon" } ], - "time": "2022-12-08T11:59:50+00:00" + "time": "2023-08-14T15:15:05+00:00" }, { "name": "gettext/languages", @@ -3245,16 +3282,16 @@ }, { "name": "mck89/peast", - "version": "v1.15.1", + "version": "v1.15.4", "source": { "type": "git", "url": "https://github.com/mck89/peast.git", - "reference": "cf06286910b7efc9dce7503553ebee314df3d3d3" + "reference": "1df4dc28a6b5bb7ab117ab073c1712256e954e18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mck89/peast/zipball/cf06286910b7efc9dce7503553ebee314df3d3d3", - "reference": "cf06286910b7efc9dce7503553ebee314df3d3d3", + "url": "https://api.github.com/repos/mck89/peast/zipball/1df4dc28a6b5bb7ab117ab073c1712256e954e18", + "reference": "1df4dc28a6b5bb7ab117ab073c1712256e954e18", "shasum": "" }, "require": { @@ -3267,13 +3304,12 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.15.1-dev" + "dev-master": "1.15.4-dev" } }, "autoload": { "psr-4": { - "Peast\\": "lib/Peast/", - "Peast\\test\\": "test/Peast/" + "Peast\\": "lib/Peast/" } }, "notification-url": "https://packagist.org/downloads/", @@ -3289,9 +3325,9 @@ "description": "Peast is PHP library that generates AST for JavaScript code", "support": { "issues": "https://github.com/mck89/peast/issues", - "source": "https://github.com/mck89/peast/tree/v1.15.1" + "source": "https://github.com/mck89/peast/tree/v1.15.4" }, - "time": "2023-01-21T13:18:17+00:00" + "time": "2023-08-12T08:29:29+00:00" }, { "name": "mustache/mustache", @@ -3345,16 +3381,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.11.0", + "version": "1.11.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", "shasum": "" }, "require": { @@ -3392,7 +3428,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" }, "funding": [ { @@ -3400,20 +3436,20 @@ "type": "tidelift" } ], - "time": "2022-03-03T13:19:32+00:00" + "time": "2023-03-08T13:26:56+00:00" }, { "name": "nikic/php-parser", - "version": "v4.15.3", + "version": "v4.17.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039" + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/570e980a201d8ed0236b0a62ddf2c9cbb2034039", - "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", "shasum": "" }, "require": { @@ -3454,9 +3490,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.3" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1" }, - "time": "2023-01-16T22:05:37+00:00" + "time": "2023-08-13T19:53:39+00:00" }, { "name": "phar-io/manifest", @@ -3569,25 +3605,161 @@ }, "time": "2022-02-21T01:04:05+00:00" }, + { + "name": "phpcsstandards/phpcsextra", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSExtra.git", + "reference": "746c3190ba8eb2f212087c947ba75f4f5b9a58d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/746c3190ba8eb2f212087c947ba75f4f5b9a58d5", + "reference": "746c3190ba8eb2f212087c947ba75f4f5b9a58d5", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "phpcsstandards/phpcsutils": "^1.0.8", + "squizlabs/php_codesniffer": "^3.7.1" + }, + "require-dev": { + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "phpcsstandards/phpcsdevtools": "^1.2.1", + "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors" + } + ], + "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues", + "source": "https://github.com/PHPCSStandards/PHPCSExtra" + }, + "time": "2023-09-20T22:06:18+00:00" + }, + { + "name": "phpcsstandards/phpcsutils", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", + "reference": "69465cab9d12454e5e7767b9041af0cd8cd13be7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/69465cab9d12454e5e7767b9041af0cd8cd13be7", + "reference": "69465cab9d12454e5e7767b9041af0cd8cd13be7", + "shasum": "" + }, + "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", + "php": ">=5.4", + "squizlabs/php_codesniffer": "^3.7.1 || 4.0.x-dev@dev" + }, + "require-dev": { + "ext-filter": "*", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "yoast/phpunit-polyfills": "^1.0.5 || ^2.0.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "autoload": { + "classmap": [ + "PHPCSUtils/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors" + } + ], + "description": "A suite of utility functions for use with PHP_CodeSniffer", + "homepage": "https://phpcsutils.com/", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "phpcs3", + "standards", + "static analysis", + "tokens", + "utility" + ], + "support": { + "docs": "https://phpcsutils.com/", + "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues", + "source": "https://github.com/PHPCSStandards/PHPCSUtils" + }, + "time": "2023-07-16T21:39:41+00:00" + }, { "name": "phpunit/php-code-coverage", - "version": "9.2.24", + "version": "9.2.29", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed" + "reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2cf940ebc6355a9d430462811b5aaa308b174bed", - "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6a3a87ac2bbe33b25042753df8195ba4aa534c76", + "reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.14", + "nikic/php-parser": "^4.15", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -3602,8 +3774,8 @@ "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-pcov": "*", - "ext-xdebug": "*" + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "type": "library", "extra": { @@ -3636,7 +3808,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.24" + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.29" }, "funding": [ { @@ -3644,7 +3817,7 @@ "type": "github" } ], - "time": "2023-01-26T08:26:55+00:00" + "time": "2023-09-19T04:57:46+00:00" }, { "name": "phpunit/php-file-iterator", @@ -3889,16 +4062,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.28", + "version": "9.6.13", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "954ca3113a03bf780d22f07bf055d883ee04b65e" + "reference": "f3d767f7f9e191eab4189abe41ab37797e30b1be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/954ca3113a03bf780d22f07bf055d883ee04b65e", - "reference": "954ca3113a03bf780d22f07bf055d883ee04b65e", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f3d767f7f9e191eab4189abe41ab37797e30b1be", + "reference": "f3d767f7f9e191eab4189abe41ab37797e30b1be", "shasum": "" }, "require": { @@ -3913,7 +4086,7 @@ "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.13", + "phpunit/php-code-coverage": "^9.2.28", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", "phpunit/php-text-template": "^2.0.3", @@ -3931,8 +4104,8 @@ "sebastian/version": "^3.0.2" }, "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" + "ext-soap": "To be able to generate mocks based on WSDL files", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "bin": [ "phpunit" @@ -3940,7 +4113,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.5-dev" + "dev-master": "9.6-dev" } }, "autoload": { @@ -3971,7 +4144,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.28" + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.13" }, "funding": [ { @@ -3987,67 +4161,7 @@ "type": "tidelift" } ], - "time": "2023-01-14T12:32:24+00:00" - }, - { - "name": "rmccue/requests", - "version": "v1.8.1", - "source": { - "type": "git", - "url": "https://github.com/WordPress/Requests.git", - "reference": "82e6936366eac3af4d836c18b9d8c31028fe4cd5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/WordPress/Requests/zipball/82e6936366eac3af4d836c18b9d8c31028fe4cd5", - "reference": "82e6936366eac3af4d836c18b9d8c31028fe4cd5", - "shasum": "" - }, - "require": { - "php": ">=5.2" - }, - "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7", - "php-parallel-lint/php-console-highlighter": "^0.5.0", - "php-parallel-lint/php-parallel-lint": "^1.3", - "phpcompatibility/php-compatibility": "^9.0", - "phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.5", - "requests/test-server": "dev-master", - "squizlabs/php_codesniffer": "^3.5", - "wp-coding-standards/wpcs": "^2.0" - }, - "type": "library", - "autoload": { - "psr-0": { - "Requests": "library/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "ISC" - ], - "authors": [ - { - "name": "Ryan McCue", - "homepage": "http://ryanmccue.info" - } - ], - "description": "A HTTP library written in PHP, for human beings.", - "homepage": "http://github.com/WordPress/Requests", - "keywords": [ - "curl", - "fsockopen", - "http", - "idna", - "ipv6", - "iri", - "sockets" - ], - "support": { - "issues": "https://github.com/WordPress/Requests/issues", - "source": "https://github.com/WordPress/Requests/tree/v1.8.1" - }, - "time": "2021-06-04T09:56:25+00:00" + "time": "2023-09-19T05:39:22+00:00" }, { "name": "sebastian/cli-parser", @@ -4349,16 +4463,16 @@ }, { "name": "sebastian/diff", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131", + "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131", "shasum": "" }, "require": { @@ -4403,7 +4517,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5" }, "funding": [ { @@ -4411,20 +4525,20 @@ "type": "github" } ], - "time": "2020-10-26T13:10:38+00:00" + "time": "2023-05-07T05:35:17+00:00" }, { "name": "sebastian/environment", - "version": "5.1.4", + "version": "5.1.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", "shasum": "" }, "require": { @@ -4466,7 +4580,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" }, "funding": [ { @@ -4474,7 +4588,7 @@ "type": "github" } ], - "time": "2022-04-03T09:37:03+00:00" + "time": "2023-02-03T06:03:51+00:00" }, { "name": "sebastian/exporter", @@ -4555,16 +4669,16 @@ }, { "name": "sebastian/global-state", - "version": "5.0.5", + "version": "5.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + "reference": "bde739e7565280bda77be70044ac1047bc007e34" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34", + "reference": "bde739e7565280bda77be70044ac1047bc007e34", "shasum": "" }, "require": { @@ -4607,7 +4721,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.6" }, "funding": [ { @@ -4615,7 +4729,7 @@ "type": "github" } ], - "time": "2022-02-14T08:28:10+00:00" + "time": "2023-08-02T09:26:13+00:00" }, { "name": "sebastian/lines-of-code", @@ -4788,16 +4902,16 @@ }, { "name": "sebastian/recursion-context", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", "shasum": "" }, "require": { @@ -4836,10 +4950,10 @@ } ], "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" }, "funding": [ { @@ -4847,7 +4961,7 @@ "type": "github" } ], - "time": "2020-10-26T13:17:30+00:00" + "time": "2023-02-03T06:07:39+00:00" }, { "name": "sebastian/resource-operations", @@ -4906,16 +5020,16 @@ }, { "name": "sebastian/type", - "version": "3.2.0", + "version": "3.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e" + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", - "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", "shasum": "" }, "require": { @@ -4950,7 +5064,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.2.0" + "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" }, "funding": [ { @@ -4958,7 +5072,7 @@ "type": "github" } ], - "time": "2022-09-12T14:47:03+00:00" + "time": "2023-02-03T06:13:03+00:00" }, { "name": "sebastian/version", @@ -5015,16 +5129,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.2", + "version": "3.7.2", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", "shasum": "" }, "require": { @@ -5060,27 +5174,28 @@ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", "keywords": [ "phpcs", - "standards" + "standards", + "static analysis" ], "support": { "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2021-12-12T21:44:58+00:00" + "time": "2023-02-22T23:07:41+00:00" }, { "name": "symfony/finder", - "version": "v5.4.19", + "version": "v5.4.27", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "6071aebf810ad13fe8200c224f36103abb37cf1f" + "reference": "ff4bce3c33451e7ec778070e45bd23f74214cd5d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/6071aebf810ad13fe8200c224f36103abb37cf1f", - "reference": "6071aebf810ad13fe8200c224f36103abb37cf1f", + "url": "https://api.github.com/repos/symfony/finder/zipball/ff4bce3c33451e7ec778070e45bd23f74214cd5d", + "reference": "ff4bce3c33451e7ec778070e45bd23f74214cd5d", "shasum": "" }, "require": { @@ -5114,7 +5229,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.19" + "source": "https://github.com/symfony/finder/tree/v5.4.27" }, "funding": [ { @@ -5130,7 +5245,7 @@ "type": "tidelift" } ], - "time": "2023-01-14T19:14:44+00:00" + "time": "2023-07-31T08:02:31+00:00" }, { "name": "theseer/tokenizer", @@ -5184,16 +5299,16 @@ }, { "name": "wp-cli/i18n-command", - "version": "v2.4.1", + "version": "v2.4.4", "source": { "type": "git", "url": "https://github.com/wp-cli/i18n-command.git", - "reference": "22f7e6aa6ba23d0b50c45c75386c8151b991477e" + "reference": "7d82e675f271359b1af614e6325d8eeaeb7d7474" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/22f7e6aa6ba23d0b50c45c75386c8151b991477e", - "reference": "22f7e6aa6ba23d0b50c45c75386c8151b991477e", + "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/7d82e675f271359b1af614e6325d8eeaeb7d7474", + "reference": "7d82e675f271359b1af614e6325d8eeaeb7d7474", "shasum": "" }, "require": { @@ -5204,7 +5319,7 @@ }, "require-dev": { "wp-cli/scaffold-command": "^1.2 || ^2", - "wp-cli/wp-cli-tests": "^3.1" + "wp-cli/wp-cli-tests": "^4" }, "suggest": { "ext-json": "Used for reading and generating JSON translation files", @@ -5246,9 +5361,9 @@ "homepage": "https://github.com/wp-cli/i18n-command", "support": { "issues": "https://github.com/wp-cli/i18n-command/issues", - "source": "https://github.com/wp-cli/i18n-command/tree/v2.4.1" + "source": "https://github.com/wp-cli/i18n-command/tree/v2.4.4" }, - "time": "2022-12-09T19:09:17+00:00" + "time": "2023-08-30T18:00:10+00:00" }, { "name": "wp-cli/mustangostang-spyc", @@ -5303,16 +5418,16 @@ }, { "name": "wp-cli/php-cli-tools", - "version": "v0.11.17", + "version": "v0.11.21", "source": { "type": "git", "url": "https://github.com/wp-cli/php-cli-tools.git", - "reference": "f6be76b7c4ee2ef93c9531b8a37bdb7ce42c3728" + "reference": "b3457a8d60cd0b1c48cab76ad95df136d266f0b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/f6be76b7c4ee2ef93c9531b8a37bdb7ce42c3728", - "reference": "f6be76b7c4ee2ef93c9531b8a37bdb7ce42c3728", + "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/b3457a8d60cd0b1c48cab76ad95df136d266f0b6", + "reference": "b3457a8d60cd0b1c48cab76ad95df136d266f0b6", "shasum": "" }, "require": { @@ -5320,7 +5435,7 @@ }, "require-dev": { "roave/security-advisories": "dev-latest", - "wp-cli/wp-cli-tests": "^3.1.6" + "wp-cli/wp-cli-tests": "^4" }, "type": "library", "extra": { @@ -5360,29 +5475,28 @@ ], "support": { "issues": "https://github.com/wp-cli/php-cli-tools/issues", - "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.17" + "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.21" }, - "time": "2023-01-12T01:18:21+00:00" + "time": "2023-09-29T15:28:10+00:00" }, { "name": "wp-cli/wp-cli", - "version": "v2.7.1", + "version": "v2.9.0", "source": { "type": "git", "url": "https://github.com/wp-cli/wp-cli.git", - "reference": "1ddc754f1c15e56fb2cdd1a4e82bd0ec6ca32a76" + "reference": "8a3befba2d947fbf5cc6d1941edf2dd99da4d4b7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/1ddc754f1c15e56fb2cdd1a4e82bd0ec6ca32a76", - "reference": "1ddc754f1c15e56fb2cdd1a4e82bd0ec6ca32a76", + "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/8a3befba2d947fbf5cc6d1941edf2dd99da4d4b7", + "reference": "8a3befba2d947fbf5cc6d1941edf2dd99da4d4b7", "shasum": "" }, "require": { "ext-curl": "*", "mustache/mustache": "^2.14.1", "php": "^5.6 || ^7.0 || ^8.0", - "rmccue/requests": "^1.8", "symfony/finder": ">2.7", "wp-cli/mustangostang-spyc": "^0.6.3", "wp-cli/php-cli-tools": "~0.11.2" @@ -5393,7 +5507,7 @@ "wp-cli/entity-command": "^1.2 || ^2", "wp-cli/extension-command": "^1.1 || ^2", "wp-cli/package-command": "^1 || ^2", - "wp-cli/wp-cli-tests": "^3.1.6" + "wp-cli/wp-cli-tests": "^4.0.1" }, "suggest": { "ext-readline": "Include for a better --prompt implementation", @@ -5406,7 +5520,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.8.x-dev" + "dev-main": "2.9.x-dev" } }, "autoload": { @@ -5433,34 +5547,42 @@ "issues": "https://github.com/wp-cli/wp-cli/issues", "source": "https://github.com/wp-cli/wp-cli" }, - "time": "2022-10-17T23:10:42+00:00" + "time": "2023-10-25T09:06:37+00:00" }, { "name": "wp-coding-standards/wpcs", - "version": "2.3.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", - "reference": "7da1894633f168fe244afc6de00d141f27517b62" + "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62", - "reference": "7da1894633f168fe244afc6de00d141f27517b62", + "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/b4caf9689f1a0e4a4c632679a44e638c1c67aff1", + "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1", "shasum": "" }, "require": { + "ext-filter": "*", + "ext-libxml": "*", + "ext-tokenizer": "*", + "ext-xmlreader": "*", "php": ">=5.4", - "squizlabs/php_codesniffer": "^3.3.1" + "phpcsstandards/phpcsextra": "^1.1.0", + "phpcsstandards/phpcsutils": "^1.0.8", + "squizlabs/php_codesniffer": "^3.7.2" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", "phpcompatibility/php-compatibility": "^9.0", - "phpcsstandards/phpcsdevtools": "^1.0", + "phpcsstandards/phpcsdevtools": "^1.2.0", "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." + "ext-iconv": "For improved results", + "ext-mbstring": "For improved results" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -5477,6 +5599,7 @@ "keywords": [ "phpcs", "standards", + "static analysis", "wordpress" ], "support": { @@ -5484,20 +5607,26 @@ "source": "https://github.com/WordPress/WordPress-Coding-Standards", "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki" }, - "time": "2020-05-13T23:57:56+00:00" + "funding": [ + { + "url": "https://opencollective.com/thewpcc/contribute/wp-php-63406", + "type": "custom" + } + ], + "time": "2023-09-14T07:06:09+00:00" }, { "name": "yoast/phpunit-polyfills", - "version": "1.0.3", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/Yoast/PHPUnit-Polyfills.git", - "reference": "5ea3536428944955f969bc764bbe09738e151ada" + "reference": "224e4a1329c03d8bad520e3fc4ec980034a4b212" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/5ea3536428944955f969bc764bbe09738e151ada", - "reference": "5ea3536428944955f969bc764bbe09738e151ada", + "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/224e4a1329c03d8bad520e3fc4ec980034a4b212", + "reference": "224e4a1329c03d8bad520e3fc4ec980034a4b212", "shasum": "" }, "require": { @@ -5505,13 +5634,12 @@ "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "require-dev": { - "yoast/yoastcs": "^2.2.0" + "yoast/yoastcs": "^2.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.x-dev", - "dev-develop": "1.x-dev" + "dev-main": "2.x-dev" } }, "autoload": { @@ -5545,7 +5673,7 @@ "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues", "source": "https://github.com/Yoast/PHPUnit-Polyfills" }, - "time": "2021-11-23T01:37:03+00:00" + "time": "2023-08-19T14:25:08+00:00" } ], "aliases": [], @@ -5561,5 +5689,5 @@ "platform-overrides": { "php": "7.4.30" }, - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.6.0" } diff --git a/google-listings-and-ads.php b/google-listings-and-ads.php index f93ef1b362..2f1bcd1276 100644 --- a/google-listings-and-ads.php +++ b/google-listings-and-ads.php @@ -3,7 +3,7 @@ * Plugin Name: Google Listings and Ads * Plugin URL: https://wordpress.org/plugins/google-listings-and-ads/ * Description: Native integration with Google that allows merchants to easily display their products across Google’s network. - * Version: 2.5.11 + * Version: 2.5.12 * Author: WooCommerce * Author URI: https://woo.com/ * Text Domain: google-listings-and-ads @@ -30,7 +30,7 @@ defined( 'ABSPATH' ) || exit; -define( 'WC_GLA_VERSION', '2.5.11' ); // WRCS: DEFINED_VERSION. +define( 'WC_GLA_VERSION', '2.5.12' ); // WRCS: DEFINED_VERSION. define( 'WC_GLA_MIN_PHP_VER', '7.4' ); define( 'WC_GLA_MIN_WC_VER', '6.9' ); @@ -101,7 +101,7 @@ function woogle_get_container(): ContainerInterface { */ add_action( 'plugins_loaded', - function() { + function () { // Check requirements. if ( ! PluginValidator::validate() ) { return; diff --git a/package-lock.json b/package-lock.json index bb3c9416be..bec519df71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "google-listings-and-ads", - "version": "2.5.11", + "version": "2.5.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "google-listings-and-ads", - "version": "2.5.7", + "version": "2.5.11", "license": "GPL-3.0-or-later", "dependencies": { "@woocommerce/components": "^10.3.0", @@ -54,7 +54,7 @@ "@wordpress/jest-preset-default": "^11.9.0", "@wordpress/prettier-config": "2.18.1", "@wordpress/scripts": "^24.6.0", - "axios": "^1.4.0", + "axios": "^1.6.0", "bundlewatch": "^0.3.3", "eslint": "^7.17.0", "eslint-import-resolver-webpack": "^0.13.1", @@ -71,8 +71,8 @@ "woocommerce-grow-storybook": "https://gitpkg.now.sh/woocommerce/grow/packages/js/storybook?fecfad52db350afd3550842e2374dee8dbc587ea" }, "engines": { - "node": "^16", - "npm": "^8" + "node": "^16 || ^18", + "npm": "^8 || ^9" } }, "node_modules/@adobe/css-tools": { @@ -472,11 +472,12 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", "dependencies": { - "@babel/highlight": "^7.18.6" + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" }, "engines": { "node": ">=6.9.0" @@ -564,12 +565,13 @@ } }, "node_modules/@babel/generator": { - "version": "7.20.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.4.tgz", - "integrity": "sha512-luCf7yk/cm7yab6CAW1aiFnmEfBJplb/JojV56MYEK7ziWfGmFlTfmL9Ehwfy4gFhbjBfWO1wj7/TuSbVNEEtA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.3.tgz", + "integrity": "sha512-keeZWAV4LU3tW0qRi19HRpabC/ilM0HRBBzf9/k8FFiG4KVpiv0FIy4hHfLfFQZNhziCTPTmd59zoyv6DNISzg==", "dependencies": { - "@babel/types": "^7.20.2", + "@babel/types": "^7.23.3", "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" }, "engines": { @@ -703,9 +705,9 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "engines": { "node": ">=6.9.0" } @@ -723,23 +725,23 @@ } }, "node_modules/@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dependencies": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -864,28 +866,28 @@ } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", "engines": { "node": ">=6.9.0" } @@ -927,12 +929,12 @@ } }, "node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", "js-tokens": "^4.0.0" }, "engines": { @@ -940,9 +942,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.20.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.3.tgz", - "integrity": "sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.3.tgz", + "integrity": "sha512-uVsWNvlVsIninV2prNz/3lHCb+5CJ+e+IUBfbjToAHODtfGYLfCFuY4AU7TskI+dAKk+njsPiBjq1gKTvZOBaw==", "bin": { "parser": "bin/babel-parser.js" }, @@ -2468,31 +2470,31 @@ } }, "node_modules/@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz", - "integrity": "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==", - "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.1", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.1", - "@babel/types": "^7.20.0", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.3.tgz", + "integrity": "sha512-+K0yF1/9yR0oHdE0StHuEj3uTPzwwbrLGfNOndVJVV2TqA5+j3oljJUb4nmB954FLGjNem976+B+eDuLIjesiQ==", + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.3", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.3", + "@babel/types": "^7.23.3", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -2501,12 +2503,12 @@ } }, "node_modules/@babel/types": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.2.tgz", - "integrity": "sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.3.tgz", + "integrity": "sha512-OZnvoH2l8PK5eUvEcUyCt/sXgr/h+UWpVuBbOljwcrAgUl6lpchoQ++PHGyQy1AtYnVA6CEq3y5xeEI10brpXw==", "dependencies": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, "engines": { @@ -5107,15 +5109,6 @@ "node": ">= 10.14.2" } }, - "node_modules/@storybook/addon-docs/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, "node_modules/@storybook/addon-docs/node_modules/@types/yargs": { "version": "15.0.14", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", @@ -5140,22 +5133,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@storybook/addon-docs/node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@storybook/addon-docs/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -5199,31 +5176,6 @@ "node": ">=8" } }, - "node_modules/@storybook/addon-docs/node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@storybook/addon-docs/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@storybook/addon-docs/node_modules/jest-haste-map": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", @@ -5317,15 +5269,6 @@ "node": ">=8.6" } }, - "node_modules/@storybook/addon-docs/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@storybook/addon-docs/node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -5356,20 +5299,6 @@ "node": ">=8" } }, - "node_modules/@storybook/addon-docs/node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@storybook/addon-docs/node_modules/write-file-atomic": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", @@ -5520,15 +5449,6 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/@storybook/addon-interactions/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, "node_modules/@storybook/addon-interactions/node_modules/@types/yargs": { "version": "16.0.4", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", @@ -16162,27 +16082,12 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/@wordpress/scripts/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, "node_modules/@wordpress/scripts/node_modules/@types/prettier": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.1.tgz", "integrity": "sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow==", "dev": true }, - "node_modules/@wordpress/scripts/node_modules/@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true - }, "node_modules/@wordpress/scripts/node_modules/@types/yargs": { "version": "16.0.4", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", @@ -16361,22 +16266,6 @@ "@babel/core": "^7.8.0" } }, - "node_modules/@wordpress/scripts/node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@wordpress/scripts/node_modules/babel-plugin-jest-hoist": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", @@ -16392,29 +16281,6 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/@wordpress/scripts/node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, "node_modules/@wordpress/scripts/node_modules/babel-preset-jest": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", @@ -16633,15 +16499,6 @@ "node": ">=0.10.0" } }, - "node_modules/@wordpress/scripts/node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/@wordpress/scripts/node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -17084,15 +16941,6 @@ "node": ">=8" } }, - "node_modules/@wordpress/scripts/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, "node_modules/@wordpress/scripts/node_modules/ignore": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", @@ -17102,25 +16950,6 @@ "node": ">= 4" } }, - "node_modules/@wordpress/scripts/node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@wordpress/scripts/node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -17151,81 +16980,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@wordpress/scripts/node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wordpress/scripts/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wordpress/scripts/node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@wordpress/scripts/node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wordpress/scripts/node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@wordpress/scripts/node_modules/istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dev": true, - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@wordpress/scripts/node_modules/jest": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", @@ -17814,30 +17568,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@wordpress/scripts/node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@wordpress/scripts/node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@wordpress/scripts/node_modules/micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", @@ -17928,70 +17658,6 @@ "node": ">=8" } }, - "node_modules/@wordpress/scripts/node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wordpress/scripts/node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wordpress/scripts/node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wordpress/scripts/node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@wordpress/scripts/node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@wordpress/scripts/node_modules/postcss-loader": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz", @@ -18146,27 +17812,6 @@ "node": ">=0.1.14" } }, - "node_modules/@wordpress/scripts/node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wordpress/scripts/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/@wordpress/scripts/node_modules/rxjs": { "version": "7.5.7", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz", @@ -18250,40 +17895,6 @@ "tree-kill": "^1.2.2" } }, - "node_modules/@wordpress/scripts/node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@wordpress/scripts/node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wordpress/scripts/node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@wordpress/scripts/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -18331,20 +17942,6 @@ "node": ">=8" } }, - "node_modules/@wordpress/scripts/node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@wordpress/scripts/node_modules/throat": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", @@ -19397,9 +18994,9 @@ } }, "node_modules/axios": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", - "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", + "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", "dev": true, "dependencies": { "follow-redirects": "^1.15.0", @@ -20445,20 +20042,23 @@ } }, "node_modules/browserify-sign": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", - "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.2.tgz", + "integrity": "sha512-1rudGyeYY42Dk6texmv7c4VcQ0EsvVbLwZkA+AQB7SxvXxmcD93jcHie8bzecJ+ChDlmAm2Qyu0+Ccg5uhZXCg==", "dev": true, "dependencies": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", + "bn.js": "^5.2.1", + "browserify-rsa": "^4.1.0", "create-hash": "^1.2.0", "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", + "elliptic": "^6.5.4", "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" + "parse-asn1": "^5.1.6", + "readable-stream": "^3.6.2", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 4" } }, "node_modules/browserify-sign/node_modules/readable-stream": { @@ -20897,15 +20497,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/c8/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/c8/node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -20915,42 +20506,6 @@ "node": ">=8" } }, - "node_modules/c8/node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/c8/node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/c8/node_modules/istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dev": true, - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/c8/node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -20966,21 +20521,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/c8/node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/c8/node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -21020,15 +20560,6 @@ "node": ">=8" } }, - "node_modules/c8/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/c8/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -21055,46 +20586,6 @@ "node": ">=8" } }, - "node_modules/c8/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/c8/node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/c8/node_modules/v8-to-istanbul": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", - "integrity": "sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" - }, - "engines": { - "node": ">=10.12.0" - } - }, "node_modules/c8/node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -23523,15 +23014,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/default-gateway/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, "node_modules/default-gateway/node_modules/is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", @@ -23900,15 +23382,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/detect-package-manager/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, "node_modules/detect-package-manager/node_modules/is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", @@ -30904,21 +30377,6 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-environment-jsdom/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-environment-jsdom/node_modules/@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true - }, "node_modules/jest-environment-jsdom/node_modules/@types/yargs": { "version": "16.0.4", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", @@ -31088,15 +30546,6 @@ "node": ">=8" } }, - "node_modules/jest-environment-jsdom/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/jest-environment-jsdom/node_modules/escodegen": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", @@ -31322,18 +30771,6 @@ "node": ">=0.10.0" } }, - "node_modules/jest-environment-jsdom/node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/jest-environment-jsdom/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -40947,19 +40384,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/stylelint/node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, "node_modules/stylelint/node_modules/yargs-parser": { "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", @@ -43049,71 +42473,6 @@ "node": ">= 8" } }, - "node_modules/webpack-cli/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/webpack-cli/node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/webpack-cli/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/webpack-cli/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/webpack-cli/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/webpack-cli/node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -43123,39 +42482,6 @@ "node": ">=8" } }, - "node_modules/webpack-cli/node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/webpack-cli/node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/webpack-cli/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/webpack-cli/node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -44364,11 +43690,12 @@ } }, "@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", "requires": { - "@babel/highlight": "^7.18.6" + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" } }, "@babel/compat-data": { @@ -44431,12 +43758,13 @@ } }, "@babel/generator": { - "version": "7.20.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.4.tgz", - "integrity": "sha512-luCf7yk/cm7yab6CAW1aiFnmEfBJplb/JojV56MYEK7ziWfGmFlTfmL9Ehwfy4gFhbjBfWO1wj7/TuSbVNEEtA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.3.tgz", + "integrity": "sha512-keeZWAV4LU3tW0qRi19HRpabC/ilM0HRBBzf9/k8FFiG4KVpiv0FIy4hHfLfFQZNhziCTPTmd59zoyv6DNISzg==", "requires": { - "@babel/types": "^7.20.2", + "@babel/types": "^7.23.3", "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" }, "dependencies": { @@ -44537,9 +43865,9 @@ } }, "@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==" + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==" }, "@babel/helper-explode-assignable-expression": { "version": "7.18.6", @@ -44551,20 +43879,20 @@ } }, "@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "requires": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" } }, "@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "requires": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" } }, "@babel/helper-member-expression-to-functions": { @@ -44656,22 +43984,22 @@ } }, "@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "requires": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" } }, "@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==" + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==" }, "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==" }, "@babel/helper-validator-option": { "version": "7.18.6", @@ -44701,19 +44029,19 @@ } }, "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.20.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.3.tgz", - "integrity": "sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg==" + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.3.tgz", + "integrity": "sha512-uVsWNvlVsIninV2prNz/3lHCb+5CJ+e+IUBfbjToAHODtfGYLfCFuY4AU7TskI+dAKk+njsPiBjq1gKTvZOBaw==" }, "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { "version": "7.18.6", @@ -45735,39 +45063,39 @@ } }, "@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" } }, "@babel/traverse": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz", - "integrity": "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==", - "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.1", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.1", - "@babel/types": "^7.20.0", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.3.tgz", + "integrity": "sha512-+K0yF1/9yR0oHdE0StHuEj3uTPzwwbrLGfNOndVJVV2TqA5+j3oljJUb4nmB954FLGjNem976+B+eDuLIjesiQ==", + "requires": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.3", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.3", + "@babel/types": "^7.23.3", "debug": "^4.1.0", "globals": "^11.1.0" } }, "@babel/types": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.2.tgz", - "integrity": "sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.3.tgz", + "integrity": "sha512-OZnvoH2l8PK5eUvEcUyCt/sXgr/h+UWpVuBbOljwcrAgUl6lpchoQ++PHGyQy1AtYnVA6CEq3y5xeEI10brpXw==", "requires": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" } }, @@ -47824,15 +47152,6 @@ "chalk": "^4.0.0" } }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, "@types/yargs": { "version": "15.0.14", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", @@ -47851,19 +47170,6 @@ "color-convert": "^2.0.1" } }, - "babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - } - }, "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -47895,25 +47201,6 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true - }, - "istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - } - }, "jest-haste-map": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", @@ -47987,12 +47274,6 @@ "picomatch": "^2.3.1" } }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -48014,17 +47295,6 @@ "has-flag": "^4.0.0" } }, - "test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "requires": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - } - }, "write-file-atomic": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", @@ -48098,15 +47368,6 @@ "chalk": "^4.0.0" } }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, "@types/yargs": { "version": "16.0.4", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", @@ -56217,27 +55478,12 @@ "chalk": "^4.0.0" } }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, "@types/prettier": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.1.tgz", "integrity": "sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow==", "dev": true }, - "@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true - }, "@types/yargs": { "version": "16.0.4", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", @@ -56352,19 +55598,6 @@ "slash": "^3.0.0" } }, - "babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - } - }, "babel-plugin-jest-hoist": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", @@ -56377,26 +55610,6 @@ "@types/babel__traverse": "^7.0.6" } }, - "babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "requires": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - } - }, "babel-preset-jest": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", @@ -56555,12 +55768,6 @@ "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", "dev": true }, - "detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true - }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -56874,28 +56081,12 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, "ignore": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", "dev": true }, - "import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -56914,65 +56105,6 @@ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true }, - "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true - }, - "istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - } - }, - "istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - } - }, - "istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, "jest": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", @@ -57443,23 +56575,6 @@ "p-locate": "^5.0.0" } }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, "micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", @@ -57523,54 +56638,6 @@ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - } - } - }, "postcss-loader": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz", @@ -57676,21 +56743,6 @@ "integrity": "sha512-k519uI04Z3SaY0fLX843MRXnDeG2+vHOFsyhiPZvNLe7r8rD2YNRjq4BQLZZ0oAr2NrtvZlICsXysGNFPGa3CQ==", "dev": true }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - } - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, "rxjs": { "version": "7.5.7", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz", @@ -57749,33 +56801,6 @@ "tree-kill": "^1.2.2" } }, - "stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - } - } - }, - "string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "requires": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - } - }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -57811,17 +56836,6 @@ "has-flag": "^4.0.0" } }, - "test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "requires": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - } - }, "throat": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", @@ -58622,9 +57636,9 @@ "dev": true }, "axios": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", - "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", + "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", "dev": true, "requires": { "follow-redirects": "^1.15.0", @@ -59454,20 +58468,20 @@ } }, "browserify-sign": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", - "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.2.tgz", + "integrity": "sha512-1rudGyeYY42Dk6texmv7c4VcQ0EsvVbLwZkA+AQB7SxvXxmcD93jcHie8bzecJ+ChDlmAm2Qyu0+Ccg5uhZXCg==", "dev": true, "requires": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", + "bn.js": "^5.2.1", + "browserify-rsa": "^4.1.0", "create-hash": "^1.2.0", "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", + "elliptic": "^6.5.4", "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" + "parse-asn1": "^5.1.6", + "readable-stream": "^3.6.2", + "safe-buffer": "^5.2.1" }, "dependencies": { "readable-stream": { @@ -59789,45 +58803,12 @@ "path-exists": "^4.0.0" } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true }, - "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true - }, - "istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - } - }, - "istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, "locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -59837,15 +58818,6 @@ "p-locate": "^5.0.0" } }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, "p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -59870,12 +58842,6 @@ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -59896,37 +58862,6 @@ "ansi-regex": "^5.0.1" } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "requires": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - } - }, - "v8-to-istanbul": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", - "integrity": "sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" - } - }, "wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -61842,12 +60777,6 @@ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, "is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", @@ -62123,12 +61052,6 @@ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, "is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", @@ -67597,21 +66520,6 @@ "chalk": "^4.0.0" } }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true - }, "@types/yargs": { "version": "16.0.4", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", @@ -67745,12 +66653,6 @@ } } }, - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - }, "escodegen": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", @@ -67920,15 +66822,6 @@ "dev": true, "optional": true }, - "stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" - } - }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -75105,16 +73998,6 @@ "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", "dev": true }, - "write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - } - }, "yargs-parser": { "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", @@ -76745,80 +75628,12 @@ "which": "^2.0.1" } }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, "path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - } - }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - } - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", diff --git a/package.json b/package.json index 53448875e3..7aef4bccb8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "google-listings-and-ads", "title": "Google Listings and Ads", - "version": "2.5.11", + "version": "2.5.12", "description": "google-listings-and-ads", "author": "Automattic", "license": "GPL-3.0-or-later", @@ -63,7 +63,7 @@ "@wordpress/jest-preset-default": "^11.9.0", "@wordpress/prettier-config": "2.18.1", "@wordpress/scripts": "^24.6.0", - "axios": "^1.4.0", + "axios": "^1.6.0", "bundlewatch": "^0.3.3", "eslint": "^7.17.0", "eslint-import-resolver-webpack": "^0.13.1", @@ -172,7 +172,7 @@ } }, "engines": { - "node": "^16", - "npm": "^8" + "node": "^16 || ^18", + "npm": "^8 || ^9" } } diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 6b03b3f834..175a1c1532 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -18,9 +18,13 @@ - + + + + + @@ -29,7 +33,7 @@ - + @@ -56,9 +60,13 @@ - - - + + + + + + + @@ -107,6 +115,8 @@ ./src + ./bin + ./views ./google-listings-and-ads.php diff --git a/readme.txt b/readme.txt index 57e3f30fff..e4d3741267 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Requires at least: 5.9 Tested up to: 6.4 Requires PHP: 7.4 Requires PHP Architecture: 64 Bits -Stable tag: 2.5.11 +Stable tag: 2.5.12 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -111,6 +111,13 @@ Yes, you can run both at the same time, and we recommend it! In the US, advertis == Changelog == += 2.5.12 - 2023-11-22 = +* Dev - Fix E2E gtag events tests. +* Dev - Update WordPress CS to 3.0. +* Dev - Update phpunit polyfills to 1.1 for WP 6.4. +* Tweak - Add filter to be able to build custom shipping method rate handers. +* Tweak - Remove rewrite rules flush. + = 2.5.11 - 2023-11-07 = * Add - Record tracking events for moving steps on the campaign creation and editing pages. * Tweak - Add tracking for campaign count. @@ -122,12 +129,4 @@ Yes, you can run both at the same time, and we recommend it! In the US, advertis * Tweak - Add correct Destinations for Supported Countries in Coupons. * Tweak - Declare cart_checkout_blocks feature compatibility. -= 2.5.9 - 2023-10-10 = -* Dev - E2E - Setup Google Ads Step 2 - Create your paid campaign. -* Dev - E2E - Setup Google Ads Step 3 - Setup billing data. -* Dev - E2E tests - Track gtag event on specific page. -* Dev - Prevent Prefix Vendor to be added twice. -* Fix - Avoid creating two campaigns after completing the Google Ads onboarding. -* Fix - The auto-refresh processing of billing status in the Google Ads onboarding flow. - [See changelog for all versions](https://raw.githubusercontent.com/woocommerce/google-listings-and-ads/trunk/changelog.txt). diff --git a/src/API/Google/Ads.php b/src/API/Google/Ads.php index c209a1b8dc..5f5f2ef54c 100644 --- a/src/API/Google/Ads.php +++ b/src/API/Google/Ads.php @@ -323,5 +323,4 @@ private function get_merchant_link( int $merchant_id ): MerchantCenterLink { throw new Exception( __( 'Merchant link is not available to accept', 'google-listings-and-ads' ) ); } - } diff --git a/src/API/Google/AdsAsset.php b/src/API/Google/AdsAsset.php index ccb7d99b71..857e3bc9ae 100644 --- a/src/API/Google/AdsAsset.php +++ b/src/API/Google/AdsAsset.php @@ -116,7 +116,6 @@ protected function get_asset_type_by_field_type( string $field_type ): int { default: throw new Exception( 'Asset Field type not supported' ); } - } /** @@ -209,7 +208,6 @@ public function create_assets( array $assets, int $batch_size = self::MAX_PAYLOA } return $arns; - } /** @@ -245,7 +243,6 @@ protected function create_operation( array $data, int $temporary_id ): MutateOpe $operation = ( new AssetOperation() )->setCreate( $asset ); return ( new MutateOperation() )->setAssetOperation( $operation ); - } /** diff --git a/src/API/Google/AdsAssetGroup.php b/src/API/Google/AdsAssetGroup.php index e6cf9c4244..ed5e1c6529 100644 --- a/src/API/Google/AdsAssetGroup.php +++ b/src/API/Google/AdsAssetGroup.php @@ -312,7 +312,6 @@ public function get_asset_groups_by_campaign_id( int $campaign_id, bool $include [ 'errors' => $errors ] ); } - } /** @@ -473,5 +472,4 @@ protected function parse_asset_group_id( string $name ): int { throw new Exception( __( 'Invalid asset group ID', 'google-listings-and-ads' ) ); } } - } diff --git a/src/API/Google/AdsAssetGroupAsset.php b/src/API/Google/AdsAssetGroupAsset.php index b5bedda5c6..307eaf37e0 100644 --- a/src/API/Google/AdsAssetGroupAsset.php +++ b/src/API/Google/AdsAssetGroupAsset.php @@ -143,7 +143,6 @@ public function get_assets_by_asset_group_ids( array $asset_groups_ids, array $f [ 'errors' => $errors ] ); } - } /** @@ -210,7 +209,6 @@ public function get_assets_by_final_url( string $url, bool $only_first_asset_gro [ 'errors' => $errors ] ); } - } /** @@ -224,7 +222,7 @@ public function get_assets_to_be_deleted( array $assets ): array { return array_values( array_filter( $assets, - function( $asset ) { + function ( $asset ) { return ! empty( $asset['id'] ); } ) @@ -242,7 +240,7 @@ public function get_assets_to_be_created( array $assets ): array { return array_values( array_filter( $assets, - function( $asset ) { + function ( $asset ) { return ! empty( $asset['content'] ); } ) @@ -293,7 +291,7 @@ protected function maybe_asset_type_is_edited( string $field_type, array $assets */ protected function get_override_operations( int $asset_group_id, array $asset_field_types ): array { return array_map( - function( $asset ) use ( $asset_group_id ) { + function ( $asset ) use ( $asset_group_id ) { return $this->delete_operation( $asset_group_id, $asset['field_type'], $asset['id'] ); }, $this->get_specific_assets( $asset_group_id, $asset_field_types ) @@ -338,7 +336,6 @@ public function edit_operations( int $asset_group_id, array $assets ): array { // The delete operations must be executed first otherwise will cause a conflict with existing assets with identical content. // See here: https://github.com/woocommerce/google-listings-and-ads/pull/1870 return array_merge( $delete_asset_group_assets_operations, $asset_group_assets_operations ); - } @@ -378,8 +375,4 @@ protected function delete_operation( int $asset_group_id, string $asset_field_ty $operation = ( new AssetGroupAssetOperation() )->setRemove( $asset_group_asset_resource_name ); return ( new MutateOperation() )->setAssetGroupAssetOperation( $operation ); } - - - - } diff --git a/src/API/Google/AdsCampaign.php b/src/API/Google/AdsCampaign.php index 941e33a4ba..e3be4bfdeb 100644 --- a/src/API/Google/AdsCampaign.php +++ b/src/API/Google/AdsCampaign.php @@ -117,7 +117,7 @@ public function get_campaigns( bool $exclude_removed = true, bool $fetch_criteri $converted_campaigns = []; foreach ( $campaign_results->iterateAllElements() as $row ) { - $campaign_count++; + ++$campaign_count; $campaign = $this->convert_campaign( $row ); $converted_campaigns[ $campaign['id'] ] = $campaign; } @@ -386,9 +386,9 @@ public function get_campaign_convert_status(): string { foreach ( $this->get_campaigns( false, false ) as $campaign ) { if ( CampaignType::PERFORMANCE_MAX !== $campaign['type'] ) { if ( CampaignStatus::REMOVED === $campaign['status'] ) { - $old_removed_campaigns++; + ++$old_removed_campaigns; } else { - $old_campaigns++; + ++$old_campaigns; } } } diff --git a/src/API/Google/AdsConversionAction.php b/src/API/Google/AdsConversionAction.php index 3fc67c6fa8..6910b9d609 100644 --- a/src/API/Google/AdsConversionAction.php +++ b/src/API/Google/AdsConversionAction.php @@ -186,5 +186,4 @@ private function convert_conversion_action( GoogleAdsRow $row ): array { } return $return; } - } diff --git a/src/API/Google/ExceptionTrait.php b/src/API/Google/ExceptionTrait.php index 1c069d80ea..ce77bf921b 100644 --- a/src/API/Google/ExceptionTrait.php +++ b/src/API/Google/ExceptionTrait.php @@ -145,18 +145,18 @@ private function get_google_service_exception_errors( GoogleServiceException $ex /** * Get an error message from a ClientException. * - * @param ClientExceptionInterface $exception Exception to check. - * @param string $default Default error message. + * @param ClientExceptionInterface $exception Exception to check. + * @param string $default_error Default error message. * * @return string */ - protected function client_exception_message( ClientExceptionInterface $exception, string $default ): string { + protected function client_exception_message( ClientExceptionInterface $exception, string $default_error ): string { if ( $exception instanceof BadResponseException ) { $response = json_decode( $exception->getResponse()->getBody()->getContents(), true ); $message = $response['message'] ?? false; - return $message ? $default . ': ' . $message : $default; + return $message ? $default_error . ': ' . $message : $default_error; } - return $default; + return $default_error; } /** diff --git a/src/API/Google/MerchantMetrics.php b/src/API/Google/MerchantMetrics.php index 3a9a328202..2e18651deb 100644 --- a/src/API/Google/MerchantMetrics.php +++ b/src/API/Google/MerchantMetrics.php @@ -214,7 +214,7 @@ public function get_campaign_count(): int { // Iterate through all paged results (total results count is not set). foreach ( $campaign_results->iterateAllElements() as $row ) { - $campaign_count++; + ++$campaign_count; } } catch ( Exception $e ) { $campaign_count = 0; @@ -232,5 +232,4 @@ public function get_campaign_count(): int { protected function get_tomorrow(): string { return ( new DateTime( 'tomorrow', $this->wp->wp_timezone() ) )->format( 'Y-m-d' ); } - } diff --git a/src/API/Google/Query/Query.php b/src/API/Google/Query/Query.php index 9f540476a9..34a13b4edc 100644 --- a/src/API/Google/Query/Query.php +++ b/src/API/Google/Query/Query.php @@ -67,16 +67,16 @@ abstract class Query implements QueryInterface { /** * Query constructor. * - * @param string $resource + * @param string $resource_name * * @throws InvalidQuery When the resource name is not valid. */ - public function __construct( string $resource ) { - if ( ! preg_match( '/^[a-zA-Z_]+$/', $resource ) ) { + public function __construct( string $resource_name ) { + if ( ! preg_match( '/^[a-zA-Z_]+$/', $resource_name ) ) { throw InvalidQuery::resource_name(); } - $this->resource = $resource; + $this->resource = $resource_name; } /** @@ -326,7 +326,7 @@ protected function generate_where_pieces(): array { join( "','", array_map( - function( $value ) { + function ( $value ) { return $this->escape( $value ); }, $where['value'] diff --git a/src/API/Google/SiteVerification.php b/src/API/Google/SiteVerification.php index 96fc978bb5..8456c5bfeb 100644 --- a/src/API/Google/SiteVerification.php +++ b/src/API/Google/SiteVerification.php @@ -172,5 +172,4 @@ protected function insert( string $identifier ) { ); } } - } diff --git a/src/API/Site/Controllers/Ads/AccountController.php b/src/API/Site/Controllers/Ads/AccountController.php index 34dd68519d..59a88c8574 100644 --- a/src/API/Site/Controllers/Ads/AccountController.php +++ b/src/API/Site/Controllers/Ads/AccountController.php @@ -94,7 +94,7 @@ public function register_routes(): void { * @return callable */ protected function get_accounts_callback(): callable { - return function() { + return function () { try { return new Response( $this->account->get_accounts() ); } catch ( Exception $e ) { @@ -109,7 +109,7 @@ protected function get_accounts_callback(): callable { * @return callable */ protected function create_or_link_account_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $link_id = absint( $request['id'] ); if ( $link_id ) { @@ -130,7 +130,7 @@ protected function create_or_link_account_callback(): callable { * @return callable */ protected function get_connected_ads_account_callback(): callable { - return function() { + return function () { return $this->account->get_connected_account(); }; } @@ -141,7 +141,7 @@ protected function get_connected_ads_account_callback(): callable { * @return callable */ protected function disconnect_ads_account_callback(): callable { - return function() { + return function () { $this->account->disconnect(); return [ @@ -157,7 +157,7 @@ protected function disconnect_ads_account_callback(): callable { * @return callable */ protected function get_billing_status_callback(): callable { - return function() { + return function () { return $this->account->get_billing_status(); }; } @@ -195,5 +195,4 @@ protected function get_schema_properties(): array { protected function get_schema_title(): string { return 'account'; } - } diff --git a/src/API/Site/Controllers/Ads/AssetGroupController.php b/src/API/Site/Controllers/Ads/AssetGroupController.php index 1cfe928760..3dcafe9b65 100644 --- a/src/API/Site/Controllers/Ads/AssetGroupController.php +++ b/src/API/Site/Controllers/Ads/AssetGroupController.php @@ -143,11 +143,11 @@ public function get_asset_group_params(): array { * @return callable */ protected function get_asset_groups_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $campaign_id = $request->get_param( 'campaign_id' ); return array_map( - function( $item ) use ( $request ) { + function ( $item ) use ( $request ) { $data = $this->prepare_item_for_response( $item, $request ); return $this->prepare_response_for_collection( $data ); }, @@ -157,7 +157,6 @@ function( $item ) use ( $request ) { } catch ( Exception $e ) { return $this->response_from_exception( $e ); } - }; } @@ -167,7 +166,7 @@ function( $item ) use ( $request ) { * @return callable */ public function create_asset_group_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $asset_group_id = $this->ads_asset_group->create_asset_group( $request->get_param( 'campaign_id' ) ); return [ @@ -187,7 +186,7 @@ public function create_asset_group_callback(): callable { * @return callable */ public function edit_asset_group_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $asset_group_fields = array_intersect_key( $request->get_params(), diff --git a/src/API/Site/Controllers/Ads/AssetSuggestionsController.php b/src/API/Site/Controllers/Ads/AssetSuggestionsController.php index e2d82084eb..1eb709fccd 100644 --- a/src/API/Site/Controllers/Ads/AssetSuggestionsController.php +++ b/src/API/Site/Controllers/Ads/AssetSuggestionsController.php @@ -132,7 +132,7 @@ public function get_assets_suggestions_params(): array { * @return callable */ protected function get_assets_suggestions_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $id = $request->get_param( 'id' ); $type = $request->get_param( 'type' ); @@ -149,12 +149,12 @@ protected function get_assets_suggestions_callback(): callable { * @return callable */ protected function get_final_url_suggestions_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $search = $request->get_param( 'search' ); $per_page = $request->get_param( 'per_page' ); $order_by = $request->get_param( 'order_by' ); return array_map( - function( $item ) use ( $request ) { + function ( $item ) use ( $request ) { $data = $this->prepare_item_for_response( $item, $request ); return $this->prepare_response_for_collection( $data ); }, @@ -198,7 +198,6 @@ protected function get_schema_properties(): array { ], ]; - } @@ -212,5 +211,4 @@ protected function get_schema_properties(): array { protected function get_schema_title(): string { return 'asset_final_url_suggestions'; } - } diff --git a/src/API/Site/Controllers/Ads/BudgetRecommendationController.php b/src/API/Site/Controllers/Ads/BudgetRecommendationController.php index 9b4fce2fb0..55660b411d 100644 --- a/src/API/Site/Controllers/Ads/BudgetRecommendationController.php +++ b/src/API/Site/Controllers/Ads/BudgetRecommendationController.php @@ -90,7 +90,7 @@ public function get_collection_params(): array { * @return callable */ protected function get_budget_recommendation_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $country_codes = $request->get_param( 'country_codes' ); $currency = $this->ads->get_ads_currency(); diff --git a/src/API/Site/Controllers/Ads/CampaignController.php b/src/API/Site/Controllers/Ads/CampaignController.php index b58695aca2..5234ea59c8 100644 --- a/src/API/Site/Controllers/Ads/CampaignController.php +++ b/src/API/Site/Controllers/Ads/CampaignController.php @@ -97,12 +97,12 @@ public function register_routes(): void { * @return callable */ protected function get_campaigns_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $exclude_removed = $request->get_param( 'exclude_removed' ); return array_map( - function( $campaign ) use ( $request ) { + function ( $campaign ) use ( $request ) { $data = $this->prepare_item_for_response( $campaign, $request ); return $this->prepare_response_for_collection( $data ); }, @@ -120,7 +120,7 @@ function( $campaign ) use ( $request ) { * @return callable */ protected function create_campaign_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $fields = array_intersect_key( $request->get_json_params(), $this->get_schema_properties() ); @@ -149,7 +149,7 @@ protected function create_campaign_callback(): callable { * @return callable */ protected function get_campaign_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $id = absint( $request['id'] ); $campaign = $this->ads_campaign->get_campaign( $id ); @@ -177,7 +177,7 @@ protected function get_campaign_callback(): callable { * @return callable */ protected function edit_campaign_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $fields = array_intersect_key( $request->get_json_params(), $this->get_edit_schema() ); if ( empty( $fields ) ) { @@ -209,7 +209,7 @@ protected function edit_campaign_callback(): callable { * @return callable */ protected function delete_campaign_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $deleted_id = $this->ads_campaign->delete_campaign( absint( $request['id'] ) ); @@ -241,7 +241,7 @@ protected function get_edit_schema(): array { // Unset required to allow editing individual fields. array_walk( $fields, - function( &$value ) { + function ( &$value ) { unset( $value['required'] ); } ); diff --git a/src/API/Site/Controllers/Ads/ReportsController.php b/src/API/Site/Controllers/Ads/ReportsController.php index a71fb9a875..0f81ffd971 100644 --- a/src/API/Site/Controllers/Ads/ReportsController.php +++ b/src/API/Site/Controllers/Ads/ReportsController.php @@ -56,7 +56,7 @@ public function register_routes(): void { * @return callable */ protected function get_programs_report_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { /** @var AdsReport $ads */ $ads = $this->container->get( AdsReport::class ); @@ -74,7 +74,7 @@ protected function get_programs_report_callback(): callable { * @return callable */ protected function get_products_report_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { /** @var AdsReport $ads */ $ads = $this->container->get( AdsReport::class ); diff --git a/src/API/Site/Controllers/Ads/SetupCompleteController.php b/src/API/Site/Controllers/Ads/SetupCompleteController.php index 4eb2349e4c..1c70d53231 100644 --- a/src/API/Site/Controllers/Ads/SetupCompleteController.php +++ b/src/API/Site/Controllers/Ads/SetupCompleteController.php @@ -42,7 +42,7 @@ public function register_routes() { * @return callable */ protected function get_setup_complete_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { do_action( 'woocommerce_gla_ads_setup_completed' ); return new Response( diff --git a/src/API/Site/Controllers/AttributeMapping/AttributeMappingDataController.php b/src/API/Site/Controllers/AttributeMapping/AttributeMappingDataController.php index f9a5442f0f..38d642ff1c 100644 --- a/src/API/Site/Controllers/AttributeMapping/AttributeMappingDataController.php +++ b/src/API/Site/Controllers/AttributeMapping/AttributeMappingDataController.php @@ -101,7 +101,7 @@ protected function get_mapping_attributes_read_callback(): callable { * @return callable */ protected function get_mapping_sources_read_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $attribute = $request->get_param( 'attribute' ); return [ diff --git a/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php b/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php index 9cb7f83f66..f5875ec03c 100644 --- a/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php +++ b/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php @@ -94,7 +94,7 @@ public function register_routes(): void { * @return callable */ protected function get_rule_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $page = $request->get_param( 'page' ); $per_page = $request->get_param( 'per_page' ); @@ -133,7 +133,7 @@ protected function get_rule_callback(): callable { * @return callable */ protected function create_rule_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { if ( ! $this->attribute_mapping_rules_query->insert( $this->prepare_item_for_database( $request ) ) ) { return $this->response_from_exception( new Exception( 'Unable to create the new rule.' ) ); @@ -154,7 +154,7 @@ protected function create_rule_callback(): callable { * @return callable */ protected function update_rule_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $rule_id = $request->get_url_params()['id']; @@ -177,7 +177,7 @@ protected function update_rule_callback(): callable { * @return callable */ protected function delete_rule_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $rule_id = $request->get_url_params()['id']; @@ -233,7 +233,7 @@ protected function get_schema_properties(): array { 'description' => __( 'List of category IDs, separated by commas.', 'google-listings-and-ads' ), 'type' => 'string', 'required' => false, - 'validate_callback' => function( $param ) { + 'validate_callback' => function ( $param ) { return $this->validate_categories_param( $param ); }, ], diff --git a/src/API/Site/Controllers/AttributeMapping/AttributeMappingSyncerController.php b/src/API/Site/Controllers/AttributeMapping/AttributeMappingSyncerController.php index 78e1c57b96..c69e274d97 100644 --- a/src/API/Site/Controllers/AttributeMapping/AttributeMappingSyncerController.php +++ b/src/API/Site/Controllers/AttributeMapping/AttributeMappingSyncerController.php @@ -64,7 +64,7 @@ public function register_routes(): void { * @return callable */ protected function get_sync_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $state = [ 'is_scheduled' => (bool) $this->sync_stats->get_count(), diff --git a/src/API/Site/Controllers/BaseController.php b/src/API/Site/Controllers/BaseController.php index 318f79de4d..6ac6ff4f9e 100644 --- a/src/API/Site/Controllers/BaseController.php +++ b/src/API/Site/Controllers/BaseController.php @@ -18,7 +18,9 @@ */ abstract class BaseController extends WC_REST_Controller implements Registerable { - use PluginHelper, PermissionsTrait, ResponseFromExceptionTrait; + use PluginHelper; + use PermissionsTrait; + use ResponseFromExceptionTrait; /** * @var RESTServer @@ -67,7 +69,7 @@ protected function get_namespace(): string { * @return callable */ protected function get_permission_callback(): callable { - return function() { + return function () { return $this->can_manage(); }; } @@ -107,7 +109,7 @@ public function get_item_schema(): array { * @return callable */ protected function get_api_response_schema_callback(): callable { - return function() { + return function () { return $this->get_item_schema(); }; } diff --git a/src/API/Site/Controllers/CountryCodeTrait.php b/src/API/Site/Controllers/CountryCodeTrait.php index 37467e644e..d251e0e217 100644 --- a/src/API/Site/Controllers/CountryCodeTrait.php +++ b/src/API/Site/Controllers/CountryCodeTrait.php @@ -94,7 +94,7 @@ protected function validate_country_codes( bool $check_supported_country, $count * @return callable */ protected function get_country_code_sanitize_callback(): callable { - return function( $value ) { + return function ( $value ) { return is_array( $value ) ? array_map( 'strtoupper', $value ) : strtoupper( $value ); @@ -108,7 +108,7 @@ protected function get_country_code_sanitize_callback(): callable { * @return callable */ protected function get_country_code_validate_callback(): callable { - return function( ...$args ) { + return function ( ...$args ) { return $this->validate_country_codes( false, ...$args ); }; } @@ -120,7 +120,7 @@ protected function get_country_code_validate_callback(): callable { * @return callable */ protected function get_supported_country_code_validate_callback(): callable { - return function( ...$args ) { + return function ( ...$args ) { return $this->validate_country_codes( true, ...$args ); }; } diff --git a/src/API/Site/Controllers/DisconnectController.php b/src/API/Site/Controllers/DisconnectController.php index 0c99d2dc71..8eb5d06658 100644 --- a/src/API/Site/Controllers/DisconnectController.php +++ b/src/API/Site/Controllers/DisconnectController.php @@ -40,7 +40,7 @@ public function register_routes() { * @return callable */ protected function get_disconnect_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $endpoints = [ 'ads/connection', 'mc/connection', diff --git a/src/API/Site/Controllers/Google/AccountController.php b/src/API/Site/Controllers/Google/AccountController.php index 78b508bc72..6cb7f8c2d5 100644 --- a/src/API/Site/Controllers/Google/AccountController.php +++ b/src/API/Site/Controllers/Google/AccountController.php @@ -97,7 +97,7 @@ public function register_routes(): void { * @return callable */ protected function get_connect_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $next = $request->get_param( 'next_page_name' ); $login_hint = $request->get_param( 'login_hint' ) ?: ''; @@ -143,7 +143,7 @@ protected function get_connect_params(): array { * @return callable */ protected function get_disconnect_callback(): callable { - return function() { + return function () { $this->connection->disconnect(); return [ @@ -161,7 +161,7 @@ protected function get_disconnect_callback(): callable { * @return callable */ protected function get_connected_callback(): callable { - return function() { + return function () { try { $status = $this->connection->get_status(); return [ @@ -181,7 +181,7 @@ protected function get_connected_callback(): callable { * @return callable */ protected function get_reconnected_callback(): callable { - return function() { + return function () { try { $status = $this->connection->get_reconnect_status(); $status['active'] = array_key_exists( 'status', $status ) && ( 'connected' === $status['status'] ) ? 'yes' : 'no'; diff --git a/src/API/Site/Controllers/Jetpack/AccountController.php b/src/API/Site/Controllers/Jetpack/AccountController.php index 728eca1113..689a574567 100644 --- a/src/API/Site/Controllers/Jetpack/AccountController.php +++ b/src/API/Site/Controllers/Jetpack/AccountController.php @@ -96,7 +96,7 @@ public function register_routes(): void { * @return callable */ protected function get_connect_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { // Register the site to wp.com. if ( ! $this->manager->is_connected() ) { $result = $this->manager->register(); @@ -150,7 +150,7 @@ protected function get_connect_params(): array { * @return callable */ protected function get_disconnect_callback(): callable { - return function() { + return function () { $this->manager->remove_connection(); $this->options->delete( OptionsInterface::WP_TOS_ACCEPTED ); $this->options->delete( OptionsInterface::JETPACK_CONNECTED ); @@ -168,7 +168,7 @@ protected function get_disconnect_callback(): callable { * @return callable */ protected function get_connected_callback(): callable { - return function() { + return function () { if ( $this->is_jetpack_connected() && ! $this->options->get( OptionsInterface::WP_TOS_ACCEPTED ) ) { $this->log_wp_tos_accepted(); } diff --git a/src/API/Site/Controllers/MerchantCenter/AccountController.php b/src/API/Site/Controllers/MerchantCenter/AccountController.php index 67217a3860..6140c703a7 100644 --- a/src/API/Site/Controllers/MerchantCenter/AccountController.php +++ b/src/API/Site/Controllers/MerchantCenter/AccountController.php @@ -117,10 +117,10 @@ public function register_routes(): void { * @return callable */ protected function get_accounts_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { return array_map( - function( $account ) use ( $request ) { + function ( $account ) use ( $request ) { $data = $this->prepare_item_for_response( $account, $request ); return $this->prepare_response_for_collection( $data ); }, @@ -157,7 +157,7 @@ protected function switch_url_callback(): callable { * @return callable */ protected function setup_account_callback( string $action = 'setup_account' ): callable { - return function( Request $request ) use ( $action ) { + return function ( Request $request ) use ( $action ) { try { $account_id = absint( $request['id'] ); @@ -182,7 +182,7 @@ protected function setup_account_callback( string $action = 'setup_account' ): c * @return callable */ protected function get_connected_merchant_callback(): callable { - return function() { + return function () { return $this->account->get_connected_status(); }; } @@ -193,7 +193,7 @@ protected function get_connected_merchant_callback(): callable { * @return callable */ protected function get_setup_merchant_callback(): callable { - return function() { + return function () { return $this->account->get_setup_status(); }; } @@ -204,7 +204,7 @@ protected function get_setup_merchant_callback(): callable { * @return callable */ protected function disconnect_merchant_callback(): callable { - return function() { + return function () { $this->account->disconnect(); return [ @@ -278,5 +278,4 @@ private function get_time_to_wait_response( ApiNotReady $wait ): Response { ] ); } - } diff --git a/src/API/Site/Controllers/MerchantCenter/AttributeMappingCategoriesController.php b/src/API/Site/Controllers/MerchantCenter/AttributeMappingCategoriesController.php index dde791c0d9..114cc40124 100644 --- a/src/API/Site/Controllers/MerchantCenter/AttributeMappingCategoriesController.php +++ b/src/API/Site/Controllers/MerchantCenter/AttributeMappingCategoriesController.php @@ -52,7 +52,7 @@ public function register_routes(): void { * @return callable */ protected function get_categories_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $cats = $this->get_category_tree(); return array_map( @@ -132,6 +132,4 @@ function ( $category ) { $categories ); } - - } diff --git a/src/API/Site/Controllers/MerchantCenter/BatchShippingTrait.php b/src/API/Site/Controllers/MerchantCenter/BatchShippingTrait.php index 3a10e97789..0d0c29190e 100644 --- a/src/API/Site/Controllers/MerchantCenter/BatchShippingTrait.php +++ b/src/API/Site/Controllers/MerchantCenter/BatchShippingTrait.php @@ -20,7 +20,7 @@ trait BatchShippingTrait { * @return callable */ protected function get_batch_delete_shipping_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $country_codes = $request->get_param( 'country_codes' ); $responses = []; diff --git a/src/API/Site/Controllers/MerchantCenter/ConnectionController.php b/src/API/Site/Controllers/MerchantCenter/ConnectionController.php index af614c20bc..382c293bd7 100644 --- a/src/API/Site/Controllers/MerchantCenter/ConnectionController.php +++ b/src/API/Site/Controllers/MerchantCenter/ConnectionController.php @@ -38,7 +38,7 @@ public function register_routes(): void { * @return callable */ protected function get_connect_callback(): callable { - return function() { + return function () { return [ 'url' => 'example.com', ]; diff --git a/src/API/Site/Controllers/MerchantCenter/IssuesController.php b/src/API/Site/Controllers/MerchantCenter/IssuesController.php index 4382bd01e9..57e5568586 100644 --- a/src/API/Site/Controllers/MerchantCenter/IssuesController.php +++ b/src/API/Site/Controllers/MerchantCenter/IssuesController.php @@ -69,7 +69,7 @@ public function register_routes(): void { * @return callable */ protected function get_issues_read_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $type_filter = $request['type_filter']; $per_page = intval( $request['per_page'] ); $page = max( 1, intval( $request['page'] ) ); @@ -208,7 +208,6 @@ public function get_collection_params(): array { 'validate_callback' => 'rest_validate_request_arg', ], ]; - } /** diff --git a/src/API/Site/Controllers/MerchantCenter/PhoneVerificationController.php b/src/API/Site/Controllers/MerchantCenter/PhoneVerificationController.php index 287118c7a1..5afc3a55ea 100644 --- a/src/API/Site/Controllers/MerchantCenter/PhoneVerificationController.php +++ b/src/API/Site/Controllers/MerchantCenter/PhoneVerificationController.php @@ -116,7 +116,7 @@ public function register_routes(): void { * @return callable */ protected function get_request_phone_verification_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $verification_id = $this->phone_verification->request_phone_verification( $request->get_param( 'phone_region_code' ), @@ -138,7 +138,7 @@ protected function get_request_phone_verification_callback(): callable { * @return callable */ protected function get_verify_phone_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $this->phone_verification->verify_phone_number( $request->get_param( 'verification_id' ), diff --git a/src/API/Site/Controllers/MerchantCenter/ProductFeedController.php b/src/API/Site/Controllers/MerchantCenter/ProductFeedController.php index 584aaa7b67..5d66e98075 100644 --- a/src/API/Site/Controllers/MerchantCenter/ProductFeedController.php +++ b/src/API/Site/Controllers/MerchantCenter/ProductFeedController.php @@ -59,7 +59,7 @@ public function register_routes(): void { * @return callable */ protected function get_product_feed_read_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { return [ 'products' => $this->query_helper->get( $request ), diff --git a/src/API/Site/Controllers/MerchantCenter/ProductStatisticsController.php b/src/API/Site/Controllers/MerchantCenter/ProductStatisticsController.php index c8fe9bb2bf..5939935c9c 100644 --- a/src/API/Site/Controllers/MerchantCenter/ProductStatisticsController.php +++ b/src/API/Site/Controllers/MerchantCenter/ProductStatisticsController.php @@ -83,7 +83,7 @@ public function register_routes(): void { * @return callable */ protected function get_product_statistics_read_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { return $this->get_product_status_stats( $request ); }; } @@ -93,7 +93,7 @@ protected function get_product_statistics_read_callback(): callable { * @return callable */ protected function get_product_statistics_refresh_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { return $this->get_product_status_stats( $request, true ); }; } diff --git a/src/API/Site/Controllers/MerchantCenter/ReportsController.php b/src/API/Site/Controllers/MerchantCenter/ReportsController.php index 47341f7a42..03379f7327 100644 --- a/src/API/Site/Controllers/MerchantCenter/ReportsController.php +++ b/src/API/Site/Controllers/MerchantCenter/ReportsController.php @@ -55,7 +55,7 @@ public function register_routes(): void { * @return callable */ protected function get_programs_report_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { /** @var MerchantReport $merchant */ $merchant = $this->container->get( MerchantReport::class ); @@ -73,7 +73,7 @@ protected function get_programs_report_callback(): callable { * @return callable */ protected function get_products_report_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { /** @var MerchantReport $merchant */ $merchant = $this->container->get( MerchantReport::class ); diff --git a/src/API/Site/Controllers/MerchantCenter/RequestReviewController.php b/src/API/Site/Controllers/MerchantCenter/RequestReviewController.php index 8734b3edac..b9fe6696d8 100644 --- a/src/API/Site/Controllers/MerchantCenter/RequestReviewController.php +++ b/src/API/Site/Controllers/MerchantCenter/RequestReviewController.php @@ -260,6 +260,5 @@ private function get_review_status(): ?array { } return $review_status; - } } diff --git a/src/API/Site/Controllers/MerchantCenter/SettingsController.php b/src/API/Site/Controllers/MerchantCenter/SettingsController.php index e3a3e3e576..e9ffac77e4 100644 --- a/src/API/Site/Controllers/MerchantCenter/SettingsController.php +++ b/src/API/Site/Controllers/MerchantCenter/SettingsController.php @@ -45,7 +45,7 @@ public function register_routes(): void { * @return callable */ protected function get_settings_endpoint_read_callback(): callable { - return function() { + return function () { $data = $this->options->get( OptionsInterface::MERCHANT_CENTER, [] ); $schema = $this->get_schema_properties(); $items = []; @@ -63,7 +63,7 @@ protected function get_settings_endpoint_read_callback(): callable { * @return callable */ protected function get_settings_endpoint_edit_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $schema = $this->get_schema_properties(); $options = $this->options->get( OptionsInterface::MERCHANT_CENTER, [] ); if ( ! is_array( $options ) ) { diff --git a/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php b/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php index 84b348d750..2f6d780adb 100644 --- a/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php +++ b/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php @@ -61,7 +61,7 @@ public function register_routes() { * @return callable */ protected function get_sync_endpoint_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $this->settings->sync_taxes(); $this->settings->sync_shipping(); diff --git a/src/API/Site/Controllers/MerchantCenter/ShippingRateController.php b/src/API/Site/Controllers/MerchantCenter/ShippingRateController.php index 8787e23bce..db23cc03c4 100644 --- a/src/API/Site/Controllers/MerchantCenter/ShippingRateController.php +++ b/src/API/Site/Controllers/MerchantCenter/ShippingRateController.php @@ -227,7 +227,7 @@ protected function get_create_rate_callback(): callable { * @return callable */ protected function get_delete_rate_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $id = (string) $request->get_param( 'id' ); diff --git a/src/API/Site/Controllers/MerchantCenter/ShippingTimeBatchController.php b/src/API/Site/Controllers/MerchantCenter/ShippingTimeBatchController.php index 9dcae897ed..9ee56a9ec2 100644 --- a/src/API/Site/Controllers/MerchantCenter/ShippingTimeBatchController.php +++ b/src/API/Site/Controllers/MerchantCenter/ShippingTimeBatchController.php @@ -50,7 +50,7 @@ public function register_routes(): void { * @return callable */ protected function get_batch_create_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $country_codes = $request->get_param( 'country_codes' ); $time = $request->get_param( 'time' ); diff --git a/src/API/Site/Controllers/MerchantCenter/ShippingTimeController.php b/src/API/Site/Controllers/MerchantCenter/ShippingTimeController.php index f5833e50d8..984ce7f11a 100644 --- a/src/API/Site/Controllers/MerchantCenter/ShippingTimeController.php +++ b/src/API/Site/Controllers/MerchantCenter/ShippingTimeController.php @@ -92,7 +92,7 @@ public function register_routes(): void { * @return callable */ protected function get_read_times_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $times = $this->get_all_shipping_times(); $items = []; foreach ( $times as $time ) { @@ -117,7 +117,7 @@ protected function get_read_times_callback(): callable { * @return callable */ protected function get_read_time_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $country = $request->get_param( 'country_code' ); $time = $this->get_shipping_time_for_country( $country ); if ( empty( $time ) ) { @@ -146,7 +146,7 @@ protected function get_read_time_callback(): callable { * @return callable */ protected function get_create_time_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $query = $this->get_query_object(); $country_code = $request->get_param( 'country_code' ); $existing = ! empty( $query->where( 'country', $country_code )->get_results() ); @@ -197,7 +197,7 @@ protected function get_create_time_callback(): callable { * @return callable */ protected function get_delete_time_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $country_code = $request->get_param( 'country_code' ); $this->get_query_object()->delete( 'country', $country_code ); @@ -300,7 +300,7 @@ protected function get_additional_fields( $object_type = null ): array { 'context' => [ 'view' ], 'readonly' => true, ], - 'get_callback' => function( $fields ) { + 'get_callback' => function ( $fields ) { return $this->iso3166_data_provider->alpha2( $fields['country_code'] )['name']; }, ]; diff --git a/src/API/Site/Controllers/MerchantCenter/SupportedCountriesController.php b/src/API/Site/Controllers/MerchantCenter/SupportedCountriesController.php index c423737a26..f2fa29850f 100644 --- a/src/API/Site/Controllers/MerchantCenter/SupportedCountriesController.php +++ b/src/API/Site/Controllers/MerchantCenter/SupportedCountriesController.php @@ -72,7 +72,7 @@ public function register_routes(): void { * @return callable */ protected function get_countries_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $return = [ 'countries' => $this->get_supported_countries( $request ), ]; @@ -108,7 +108,7 @@ protected function get_supported_countries(): array { uasort( $supported, - function( $a, $b ) { + function ( $a, $b ) { return $a['name'] <=> $b['name']; } ); diff --git a/src/API/Site/Controllers/MerchantCenter/SyncableProductsCountController.php b/src/API/Site/Controllers/MerchantCenter/SyncableProductsCountController.php index 753adc8497..ccf4e03798 100644 --- a/src/API/Site/Controllers/MerchantCenter/SyncableProductsCountController.php +++ b/src/API/Site/Controllers/MerchantCenter/SyncableProductsCountController.php @@ -65,7 +65,7 @@ public function register_routes() { * @return callable */ protected function get_syncable_products_count_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $response = [ 'count' => null, ]; @@ -86,7 +86,7 @@ protected function get_syncable_products_count_callback(): callable { * @return callable */ protected function update_syncable_products_count_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $this->options->delete( OptionsInterface::SYNCABLE_PRODUCTS_COUNT ); $this->options->delete( OptionsInterface::SYNCABLE_PRODUCTS_COUNT_INTERMEDIATE_DATA ); diff --git a/src/API/Site/Controllers/MerchantCenter/TargetAudienceController.php b/src/API/Site/Controllers/MerchantCenter/TargetAudienceController.php index 0f78e00fc1..7a0699cdc6 100644 --- a/src/API/Site/Controllers/MerchantCenter/TargetAudienceController.php +++ b/src/API/Site/Controllers/MerchantCenter/TargetAudienceController.php @@ -108,7 +108,7 @@ public function register_routes(): void { * @return callable */ protected function get_read_audience_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { return $this->prepare_item_for_response( $this->get_target_audience_option(), $request ); }; } @@ -121,7 +121,7 @@ protected function get_read_audience_callback(): callable { * @since 1.9.0 */ protected function get_suggest_audience_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { return $this->prepare_item_for_response( $this->get_target_audience_suggestion(), $request ); }; } @@ -132,7 +132,7 @@ protected function get_suggest_audience_callback(): callable { * @return callable */ protected function get_update_audience_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { $data = $this->prepare_item_for_database( $request ); $this->update_target_audience_option( $data ); $this->prepare_item_for_response( $data, $request ); @@ -166,7 +166,7 @@ protected function get_additional_fields( $object_type = null ): array { 'context' => [ 'view' ], 'readonly' => true, ], - 'get_callback' => function() { + 'get_callback' => function () { return $this->wp->get_locale(); }, ]; @@ -276,12 +276,12 @@ protected function get_language_callback(): callable { // Default to using the Locale class if it is available. if ( class_exists( Locale::class ) ) { - return function() use ( $locale ): string { + return function () use ( $locale ): string { return Locale::getDisplayLanguage( $locale, $locale ); }; } - return function() use ( $locale ): string { + return function () use ( $locale ): string { // en_US isn't provided by the translations API. if ( 'en_US' === $locale ) { return 'English'; diff --git a/src/API/Site/Controllers/TourController.php b/src/API/Site/Controllers/TourController.php index 6c0296d5c0..cc01a098b4 100644 --- a/src/API/Site/Controllers/TourController.php +++ b/src/API/Site/Controllers/TourController.php @@ -87,7 +87,7 @@ protected function get_tours_read_callback(): callable { * @return callable */ protected function get_tours_create_callback(): callable { - return function( Request $request ) { + return function ( Request $request ) { try { $tour_id = $request->get_param( 'id' ); $tours = $this->get_tours(); diff --git a/src/API/Site/RESTControllers.php b/src/API/Site/RESTControllers.php index 77d208e3b1..180dc29602 100644 --- a/src/API/Site/RESTControllers.php +++ b/src/API/Site/RESTControllers.php @@ -40,7 +40,7 @@ public function __construct( ContainerInterface $container ) { public function register(): void { add_action( 'rest_api_init', - function() { + function () { $this->register_controllers(); } ); diff --git a/src/ActionScheduler/ActionScheduler.php b/src/ActionScheduler/ActionScheduler.php index ae7362ef3d..086da50fa0 100644 --- a/src/ActionScheduler/ActionScheduler.php +++ b/src/ActionScheduler/ActionScheduler.php @@ -183,5 +183,4 @@ public function cancel( string $hook, $args = [] ) { public function fetch_action( int $action_id ): ActionScheduler_Action { return ActionSchedulerCore::store()->fetch_action( $action_id ); } - } diff --git a/src/ActionScheduler/ActionSchedulerInterface.php b/src/ActionScheduler/ActionSchedulerInterface.php index bc36bac194..3bc9102844 100644 --- a/src/ActionScheduler/ActionSchedulerInterface.php +++ b/src/ActionScheduler/ActionSchedulerInterface.php @@ -143,5 +143,4 @@ public function cancel( string $hook, $args = [] ); * @since 1.7.0 */ public function fetch_action( int $action_id ): ActionScheduler_Action; - } diff --git a/src/ActionScheduler/AsyncActionRunner.php b/src/ActionScheduler/AsyncActionRunner.php index ca8e54bebe..3ffa95d5be 100644 --- a/src/ActionScheduler/AsyncActionRunner.php +++ b/src/ActionScheduler/AsyncActionRunner.php @@ -81,5 +81,4 @@ public function maybe_dispatch_async_request() { $this->locker->set( 'async-request-runner' ); $this->async_request->maybe_dispatch(); } - } diff --git a/src/Admin/Admin.php b/src/Admin/Admin.php index e18406ccd0..2321914c57 100644 --- a/src/Admin/Admin.php +++ b/src/Admin/Admin.php @@ -76,7 +76,7 @@ public function __construct( AssetsHandlerInterface $assets_handler, ViewFactory public function register(): void { add_action( 'admin_enqueue_scripts', - function() { + function () { if ( PageController::is_admin_page() ) { // Enqueue the required JavaScript scripts and CSS styles of the Media library. wp_enqueue_media(); @@ -91,14 +91,14 @@ function() { add_action( "plugin_action_links_{$this->get_plugin_basename()}", - function( $links ) { + function ( $links ) { return $this->add_plugin_links( $links ); } ); add_action( 'wp_default_scripts', - function( $scripts ) { + function ( $scripts ) { $this->inject_fast_refresh_for_dev( $scripts ); }, 20 @@ -113,7 +113,7 @@ function( $scripts ) { * @return Asset[] */ protected function get_assets(): array { - $wc_admin_condition = function() { + $wc_admin_condition = function () { return PageController::is_admin_page(); }; diff --git a/src/Admin/BulkEdit/CouponBulkEdit.php b/src/Admin/BulkEdit/CouponBulkEdit.php index 125f94fc2f..b2fe9920b3 100644 --- a/src/Admin/BulkEdit/CouponBulkEdit.php +++ b/src/Admin/BulkEdit/CouponBulkEdit.php @@ -118,7 +118,6 @@ public function handle_submission( int $post_id, $post ): int { } // Check nonce. - // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash if ( ! isset( $request_data['woocommerce_gla_bulk_edit'] ) || ! wp_verify_nonce( $request_data['woocommerce_gla_bulk_edit_nonce'], 'woocommerce_gla_bulk_edit_nonce' ) ) { return $post_id; } @@ -146,7 +145,7 @@ public function handle_submission( int $post_id, $post ): int { */ protected function request_data(): array { // Nonce must be verified manually. - //phpcs:ignore WordPress.Security.NonceVerification.Recommended + // phpcs:ignore WordPress.Security.NonceVerification.Recommended return $_REQUEST; } } diff --git a/src/Admin/Input/BooleanSelect.php b/src/Admin/Input/BooleanSelect.php index 96d373e83e..24fc943e42 100644 --- a/src/Admin/Input/BooleanSelect.php +++ b/src/Admin/Input/BooleanSelect.php @@ -37,5 +37,4 @@ public function get_view_data(): array { return $view_data; } - } diff --git a/src/Admin/Input/DateTime.php b/src/Admin/Input/DateTime.php index 87ea3de08b..83a400937f 100644 --- a/src/Admin/Input/DateTime.php +++ b/src/Admin/Input/DateTime.php @@ -94,5 +94,4 @@ public function set_data( $data ): void { protected function get_local_tz_string(): string { return wp_timezone_string(); } - } diff --git a/src/Admin/Input/SelectWithTextInput.php b/src/Admin/Input/SelectWithTextInput.php index 1b45fbcc14..622d977dbc 100644 --- a/src/Admin/Input/SelectWithTextInput.php +++ b/src/Admin/Input/SelectWithTextInput.php @@ -24,8 +24,8 @@ public function __construct() { $this->add( $select_input ); $custom_input = ( new Text() )->set_id( self::CUSTOM_INPUT_KEY ) - ->set_label( __( 'Enter your value', 'google-listings-and-ads' ) ) - ->set_name( self::CUSTOM_INPUT_KEY ); + ->set_label( __( 'Enter your value', 'google-listings-and-ads' ) ) + ->set_name( self::CUSTOM_INPUT_KEY ); $this->add( $custom_input ); parent::__construct( 'select-with-text-input' ); diff --git a/src/Admin/Product/Attributes/AttributesForm.php b/src/Admin/Product/Attributes/AttributesForm.php index ae110ddb0c..0da6a9e055 100644 --- a/src/Admin/Product/Attributes/AttributesForm.php +++ b/src/Admin/Product/Attributes/AttributesForm.php @@ -99,7 +99,7 @@ public function get_view_data(): array { */ protected function init_input( InputInterface $input, AttributeInterface $attribute ) { $input->set_id( $attribute::get_id() ) - ->set_name( $attribute::get_id() ); + ->set_name( $attribute::get_id() ); $value_options = []; if ( $attribute instanceof WithValueOptionsInterface ) { @@ -111,7 +111,7 @@ protected function init_input( InputInterface $input, AttributeInterface $attrib if ( ! $input instanceof Select && ! $input instanceof SelectWithTextInput ) { $new_input = new SelectWithTextInput(); $new_input->set_label( $input->get_label() ) - ->set_description( $input->get_description() ); + ->set_description( $input->get_description() ); return $this->init_input( $new_input, $attribute ); } diff --git a/src/Admin/Product/Attributes/AttributesTab.php b/src/Admin/Product/Attributes/AttributesTab.php index a70f6d4618..a2f3b1fcc0 100644 --- a/src/Admin/Product/Attributes/AttributesTab.php +++ b/src/Admin/Product/Attributes/AttributesTab.php @@ -187,5 +187,4 @@ protected function update_data( WC_Product $product, array $data ): void { } } } - } diff --git a/src/Admin/Product/Attributes/Input/AdultInput.php b/src/Admin/Product/Attributes/Input/AdultInput.php index 322f95265c..3868ba8076 100644 --- a/src/Admin/Product/Attributes/Input/AdultInput.php +++ b/src/Admin/Product/Attributes/Input/AdultInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Adult content', 'google-listings-and-ads' ) ); $this->set_description( __( 'Whether the product contains nudity or sexually suggestive content', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/AgeGroupInput.php b/src/Admin/Product/Attributes/Input/AgeGroupInput.php index cc6ce4ab29..7a905cf06b 100644 --- a/src/Admin/Product/Attributes/Input/AgeGroupInput.php +++ b/src/Admin/Product/Attributes/Input/AgeGroupInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Age Group', 'google-listings-and-ads' ) ); $this->set_description( __( 'Target age group of the item.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/AttributeInputInterface.php b/src/Admin/Product/Attributes/Input/AttributeInputInterface.php index 953d6fa60c..bc4aa1aba7 100644 --- a/src/Admin/Product/Attributes/Input/AttributeInputInterface.php +++ b/src/Admin/Product/Attributes/Input/AttributeInputInterface.php @@ -36,5 +36,4 @@ public static function get_description(): string; * @return string */ public static function get_input_type(): string; - } diff --git a/src/Admin/Product/Attributes/Input/AvailabilityDateInput.php b/src/Admin/Product/Attributes/Input/AvailabilityDateInput.php index ca0b81cf23..5c351b95a2 100644 --- a/src/Admin/Product/Attributes/Input/AvailabilityDateInput.php +++ b/src/Admin/Product/Attributes/Input/AvailabilityDateInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Availability Date', 'google-listings-and-ads' ) ); $this->set_description( __( 'The date a preordered or backordered product becomes available for delivery. Required if product availability is preorder or backorder', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/BrandInput.php b/src/Admin/Product/Attributes/Input/BrandInput.php index 1396a4aebf..3013c924fa 100644 --- a/src/Admin/Product/Attributes/Input/BrandInput.php +++ b/src/Admin/Product/Attributes/Input/BrandInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Brand', 'google-listings-and-ads' ) ); $this->set_description( __( 'Brand of the product.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/ColorInput.php b/src/Admin/Product/Attributes/Input/ColorInput.php index 7023e62a3d..cc5e04ee30 100644 --- a/src/Admin/Product/Attributes/Input/ColorInput.php +++ b/src/Admin/Product/Attributes/Input/ColorInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Color', 'google-listings-and-ads' ) ); $this->set_description( __( 'Color of the product.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/ConditionInput.php b/src/Admin/Product/Attributes/Input/ConditionInput.php index 6fd0dce2f3..9621b5a428 100644 --- a/src/Admin/Product/Attributes/Input/ConditionInput.php +++ b/src/Admin/Product/Attributes/Input/ConditionInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Condition', 'google-listings-and-ads' ) ); $this->set_description( __( 'Condition or state of the item.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/GTINInput.php b/src/Admin/Product/Attributes/Input/GTINInput.php index 6d64c10758..9c43f0fc41 100644 --- a/src/Admin/Product/Attributes/Input/GTINInput.php +++ b/src/Admin/Product/Attributes/Input/GTINInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Global Trade Item Number (GTIN)', 'google-listings-and-ads' ) ); $this->set_description( __( 'Global Trade Item Number (GTIN) for your item. These identifiers include UPC (in North America), EAN (in Europe), JAN (in Japan), and ISBN (for books)', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/GenderInput.php b/src/Admin/Product/Attributes/Input/GenderInput.php index 8706467e63..837f390924 100644 --- a/src/Admin/Product/Attributes/Input/GenderInput.php +++ b/src/Admin/Product/Attributes/Input/GenderInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Gender', 'google-listings-and-ads' ) ); $this->set_description( __( 'The gender for which your product is intended.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/IsBundleInput.php b/src/Admin/Product/Attributes/Input/IsBundleInput.php index 0d9d8ee6f9..df39d6574b 100644 --- a/src/Admin/Product/Attributes/Input/IsBundleInput.php +++ b/src/Admin/Product/Attributes/Input/IsBundleInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Is Bundle?', 'google-listings-and-ads' ) ); $this->set_description( __( 'Whether the item is a bundle of products. A bundle is a custom grouping of different products sold by a merchant for a single price.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/MPNInput.php b/src/Admin/Product/Attributes/Input/MPNInput.php index 20ee669a31..d6e181fbb6 100644 --- a/src/Admin/Product/Attributes/Input/MPNInput.php +++ b/src/Admin/Product/Attributes/Input/MPNInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Manufacturer Part Number (MPN)', 'google-listings-and-ads' ) ); $this->set_description( __( 'This code uniquely identifies the product to its manufacturer.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/MaterialInput.php b/src/Admin/Product/Attributes/Input/MaterialInput.php index 8ac4910870..867bde7a42 100644 --- a/src/Admin/Product/Attributes/Input/MaterialInput.php +++ b/src/Admin/Product/Attributes/Input/MaterialInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Material', 'google-listings-and-ads' ) ); $this->set_description( __( 'The material of which the item is made.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/MultipackInput.php b/src/Admin/Product/Attributes/Input/MultipackInput.php index 5bdd9b54b7..1f9b4a4332 100644 --- a/src/Admin/Product/Attributes/Input/MultipackInput.php +++ b/src/Admin/Product/Attributes/Input/MultipackInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Multipack', 'google-listings-and-ads' ) ); $this->set_description( __( 'The number of identical products in a multipack. Use this attribute to indicate that you\'ve grouped multiple identical products for sale as one item.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/PatternInput.php b/src/Admin/Product/Attributes/Input/PatternInput.php index 89dfb8032e..4313184c10 100644 --- a/src/Admin/Product/Attributes/Input/PatternInput.php +++ b/src/Admin/Product/Attributes/Input/PatternInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Pattern', 'google-listings-and-ads' ) ); $this->set_description( __( 'The item\'s pattern (e.g. polka dots).', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/SizeInput.php b/src/Admin/Product/Attributes/Input/SizeInput.php index 8a149af702..f19a7f7b1c 100644 --- a/src/Admin/Product/Attributes/Input/SizeInput.php +++ b/src/Admin/Product/Attributes/Input/SizeInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Size', 'google-listings-and-ads' ) ); $this->set_description( __( 'Size of the product.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/SizeSystemInput.php b/src/Admin/Product/Attributes/Input/SizeSystemInput.php index 4ddc9daad9..f11142c241 100644 --- a/src/Admin/Product/Attributes/Input/SizeSystemInput.php +++ b/src/Admin/Product/Attributes/Input/SizeSystemInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Size system', 'google-listings-and-ads' ) ); $this->set_description( __( 'System in which the size is specified. Recommended for apparel items.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/Input/SizeTypeInput.php b/src/Admin/Product/Attributes/Input/SizeTypeInput.php index b6a0ba845a..a9f2acd1f3 100644 --- a/src/Admin/Product/Attributes/Input/SizeTypeInput.php +++ b/src/Admin/Product/Attributes/Input/SizeTypeInput.php @@ -25,5 +25,4 @@ public function __construct() { $this->set_label( __( 'Size type', 'google-listings-and-ads' ) ); $this->set_description( __( 'The cut of the item. Recommended for apparel items.', 'google-listings-and-ads' ) ); } - } diff --git a/src/Admin/Product/Attributes/VariationsAttributes.php b/src/Admin/Product/Attributes/VariationsAttributes.php index 6f435712d5..dc6e68fed1 100644 --- a/src/Admin/Product/Attributes/VariationsAttributes.php +++ b/src/Admin/Product/Attributes/VariationsAttributes.php @@ -147,8 +147,8 @@ protected function get_form( WC_Product_Variation $variation, int $variation_ind $form = new Form(); $form->set_name( 'variation_attributes' ) - ->add( $attribute_form ) - ->set_data( [ (string) $variation_index => $this->attribute_manager->get_all_values( $variation ) ] ); + ->add( $attribute_form ) + ->set_data( [ (string) $variation_index => $this->attribute_manager->get_all_values( $variation ) ] ); return $form; } @@ -166,5 +166,4 @@ protected function update_data( WC_Product_Variation $variation, array $data ): } } } - } diff --git a/src/Admin/Redirect.php b/src/Admin/Redirect.php index 3f6a938ff4..fca64aaee5 100644 --- a/src/Admin/Redirect.php +++ b/src/Admin/Redirect.php @@ -171,5 +171,4 @@ public function is_current_wc_admin_page( $path ): bool { return 2 === count( array_intersect_assoc( $_GET, $params ) ); // phpcs:disable WordPress.Security.NonceVerification.Recommended } - } diff --git a/src/Ads/AccountService.php b/src/Ads/AccountService.php index 98b30966b0..c0434e7f7b 100644 --- a/src/Ads/AccountService.php +++ b/src/Ads/AccountService.php @@ -277,5 +277,4 @@ private function create_conversion_action(): void { $action = $this->container->get( AdsConversionAction::class )->create_conversion_action(); $this->options->update( OptionsInterface::ADS_CONVERSION_ACTION, $action ); } - } diff --git a/src/Ads/AssetSuggestionsService.php b/src/Ads/AssetSuggestionsService.php index 162d34f95c..85f26ce180 100644 --- a/src/Ads/AssetSuggestionsService.php +++ b/src/Ads/AssetSuggestionsService.php @@ -175,11 +175,9 @@ protected function get_url( int $id, string $type ): string { } return $url; - } - /** * Get other campaigns' assets from the specific url. * @@ -197,7 +195,6 @@ protected function get_asset_group_asset_suggestions( int $id, string $type ): a } return array_merge( $this->get_suggestions_common_fields( [] ), [ 'final_url' => $final_url ], $asset_group_assets ); - } /** @@ -217,7 +214,6 @@ protected function get_wp_assets( int $id, string $type ): array { } else { return $this->get_homepage_assets(); } - } /** @@ -251,7 +247,6 @@ protected function get_homepage_assets(): array { ], $this->get_suggestions_common_fields( $marketing_images ) ); - } /** @@ -346,7 +341,6 @@ protected function get_term_assets( int $id ): array { ], $this->get_suggestions_common_fields( $marketing_images ) ); - } /** @@ -395,7 +389,6 @@ protected function get_html_inserted_images( string $html ): array { } return $images_ids; - } /** @@ -671,7 +664,6 @@ protected function get_terms_suggestions( string $search, int $per_page ): array } return $terms_suggestions; - } @@ -686,7 +678,7 @@ protected function get_terms_suggestions( string $search, int $per_page ): array */ public function get_final_url_suggestions( string $search = '', int $per_page = 30, string $order_by = 'title' ): array { if ( empty( $search ) ) { - return $this->get_defaults_final_url_suggestions(); + return $this->get_defaults_final_url_suggestions(); } $homepage = []; @@ -694,7 +686,7 @@ public function get_final_url_suggestions( string $search = '', int $per_page = // If the search query contains the word "homepage" add the homepage to the results. if ( strpos( 'homepage', strtolower( $search ) ) !== false ) { $homepage[] = $this->get_homepage_final_url(); - $per_page--; + --$per_page; } // Split possible results between posts and terms. @@ -718,7 +710,6 @@ public function get_final_url_suggestions( string $search = '', int $per_page = $result = array_merge( $homepage, $posts, $terms, $more_results ); return $this->sort_results( $result, $order_by ); - } /** @@ -749,21 +740,20 @@ protected function get_defaults_final_url_suggestions(): array { /** * Order suggestions alphabetically * - * @param array $array associative array - * @param string $field Sort by a specific field + * @param array $results Results as an associative array + * @param string $field Sort by a specific field * * @return array response sorted alphabetically */ - protected function sort_results( array $array, string $field ): array { + protected function sort_results( array $results, string $field ): array { usort( - $array, + $results, function ( $a, $b ) use ( $field ) { return strcmp( strtolower( (string) $a[ $field ] ), strtolower( (string) $b[ $field ] ) ); } ); - return $array; - + return $results; } /** @@ -783,7 +773,6 @@ protected function format_final_url_response( int $id, string $type, string $tit 'title' => $title, 'url' => $url, ]; - } /** @@ -802,6 +791,5 @@ protected function get_suggestions_common_fields( array $marketing_images ): arr AssetFieldType::PORTRAIT_MARKETING_IMAGE => $marketing_images [ self::PORTRAIT_MARKETING_IMAGE_KEY ] ?? [], AssetFieldType::CALL_TO_ACTION_SELECTION => null, ]; - } } diff --git a/src/Assets/ScriptAsset.php b/src/Assets/ScriptAsset.php index 850015a53a..fa84fb3554 100644 --- a/src/Assets/ScriptAsset.php +++ b/src/Assets/ScriptAsset.php @@ -62,13 +62,13 @@ public function __construct( /** * Add a localization to the script. * - * @param string $object The object name. - * @param array $data Array of data for the object. + * @param string $object_name The object name. + * @param array $data Array of data for the object. * * @return $this */ - public function add_localization( string $object, array $data ): ScriptAsset { - $this->localizations[ $object ] = $data; + public function add_localization( string $object_name, array $data ): ScriptAsset { + $this->localizations[ $object_name ] = $data; return $this; } @@ -93,7 +93,7 @@ public function add_inline_script( string $variable_name, array $data ): ScriptA * @return callable */ protected function get_register_callback(): callable { - return function() { + return function () { if ( wp_script_is( $this->handle, 'registered' ) ) { return; } @@ -114,7 +114,7 @@ protected function get_register_callback(): callable { * @return callable */ protected function get_enqueue_callback(): callable { - return function() { + return function () { if ( ! wp_script_is( $this->handle, 'registered' ) ) { throw InvalidAsset::asset_not_registered( $this->handle ); } @@ -142,9 +142,8 @@ protected function get_enqueue_callback(): callable { * @return callable */ protected function get_dequeue_callback(): callable { - return function() { + return function () { wp_dequeue_script( $this->handle ); }; } - } diff --git a/src/Assets/StyleAsset.php b/src/Assets/StyleAsset.php index 424623e190..89104fb7ad 100644 --- a/src/Assets/StyleAsset.php +++ b/src/Assets/StyleAsset.php @@ -51,7 +51,7 @@ public function __construct( * @return callable */ protected function get_register_callback(): callable { - return function() { + return function () { if ( wp_style_is( $this->handle, 'registered' ) ) { return; } @@ -72,7 +72,7 @@ protected function get_register_callback(): callable { * @return callable */ protected function get_enqueue_callback(): callable { - return function() { + return function () { if ( ! wp_style_is( $this->handle, 'registered' ) ) { throw InvalidAsset::asset_not_registered( $this->handle ); } @@ -87,9 +87,8 @@ protected function get_enqueue_callback(): callable { * @return callable */ protected function get_dequeue_callback(): callable { - return function() { + return function () { wp_dequeue_style( $this->handle ); }; } - } diff --git a/src/Autoloader.php b/src/Autoloader.php index ec7f5ba9bc..8f72cea100 100644 --- a/src/Autoloader.php +++ b/src/Autoloader.php @@ -53,7 +53,7 @@ protected static function missing_autoloader() { } add_action( 'admin_notices', - function() { + function () { ?>

diff --git a/src/Coupon/CouponHelper.php b/src/Coupon/CouponHelper.php index 5fd5b46eb6..3c46644d82 100644 --- a/src/Coupon/CouponHelper.php +++ b/src/Coupon/CouponHelper.php @@ -49,7 +49,8 @@ class CouponHelper implements Service { public function __construct( CouponMetaHandler $meta_handler, WC $wc, - MerchantCenterService $merchant_center ) { + MerchantCenterService $merchant_center + ) { $this->meta_handler = $meta_handler; $this->wc = $wc; $this->merchant_center = $merchant_center; @@ -66,7 +67,8 @@ public function __construct( public function mark_as_synced( WC_Coupon $coupon, ?string $google_id, - string $target_country ) { + string $target_country + ) { $this->meta_handler->update_synced_at( $coupon, time() ); $this->meta_handler->update_sync_status( $coupon, SyncStatus::SYNCED ); $this->update_empty_visibility( $coupon ); diff --git a/src/Coupon/CouponSyncer.php b/src/Coupon/CouponSyncer.php index 8248c4a8bd..0fa2567229 100644 --- a/src/Coupon/CouponSyncer.php +++ b/src/Coupon/CouponSyncer.php @@ -78,7 +78,8 @@ public function __construct( ValidatorInterface $validator, MerchantCenterService $merchant_center, TargetAudience $target_audience, - WC $wc ) { + WC $wc + ) { $this->google_service = $google_service; $this->coupon_helper = $coupon_helper; $this->validator = $validator; diff --git a/src/Coupon/SyncerHooks.php b/src/Coupon/SyncerHooks.php index 5763c337ee..4eb1855a07 100644 --- a/src/Coupon/SyncerHooks.php +++ b/src/Coupon/SyncerHooks.php @@ -87,7 +87,8 @@ public function __construct( CouponHelper $coupon_helper, JobRepository $job_repository, MerchantCenterService $merchant_center, - WC $wc ) { + WC $wc + ) { $this->update_coupon_job = $job_repository->get( UpdateCoupon::class ); $this->delete_coupon_job = $job_repository->get( DeleteCoupon::class ); $this->coupon_helper = $coupon_helper; @@ -256,7 +257,8 @@ protected function handle_delete_coupon( int $coupon_id ) { */ protected function is_already_scheduled( int $coupon_id, - string $schedule_type ): bool { + string $schedule_type + ): bool { return isset( $this->already_scheduled[ $coupon_id ] ) && $this->already_scheduled[ $coupon_id ] === $schedule_type; } @@ -296,7 +298,8 @@ protected function is_already_scheduled_to_delete( int $coupon_id ): bool { */ protected function set_already_scheduled( int $coupon_id, - string $schedule_type ): void { + string $schedule_type + ): void { $this->already_scheduled[ $coupon_id ] = $schedule_type; } @@ -320,4 +323,3 @@ protected function set_already_scheduled_to_delete( int $coupon_id ): void { $this->set_already_scheduled( $coupon_id, self::SCHEDULE_TYPE_DELETE ); } } - diff --git a/src/Coupon/WCCouponAdapter.php b/src/Coupon/WCCouponAdapter.php index 57dd43be42..439d884c98 100644 --- a/src/Coupon/WCCouponAdapter.php +++ b/src/Coupon/WCCouponAdapter.php @@ -61,27 +61,26 @@ class WCCouponAdapter extends GooglePromotion implements Validatable { /** * Initialize this object's properties from an array. * - * @param array $array - * Used to seed this object's properties. + * @param array $properties Used to seed this object's properties. * * @return void * * @throws InvalidValue When a WooCommerce coupon is not provided or it is invalid. */ - public function mapTypes( $array ) { - if ( empty( $array['wc_coupon'] ) || - ! $array['wc_coupon'] instanceof WC_Coupon ) { + public function mapTypes( $properties ) { + if ( empty( $properties['wc_coupon'] ) || + ! $properties['wc_coupon'] instanceof WC_Coupon ) { throw InvalidValue::not_instance_of( WC_Coupon::class, 'wc_coupon' ); } - $wc_coupon = $array['wc_coupon']; + $wc_coupon = $properties['wc_coupon']; $this->wc_coupon_id = $wc_coupon->get_id(); - $this->map_woocommerce_coupon( $wc_coupon, $this->get_coupon_destinations( $array ) ); + $this->map_woocommerce_coupon( $wc_coupon, $this->get_coupon_destinations( $properties ) ); // Google doesn't expect extra fields, so it's best to remove them - unset( $array['wc_coupon'] ); + unset( $properties['wc_coupon'] ); - parent::mapTypes( $array ); + parent::mapTypes( $properties ); } /** diff --git a/src/DB/Migration/MigrationVersion141.php b/src/DB/Migration/MigrationVersion141.php index ca5fd0a93a..73cfee2388 100644 --- a/src/DB/Migration/MigrationVersion141.php +++ b/src/DB/Migration/MigrationVersion141.php @@ -50,10 +50,8 @@ public function get_applicable_version(): string { */ public function apply(): void { if ( $this->mc_issues_table->exists() && $this->mc_issues_table->has_index( 'product_issue' ) ) { - // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $this->wpdb->query( "ALTER TABLE `{$this->wpdb->_escape( $this->mc_issues_table->get_name() )}` DROP INDEX `product_issue`" ); - // phpcs:enable WordPress.DB.PreparedSQL.NotPrepared } } } diff --git a/src/DB/Migration/Migrator.php b/src/DB/Migration/Migrator.php index e4e8252eea..3ceb5d311b 100644 --- a/src/DB/Migration/Migrator.php +++ b/src/DB/Migration/Migrator.php @@ -66,7 +66,7 @@ public function migrate( string $old_version, string $new_version ): void { */ protected function can_apply( string $migration_version, string $old_version, string $new_version ): bool { return version_compare( $old_version, $new_version, '<' ) && - version_compare( $old_version, $migration_version, '<' ) && - version_compare( $migration_version, $new_version, '<=' ); + version_compare( $old_version, $migration_version, '<' ) && + version_compare( $migration_version, $new_version, '<=' ); } } diff --git a/src/DB/ProductFeedQueryHelper.php b/src/DB/ProductFeedQueryHelper.php index fa69b9f6f9..871225e628 100644 --- a/src/DB/ProductFeedQueryHelper.php +++ b/src/DB/ProductFeedQueryHelper.php @@ -232,4 +232,3 @@ protected function get_order(): string { return strtoupper( $this->request['order'] ?? '' ) === 'DESC' ? 'DESC' : 'ASC'; } } - diff --git a/src/DB/ProductMetaQueryHelper.php b/src/DB/ProductMetaQueryHelper.php index 64099dc94d..976e16d8e2 100644 --- a/src/DB/ProductMetaQueryHelper.php +++ b/src/DB/ProductMetaQueryHelper.php @@ -144,6 +144,4 @@ protected static function validate_meta_key( string $meta_key ) { throw InvalidMeta::invalid_key( $meta_key ); } } - } - diff --git a/src/DB/Query.php b/src/DB/Query.php index 3483602e9f..02814bc542 100644 --- a/src/DB/Query.php +++ b/src/DB/Query.php @@ -359,7 +359,7 @@ protected function generate_where_pieces(): array { join( "','", array_map( - function( $value ) { + function ( $value ) { return $this->wpdb->_escape( $value ); }, $where['value'] diff --git a/src/DB/Query/ShippingRateQuery.php b/src/DB/Query/ShippingRateQuery.php index 29780c1881..09a1e94a3c 100644 --- a/src/DB/Query/ShippingRateQuery.php +++ b/src/DB/Query/ShippingRateQuery.php @@ -67,6 +67,4 @@ function ( $row ) { $this->results ); } - - } diff --git a/src/Event/ClearProductStatsCache.php b/src/Event/ClearProductStatsCache.php index 673ef1d7ee..63bef69bd2 100644 --- a/src/Event/ClearProductStatsCache.php +++ b/src/Event/ClearProductStatsCache.php @@ -38,13 +38,13 @@ public function __construct( MerchantStatuses $merchant_statuses ) { public function register(): void { add_action( 'woocommerce_gla_batch_updated_products', - function() { + function () { $this->clear_stats_cache(); } ); add_action( 'woocommerce_gla_batch_deleted_products', - function() { + function () { $this->clear_stats_cache(); } ); diff --git a/src/Event/StartProductSync.php b/src/Event/StartProductSync.php index abf9cb078c..4b62b6d038 100644 --- a/src/Event/StartProductSync.php +++ b/src/Event/StartProductSync.php @@ -37,14 +37,14 @@ public function __construct( JobRepository $job_repository ) { public function register(): void { add_action( 'woocommerce_gla_mc_settings_sync', - function() { + function () { $this->on_settings_sync(); } ); add_action( 'woocommerce_gla_mapping_rules_change', - function() { + function () { $this->on_rules_change(); } ); diff --git a/src/Exception/AccountReconnect.php b/src/Exception/AccountReconnect.php index c8943b02bf..54e20b30e3 100644 --- a/src/Exception/AccountReconnect.php +++ b/src/Exception/AccountReconnect.php @@ -50,5 +50,4 @@ public static function google_disconnected(): AccountReconnect { ] ); } - } diff --git a/src/Exception/ApiNotReady.php b/src/Exception/ApiNotReady.php index 7c8c581f35..1fc17c366b 100644 --- a/src/Exception/ApiNotReady.php +++ b/src/Exception/ApiNotReady.php @@ -34,5 +34,4 @@ public static function retry_after( int $wait ): ApiNotReady { ] ); } - } diff --git a/src/Exception/InvalidClass.php b/src/Exception/InvalidClass.php index befbaebf11..62268e3b2d 100644 --- a/src/Exception/InvalidClass.php +++ b/src/Exception/InvalidClass.php @@ -15,17 +15,17 @@ class InvalidClass extends LogicException implements GoogleListingsAndAdsExcepti /** * Create a new instance of the exception when a class should implement an interface but does not. * - * @param string $class The class name. - * @param string $interface The interface name. + * @param string $class_name The class name. + * @param string $interface_name The interface name. * * @return static */ - public static function should_implement( string $class, string $interface ) { + public static function should_implement( string $class_name, string $interface_name ) { return new static( sprintf( 'The class "%s" must implement the "%s" interface.', - $class, - $interface + $class_name, + $interface_name ) ); } @@ -33,17 +33,17 @@ public static function should_implement( string $class, string $interface ) { /** * Create a new instance of the exception when a class should NOT implement an interface but it does. * - * @param string $class The class name. - * @param string $interface The interface name. + * @param string $class_name The class name. + * @param string $interface_name The interface name. * * @return static */ - public static function should_not_implement( string $class, string $interface ): InvalidClass { + public static function should_not_implement( string $class_name, string $interface_name ): InvalidClass { return new static( sprintf( 'The class "%s" must NOT implement the "%s" interface.', - $class, - $interface + $class_name, + $interface_name ) ); } @@ -51,17 +51,17 @@ public static function should_not_implement( string $class, string $interface ): /** * Create a new instance of the exception when a class should override a method but does not. * - * @param string $class The class name. - * @param string $method The method name. + * @param string $class_name The class name. + * @param string $method_name The method name. * * @return static */ - public static function should_override( string $class, string $method ) { + public static function should_override( string $class_name, string $method_name ) { return new static( sprintf( 'The class "%s" must override the "%s()" method.', - $class, - $method + $class_name, + $method_name ) ); } diff --git a/src/Exception/InvalidProperty.php b/src/Exception/InvalidProperty.php index 373dbf6114..c9fbd1d556 100644 --- a/src/Exception/InvalidProperty.php +++ b/src/Exception/InvalidProperty.php @@ -15,16 +15,16 @@ class InvalidProperty extends LogicException implements GoogleListingsAndAdsExce /** * Create a new instance of the exception for a class property that should not be null. * - * @param string $class The class name. - * @param string $property The class property name. + * @param string $class_name The class name. + * @param string $property The class property name. * * @return static */ - public static function not_null( string $class, string $property ) { + public static function not_null( string $class_name, string $property ) { return new static( sprintf( 'The class "%s" property "%s" must be set.', - $class, + $class_name, $property ) ); diff --git a/src/Exception/ValidateInterface.php b/src/Exception/ValidateInterface.php index 3b78787722..5bbad35e37 100644 --- a/src/Exception/ValidateInterface.php +++ b/src/Exception/ValidateInterface.php @@ -13,53 +13,53 @@ trait ValidateInterface { /** * Validate that a class implements a given interface. * - * @param string $class The class name. - * @param string $interface The interface name. + * @param string $class_name The class name. + * @param string $interface_name The interface name. * * @throws InvalidClass When the given class does not implement the interface. */ - protected function validate_interface( string $class, string $interface ) { - $implements = class_implements( $class ); - if ( ! array_key_exists( $interface, $implements ) ) { - throw InvalidClass::should_implement( $class, $interface ); + protected function validate_interface( string $class_name, string $interface_name ) { + $implements = class_implements( $class_name ); + if ( ! array_key_exists( $interface_name, $implements ) ) { + throw InvalidClass::should_implement( $class_name, $interface_name ); } } /** * Validate that an object is an instance of an interface. * - * @param object $object The object to validate. - * @param string $interface The interface name. + * @param object $object_instance The object to validate. + * @param string $interface_name The interface name. * * @throws InvalidClass When the given object does not implement the interface. */ - protected function validate_instanceof( $object, string $interface ) { - $class = ''; - if ( is_object( $object ) ) { - $class = get_class( $object ); + protected function validate_instanceof( $object_instance, string $interface_name ) { + $class_name = ''; + if ( is_object( $object_instance ) ) { + $class_name = get_class( $object_instance ); } - if ( ! $object instanceof $interface ) { - throw InvalidClass::should_implement( $class, $interface ); + if ( ! $object_instance instanceof $interface_name ) { + throw InvalidClass::should_implement( $class_name, $interface_name ); } } /** * Validate that an object is NOT an instance of an interface. * - * @param object $object The object to validate. - * @param string $interface The interface name. + * @param object $object_instance The object to validate. + * @param string $interface_name The interface name. * * @throws InvalidClass When the given object implements the interface. */ - protected function validate_not_instanceof( $object, string $interface ) { - $class = ''; - if ( is_object( $object ) ) { - $class = get_class( $object ); + protected function validate_not_instanceof( $object_instance, string $interface_name ) { + $class_name = ''; + if ( is_object( $object_instance ) ) { + $class_name = get_class( $object_instance ); } - if ( $object instanceof $interface ) { - throw InvalidClass::should_not_implement( $class, $interface ); + if ( $object_instance instanceof $interface_name ) { + throw InvalidClass::should_not_implement( $class_name, $interface_name ); } } } diff --git a/src/Google/Ads/ServiceClientFactoryTrait.php b/src/Google/Ads/ServiceClientFactoryTrait.php index a2e2c7ce8c..82931a3216 100644 --- a/src/Google/Ads/ServiceClientFactoryTrait.php +++ b/src/Google/Ads/ServiceClientFactoryTrait.php @@ -208,5 +208,4 @@ public function getGoogleAdsServiceClient(): GoogleAdsServiceClient { public function getMerchantCenterLinkServiceClient(): MerchantCenterLinkServiceClient { return new MerchantCenterLinkServiceClient( $this->getGoogleAdsClientOptions() ); } - } diff --git a/src/Google/BatchInvalidProductEntry.php b/src/Google/BatchInvalidProductEntry.php index 53f6d17903..e3e18904b4 100644 --- a/src/Google/BatchInvalidProductEntry.php +++ b/src/Google/BatchInvalidProductEntry.php @@ -92,7 +92,7 @@ public function map_validation_violations( ConstraintViolationListInterface $vio /** * @return array */ - public function jsonSerialize(): array { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid + public function jsonSerialize(): array { $data = [ 'woocommerce_id' => $this->get_wc_product_id(), 'errors' => $this->get_errors(), diff --git a/src/Google/BatchProductEntry.php b/src/Google/BatchProductEntry.php index 27c50d1f5e..859a60d595 100644 --- a/src/Google/BatchProductEntry.php +++ b/src/Google/BatchProductEntry.php @@ -53,7 +53,7 @@ public function get_google_product(): ?GoogleProduct { /** * @return array */ - public function jsonSerialize(): array { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid + public function jsonSerialize(): array { $data = [ 'woocommerce_id' => $this->get_wc_product_id() ]; if ( null !== $this->get_google_product() ) { diff --git a/src/Google/DeleteCouponEntry.php b/src/Google/DeleteCouponEntry.php index d089d5693f..9ea6b40d3c 100644 --- a/src/Google/DeleteCouponEntry.php +++ b/src/Google/DeleteCouponEntry.php @@ -40,7 +40,8 @@ class DeleteCouponEntry { public function __construct( int $wc_coupon_id, GooglePromotion $google_promotion, - array $synced_google_ids ) { + array $synced_google_ids + ) { $this->wc_coupon_id = $wc_coupon_id; $this->google_promotion = $google_promotion; $this->synced_google_ids = $synced_google_ids; diff --git a/src/Google/GoogleProductService.php b/src/Google/GoogleProductService.php index 7653262596..67eca3a5e5 100644 --- a/src/Google/GoogleProductService.php +++ b/src/Google/GoogleProductService.php @@ -170,7 +170,7 @@ protected function custom_batch( array $products, string $method ): BatchProduct $batch_id_product_map[ $batch_id ] = $product_entry; - $batch_id++; + ++$batch_id; } $responses = $this->shopping_service->products->custombatch( new GoogleBatchRequest( [ 'entries' => $request_entries ] ) ); diff --git a/src/Google/InvalidCouponEntry.php b/src/Google/InvalidCouponEntry.php index 5287b2af1c..7c704ae628 100644 --- a/src/Google/InvalidCouponEntry.php +++ b/src/Google/InvalidCouponEntry.php @@ -49,7 +49,8 @@ public function __construct( int $wc_coupon_id, array $errors = [], string $target_country = null, - string $google_promotion_id = null ) { + string $google_promotion_id = null + ) { $this->wc_coupon_id = $wc_coupon_id; $this->target_country = $target_country; $this->google_promotion_id = $google_promotion_id; @@ -105,7 +106,8 @@ public function has_error( int $error_code ): bool { * @return InvalidCouponEntry */ public function map_validation_violations( - ConstraintViolationListInterface $violations ): InvalidCouponEntry { + ConstraintViolationListInterface $violations + ): InvalidCouponEntry { $validation_errors = []; foreach ( $violations as $violation ) { array_push( @@ -127,7 +129,7 @@ public function map_validation_violations( * * @return array */ - public function jsonSerialize(): array { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid + public function jsonSerialize(): array { $data = [ 'woocommerce_id' => $this->get_wc_coupon_id(), 'errors' => $this->get_errors(), diff --git a/src/Google/RequestReviewStatuses.php b/src/Google/RequestReviewStatuses.php index 404838f051..25a4ec928c 100644 --- a/src/Google/RequestReviewStatuses.php +++ b/src/Google/RequestReviewStatuses.php @@ -158,5 +158,4 @@ private function get_cooldown( int $cooldown ) { return $cooldown; } - } diff --git a/src/Google/SiteVerificationMeta.php b/src/Google/SiteVerificationMeta.php index eef628b692..bdcdc2f59e 100644 --- a/src/Google/SiteVerificationMeta.php +++ b/src/Google/SiteVerificationMeta.php @@ -26,7 +26,7 @@ class SiteVerificationMeta implements OptionsAwareInterface, Registerable, Servi public function register(): void { add_action( 'wp_head', - function() { + function () { $this->display_meta_token(); } ); diff --git a/src/Hooks/README.md b/src/Hooks/README.md index bbb17700f2..240c191edb 100644 --- a/src/Hooks/README.md +++ b/src/Hooks/README.md @@ -8,7 +8,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [BulkEditInitializer.php#L36](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/BulkEdit/BulkEditInitializer.php#L36) +- [BulkEditInitializer.php#L36](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/BulkEdit/BulkEditInitializer.php#L36) ## woocommerce_admin_disabled @@ -16,7 +16,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCAdminValidator.php#L38](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Internal/Requirements/WCAdminValidator.php#L38) +- [WCAdminValidator.php#L38](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Internal/Requirements/WCAdminValidator.php#L38) ## woocommerce_gla_ads_billing_setup_status @@ -24,8 +24,8 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [Ads.php#L112](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Ads.php#L112) -- [Ads.php#L121](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Ads.php#L121) +- [Ads.php#L112](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Ads.php#L112) +- [Ads.php#L121](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Ads.php#L121) ## woocommerce_gla_ads_client_exception @@ -33,24 +33,24 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AdsCampaign.php#L140](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsCampaign.php#L140) -- [AdsCampaign.php#L183](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsCampaign.php#L183) -- [AdsCampaign.php#L246](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsCampaign.php#L246) -- [AdsCampaign.php#L301](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsCampaign.php#L301) -- [AdsCampaign.php#L335](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsCampaign.php#L335) -- [AdsAssetGroupAsset.php#L135](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsAssetGroupAsset.php#L135) -- [AdsAssetGroupAsset.php#L202](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsAssetGroupAsset.php#L202) -- [Ads.php#L73](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Ads.php#L73) -- [Ads.php#L117](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Ads.php#L117) -- [Ads.php#L172](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Ads.php#L172) -- [Ads.php#L214](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Ads.php#L214) -- [Ads.php#L298](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Ads.php#L298) -- [AdsReport.php#L105](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsReport.php#L105) -- [AdsConversionAction.php#L97](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsConversionAction.php#L97) -- [AdsConversionAction.php#L143](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsConversionAction.php#L143) -- [AdsAssetGroup.php#L113](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsAssetGroup.php#L113) -- [AdsAssetGroup.php#L304](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsAssetGroup.php#L304) -- [AdsAssetGroup.php#L369](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsAssetGroup.php#L369) +- [AdsConversionAction.php#L97](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsConversionAction.php#L97) +- [AdsConversionAction.php#L143](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsConversionAction.php#L143) +- [Ads.php#L73](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Ads.php#L73) +- [Ads.php#L117](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Ads.php#L117) +- [Ads.php#L172](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Ads.php#L172) +- [Ads.php#L214](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Ads.php#L214) +- [Ads.php#L298](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Ads.php#L298) +- [AdsAssetGroupAsset.php#L135](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsAssetGroupAsset.php#L135) +- [AdsAssetGroupAsset.php#L201](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsAssetGroupAsset.php#L201) +- [AdsAssetGroup.php#L113](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsAssetGroup.php#L113) +- [AdsAssetGroup.php#L304](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsAssetGroup.php#L304) +- [AdsAssetGroup.php#L368](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsAssetGroup.php#L368) +- [AdsCampaign.php#L140](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsCampaign.php#L140) +- [AdsCampaign.php#L183](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsCampaign.php#L183) +- [AdsCampaign.php#L246](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsCampaign.php#L246) +- [AdsCampaign.php#L301](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsCampaign.php#L301) +- [AdsCampaign.php#L335](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsCampaign.php#L335) +- [AdsReport.php#L105](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsReport.php#L105) ## woocommerce_gla_ads_setup_completed @@ -58,7 +58,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [SetupCompleteController.php#L46](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/Ads/SetupCompleteController.php#L46) +- [SetupCompleteController.php#L46](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/Ads/SetupCompleteController.php#L46) ## woocommerce_gla_attribute_applicable_product_types_ @@ -66,8 +66,8 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AttributeManager.php#L295](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/Attributes/AttributeManager.php#L295) -- [AttributesForm.php#L69](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/Product/Attributes/AttributesForm.php#L69) +- [AttributeManager.php#L295](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/Attributes/AttributeManager.php#L295) +- [AttributesForm.php#L69](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/Product/Attributes/AttributesForm.php#L69) ## woocommerce_gla_attribute_hidden_product_types_ @@ -75,7 +75,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AttributesForm.php#L74](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/Product/Attributes/AttributesForm.php#L74) +- [AttributesForm.php#L74](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/Product/Attributes/AttributesForm.php#L74) ## woocommerce_gla_attribute_mapping_sources @@ -83,7 +83,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [IsFieldTrait.php#L31](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L31) +- [IsFieldTrait.php#L31](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L31) ## woocommerce_gla_attribute_mapping_sources_custom_attributes @@ -91,7 +91,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [IsFieldTrait.php#L125](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L125) +- [IsFieldTrait.php#L125](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L125) ## woocommerce_gla_attribute_mapping_sources_global_attributes @@ -99,7 +99,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [IsFieldTrait.php#L64](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L64) +- [IsFieldTrait.php#L64](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L64) ## woocommerce_gla_attribute_mapping_sources_product_fields @@ -107,7 +107,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [IsFieldTrait.php#L115](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L115) +- [IsFieldTrait.php#L115](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L115) ## woocommerce_gla_attribute_mapping_sources_taxonomies @@ -115,7 +115,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [IsFieldTrait.php#L65](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L65) +- [IsFieldTrait.php#L65](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/AttributeMapping/Traits/IsFieldTrait.php#L65) ## woocommerce_gla_attributes_tab_applicable_product_types @@ -123,7 +123,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AttributesTab.php#L174](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/Product/Attributes/AttributesTab.php#L174) +- [AttributesTab.php#L174](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/Product/Attributes/AttributesTab.php#L174) ## woocommerce_gla_batch_deleted_products @@ -131,7 +131,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductSyncer.php#L229](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L229) +- [ProductSyncer.php#L229](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L229) ## woocommerce_gla_batch_retry_delete_products @@ -139,7 +139,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductSyncer.php#L343](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L343) +- [ProductSyncer.php#L343](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L343) ## woocommerce_gla_batch_retry_update_products @@ -147,7 +147,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductSyncer.php#L287](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L287) +- [ProductSyncer.php#L287](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L287) ## woocommerce_gla_batch_updated_products @@ -155,7 +155,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductSyncer.php#L143](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L143) +- [ProductSyncer.php#L143](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L143) ## woocommerce_gla_batched_job_size @@ -163,8 +163,8 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [UpdateSyncableProductsCount.php#L74](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Jobs/UpdateSyncableProductsCount.php#L74) -- [AbstractBatchedActionSchedulerJob.php#L104](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Jobs/AbstractBatchedActionSchedulerJob.php#L104) +- [AbstractBatchedActionSchedulerJob.php#L104](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Jobs/AbstractBatchedActionSchedulerJob.php#L104) +- [UpdateSyncableProductsCount.php#L74](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Jobs/UpdateSyncableProductsCount.php#L74) ## woocommerce_gla_bulk_update_coupon @@ -172,7 +172,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [CouponBulkEdit.php#L134](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/BulkEdit/CouponBulkEdit.php#L134) +- [CouponBulkEdit.php#L133](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/BulkEdit/CouponBulkEdit.php#L133) ## woocommerce_gla_conversion_action_name @@ -180,7 +180,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AdsConversionAction.php#L66](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/AdsConversionAction.php#L66) +- [AdsConversionAction.php#L66](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/AdsConversionAction.php#L66) ## woocommerce_gla_coupon_destinations @@ -188,7 +188,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCCouponAdapter.php#L392](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/WCCouponAdapter.php#L392) +- [WCCouponAdapter.php#L391](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/WCCouponAdapter.php#L391) ## woocommerce_gla_coupons_delete_retry_on_failure @@ -196,7 +196,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [CouponSyncer.php#L437](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L437) +- [CouponSyncer.php#L438](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L438) ## woocommerce_gla_coupons_update_retry_on_failure @@ -204,7 +204,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [CouponSyncer.php#L399](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L399) +- [CouponSyncer.php#L400](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L400) ## woocommerce_gla_custom_merchant_issues @@ -212,7 +212,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [MerchantStatuses.php#L435](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/MerchantStatuses.php#L435) +- [MerchantStatuses.php#L435](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/MerchantStatuses.php#L435) ## woocommerce_gla_debug_message @@ -220,38 +220,38 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [MerchantStatuses.php#L334](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/MerchantStatuses.php#L334) -- [MerchantStatuses.php#L357](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/MerchantStatuses.php#L357) -- [MerchantCenterService.php#L305](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/MerchantCenterService.php#L305) -- [IssuesController.php#L96](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/MerchantCenter/IssuesController.php#L96) -- [CouponHelper.php#L255](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponHelper.php#L255) -- [CouponHelper.php#L292](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponHelper.php#L292) -- [CouponSyncer.php#L102](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L102) -- [CouponSyncer.php#L115](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L115) -- [CouponSyncer.php#L140](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L140) -- [CouponSyncer.php#L154](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L154) -- [CouponSyncer.php#L171](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L171) -- [CouponSyncer.php#L194](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L194) -- [CouponSyncer.php#L259](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L259) -- [CouponSyncer.php#L308](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L308) -- [CouponSyncer.php#L327](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L327) -- [SyncerHooks.php#L177](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/SyncerHooks.php#L177) -- [ProductMetaQueryHelper.php#L92](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/DB/ProductMetaQueryHelper.php#L92) -- [ProductMetaQueryHelper.php#L123](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/DB/ProductMetaQueryHelper.php#L123) -- [ActionSchedulerJobMonitor.php#L117](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Jobs/ActionSchedulerJobMonitor.php#L117) -- [ActionSchedulerJobMonitor.php#L126](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Jobs/ActionSchedulerJobMonitor.php#L126) -- [CleanupSyncedProducts.php#L74](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Jobs/CleanupSyncedProducts.php#L74) -- [ProductHelper.php#L459](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductHelper.php#L459) -- [ProductHelper.php#L491](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductHelper.php#L491) -- [ProductRepository.php#L304](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductRepository.php#L304) -- [ProductSyncer.php#L149](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L149) -- [ProductSyncer.php#L159](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L159) -- [ProductSyncer.php#L235](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L235) -- [ProductSyncer.php#L245](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L245) -- [BatchProductHelper.php#L208](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/BatchProductHelper.php#L208) -- [BatchProductHelper.php#L231](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/BatchProductHelper.php#L231) -- [SyncerHooks.php#L197](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/SyncerHooks.php#L197) -- [WCProductAdapter.php#L203](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L203) +- [MerchantStatuses.php#L334](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/MerchantStatuses.php#L334) +- [MerchantStatuses.php#L357](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/MerchantStatuses.php#L357) +- [MerchantCenterService.php#L305](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/MerchantCenterService.php#L305) +- [SyncerHooks.php#L197](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/SyncerHooks.php#L197) +- [WCProductAdapter.php#L202](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L202) +- [ProductSyncer.php#L149](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L149) +- [ProductSyncer.php#L159](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L159) +- [ProductSyncer.php#L235](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L235) +- [ProductSyncer.php#L245](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L245) +- [ProductHelper.php#L458](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductHelper.php#L458) +- [ProductHelper.php#L490](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductHelper.php#L490) +- [ProductRepository.php#L304](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductRepository.php#L304) +- [BatchProductHelper.php#L208](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/BatchProductHelper.php#L208) +- [BatchProductHelper.php#L231](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/BatchProductHelper.php#L231) +- [SyncerHooks.php#L178](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/SyncerHooks.php#L178) +- [CouponHelper.php#L257](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponHelper.php#L257) +- [CouponHelper.php#L294](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponHelper.php#L294) +- [CouponSyncer.php#L103](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L103) +- [CouponSyncer.php#L116](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L116) +- [CouponSyncer.php#L141](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L141) +- [CouponSyncer.php#L155](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L155) +- [CouponSyncer.php#L172](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L172) +- [CouponSyncer.php#L195](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L195) +- [CouponSyncer.php#L260](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L260) +- [CouponSyncer.php#L309](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L309) +- [CouponSyncer.php#L328](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L328) +- [ProductMetaQueryHelper.php#L92](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/DB/ProductMetaQueryHelper.php#L92) +- [ProductMetaQueryHelper.php#L123](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/DB/ProductMetaQueryHelper.php#L123) +- [ActionSchedulerJobMonitor.php#L117](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Jobs/ActionSchedulerJobMonitor.php#L117) +- [ActionSchedulerJobMonitor.php#L126](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Jobs/ActionSchedulerJobMonitor.php#L126) +- [CleanupSyncedProducts.php#L74](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Jobs/CleanupSyncedProducts.php#L74) +- [IssuesController.php#L96](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/MerchantCenter/IssuesController.php#L96) ## woocommerce_gla_deleted_promotions @@ -259,7 +259,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [CouponSyncer.php#L321](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L321) +- [CouponSyncer.php#L322](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L322) ## woocommerce_gla_dimension_unit @@ -267,7 +267,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L427](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L427) +- [WCProductAdapter.php#L426](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L426) ## woocommerce_gla_disable_gtag_tracking @@ -275,7 +275,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [GlobalSiteTag.php#L464](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Google/GlobalSiteTag.php#L464) +- [GlobalSiteTag.php#L464](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Google/GlobalSiteTag.php#L464) ## woocommerce_gla_enable_connection_test @@ -283,7 +283,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ConnectionTest.php#L87](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/ConnectionTest.php#L87) +- [ConnectionTest.php#L87](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/ConnectionTest.php#L87) ## woocommerce_gla_enable_debug_logging @@ -291,7 +291,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [DebugLogger.php#L33](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Logging/DebugLogger.php#L33) +- [DebugLogger.php#L33](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Logging/DebugLogger.php#L33) ## woocommerce_gla_enable_mcm @@ -299,7 +299,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [GLAChannel.php#L75](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MultichannelMarketing/GLAChannel.php#L75) +- [GLAChannel.php#L75](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MultichannelMarketing/GLAChannel.php#L75) ## woocommerce_gla_enable_reports @@ -307,7 +307,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [Admin.php#L265](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/Admin.php#L265) +- [Admin.php#L265](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/Admin.php#L265) ## woocommerce_gla_error @@ -315,23 +315,23 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [PHPView.php#L136](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/View/PHPView.php#L136) -- [PHPView.php#L164](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/View/PHPView.php#L164) -- [PHPView.php#L208](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/View/PHPView.php#L208) -- [CouponMetaHandler.php#L220](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponMetaHandler.php#L220) -- [CouponSyncer.php#L409](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L409) -- [CouponSyncer.php#L447](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L447) -- [CouponSyncer.php#L465](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L465) -- [ProductMetaQueryHelper.php#L139](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/DB/ProductMetaQueryHelper.php#L139) -- [ProductHelper.php#L351](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductHelper.php#L351) -- [ProductHelper.php#L567](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductHelper.php#L567) -- [ProductSyncer.php#L290](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L290) -- [ProductSyncer.php#L313](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L313) -- [ProductSyncer.php#L346](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L346) -- [ProductSyncer.php#L361](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L361) -- [AttributeManager.php#L269](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/Attributes/AttributeManager.php#L269) -- [ProductMetaHandler.php#L173](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductMetaHandler.php#L173) -- [BatchProductHelper.php#L248](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/BatchProductHelper.php#L248) +- [PHPView.php#L136](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/View/PHPView.php#L136) +- [PHPView.php#L164](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/View/PHPView.php#L164) +- [PHPView.php#L208](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/View/PHPView.php#L208) +- [ProductSyncer.php#L290](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L290) +- [ProductSyncer.php#L313](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L313) +- [ProductSyncer.php#L346](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L346) +- [ProductSyncer.php#L361](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L361) +- [ProductHelper.php#L350](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductHelper.php#L350) +- [ProductHelper.php#L566](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductHelper.php#L566) +- [AttributeManager.php#L269](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/Attributes/AttributeManager.php#L269) +- [ProductMetaHandler.php#L173](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductMetaHandler.php#L173) +- [BatchProductHelper.php#L248](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/BatchProductHelper.php#L248) +- [CouponMetaHandler.php#L220](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponMetaHandler.php#L220) +- [CouponSyncer.php#L410](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L410) +- [CouponSyncer.php#L448](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L448) +- [CouponSyncer.php#L466](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L466) +- [ProductMetaQueryHelper.php#L139](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/DB/ProductMetaQueryHelper.php#L139) ## woocommerce_gla_exception @@ -339,27 +339,27 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [NoteInitializer.php#L74](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Notes/NoteInitializer.php#L74) -- [NoteInitializer.php#L116](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Notes/NoteInitializer.php#L116) -- [SettingsSyncController.php#L79](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php#L79) -- [ProductVisibilityController.php#L193](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/MerchantCenter/ProductVisibilityController.php#L193) -- [ContactInformationController.php#L242](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/MerchantCenter/ContactInformationController.php#L242) -- [Connection.php#L95](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Connection.php#L95) -- [PHPView.php#L87](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/View/PHPView.php#L87) -- [CouponSyncer.php#L202](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L202) -- [CouponSyncer.php#L292](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L292) -- [GoogleServiceProvider.php#L232](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Internal/DependencyManagement/GoogleServiceProvider.php#L232) -- [PluginUpdate.php#L75](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Jobs/Update/PluginUpdate.php#L75) -- [ScriptWithBuiltDependenciesAsset.php#L66](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Assets/ScriptWithBuiltDependenciesAsset.php#L66) -- [ClearProductStatsCache.php#L61](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Event/ClearProductStatsCache.php#L61) -- [ProductSyncer.php#L134](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L134) -- [ProductSyncer.php#L220](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L220) -- [DateTime.php#L44](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/Input/DateTime.php#L44) -- [DateTime.php#L80](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/Input/DateTime.php#L80) -- [ChannelVisibilityMetaBox.php#L176](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/MetaBox/ChannelVisibilityMetaBox.php#L176) -- [CouponChannelVisibilityMetaBox.php#L197](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/MetaBox/CouponChannelVisibilityMetaBox.php#L197) -- [WooCommercePreOrders.php#L111](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Integration/WooCommercePreOrders.php#L111) -- [WooCommercePreOrders.php#L131](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Integration/WooCommercePreOrders.php#L131) +- [PHPView.php#L87](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/View/PHPView.php#L87) +- [ProductSyncer.php#L134](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L134) +- [ProductSyncer.php#L220](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L220) +- [NoteInitializer.php#L74](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Notes/NoteInitializer.php#L74) +- [NoteInitializer.php#L116](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Notes/NoteInitializer.php#L116) +- [CouponSyncer.php#L203](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L203) +- [CouponSyncer.php#L293](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L293) +- [WooCommercePreOrders.php#L111](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Integration/WooCommercePreOrders.php#L111) +- [WooCommercePreOrders.php#L131](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Integration/WooCommercePreOrders.php#L131) +- [GoogleServiceProvider.php#L232](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Internal/DependencyManagement/GoogleServiceProvider.php#L232) +- [DateTime.php#L44](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/Input/DateTime.php#L44) +- [DateTime.php#L80](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/Input/DateTime.php#L80) +- [ChannelVisibilityMetaBox.php#L176](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/MetaBox/ChannelVisibilityMetaBox.php#L176) +- [CouponChannelVisibilityMetaBox.php#L197](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/MetaBox/CouponChannelVisibilityMetaBox.php#L197) +- [PluginUpdate.php#L75](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Jobs/Update/PluginUpdate.php#L75) +- [Connection.php#L95](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Connection.php#L95) +- [ProductVisibilityController.php#L193](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/MerchantCenter/ProductVisibilityController.php#L193) +- [SettingsSyncController.php#L79](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php#L79) +- [ContactInformationController.php#L242](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/MerchantCenter/ContactInformationController.php#L242) +- [ScriptWithBuiltDependenciesAsset.php#L66](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Assets/ScriptWithBuiltDependenciesAsset.php#L66) +- [ClearProductStatsCache.php#L61](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Event/ClearProductStatsCache.php#L61) ## woocommerce_gla_force_run_install @@ -367,7 +367,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [Installer.php#L82](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Installer.php#L82) +- [Installer.php#L82](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Installer.php#L82) ## woocommerce_gla_get_google_product_offer_id @@ -375,7 +375,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L280](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L280) +- [WCProductAdapter.php#L279](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L279) ## woocommerce_gla_get_sync_ready_products_filter @@ -383,7 +383,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductFilter.php#L61](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductFilter.php#L61) +- [ProductFilter.php#L61](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductFilter.php#L61) ## woocommerce_gla_get_sync_ready_products_pre_filter @@ -391,7 +391,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductFilter.php#L47](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductFilter.php#L47) +- [ProductFilter.php#L47](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductFilter.php#L47) ## woocommerce_gla_get_wc_product_id @@ -399,7 +399,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductHelper.php#L278](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductHelper.php#L278) +- [ProductHelper.php#L277](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductHelper.php#L277) ## woocommerce_gla_guzzle_client_exception @@ -407,20 +407,20 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [Connection.php#L70](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Connection.php#L70) -- [Connection.php#L91](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Connection.php#L91) -- [Connection.php#L126](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Connection.php#L126) -- [Middleware.php#L80](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L80) -- [Middleware.php#L178](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L178) -- [Middleware.php#L228](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L228) -- [Middleware.php#L273](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L273) -- [Middleware.php#L344](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L344) -- [Middleware.php#L394](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L394) -- [Middleware.php#L418](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L418) -- [Middleware.php#L452](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L452) -- [Middleware.php#L552](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L552) -- [Middleware.php#L611](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L611) -- [GoogleServiceProvider.php#L256](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Internal/DependencyManagement/GoogleServiceProvider.php#L256) +- [GoogleServiceProvider.php#L256](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Internal/DependencyManagement/GoogleServiceProvider.php#L256) +- [Connection.php#L70](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Connection.php#L70) +- [Connection.php#L91](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Connection.php#L91) +- [Connection.php#L126](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Connection.php#L126) +- [Middleware.php#L80](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L80) +- [Middleware.php#L178](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L178) +- [Middleware.php#L228](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L228) +- [Middleware.php#L273](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L273) +- [Middleware.php#L344](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L344) +- [Middleware.php#L394](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L394) +- [Middleware.php#L418](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L418) +- [Middleware.php#L452](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L452) +- [Middleware.php#L552](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L552) +- [Middleware.php#L611](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L611) ## woocommerce_gla_guzzle_invalid_response @@ -428,15 +428,23 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [Connection.php#L66](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Connection.php#L66) -- [Connection.php#L121](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Connection.php#L121) -- [Middleware.php#L159](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L159) -- [Middleware.php#L223](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L223) -- [Middleware.php#L267](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L267) -- [Middleware.php#L339](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L339) -- [Middleware.php#L389](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L389) -- [Middleware.php#L548](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L548) -- [Middleware.php#L599](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L599) +- [Connection.php#L66](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Connection.php#L66) +- [Connection.php#L121](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Connection.php#L121) +- [Middleware.php#L159](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L159) +- [Middleware.php#L223](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L223) +- [Middleware.php#L267](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L267) +- [Middleware.php#L339](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L339) +- [Middleware.php#L389](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L389) +- [Middleware.php#L548](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L548) +- [Middleware.php#L599](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L599) + +## woocommerce_gla_handle_shipping_method_to_rates + +**Type**: filter + +**Used in**: + +- [ZoneMethodsParser.php#L106](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Shipping/ZoneMethodsParser.php#L106) ## woocommerce_gla_hidden_coupon_types @@ -444,7 +452,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [CouponSyncer.php#L378](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L378) +- [CouponSyncer.php#L379](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L379) ## woocommerce_gla_job_failure_rate_threshold @@ -452,7 +460,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ActionSchedulerJobMonitor.php#L186](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Jobs/ActionSchedulerJobMonitor.php#L186) +- [ActionSchedulerJobMonitor.php#L186](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Jobs/ActionSchedulerJobMonitor.php#L186) ## woocommerce_gla_job_failure_timeframe @@ -460,7 +468,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ActionSchedulerJobMonitor.php#L195](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Jobs/ActionSchedulerJobMonitor.php#L195) +- [ActionSchedulerJobMonitor.php#L195](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Jobs/ActionSchedulerJobMonitor.php#L195) ## woocommerce_gla_mapping_rules_change @@ -468,9 +476,9 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AttributeMappingRulesController.php#L143](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php#L143) -- [AttributeMappingRulesController.php#L166](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php#L166) -- [AttributeMappingRulesController.php#L188](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php#L188) +- [AttributeMappingRulesController.php#L143](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php#L143) +- [AttributeMappingRulesController.php#L166](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php#L166) +- [AttributeMappingRulesController.php#L188](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/AttributeMapping/AttributeMappingRulesController.php#L188) ## woocommerce_gla_mc_account_review_lifetime @@ -478,7 +486,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [RequestReviewStatuses.php#L146](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Google/RequestReviewStatuses.php#L146) +- [RequestReviewStatuses.php#L146](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Google/RequestReviewStatuses.php#L146) ## woocommerce_gla_mc_client_exception @@ -486,14 +494,14 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [MerchantReport.php#L95](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/MerchantReport.php#L95) -- [Merchant.php#L92](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Merchant.php#L92) -- [Merchant.php#L140](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Merchant.php#L140) -- [Merchant.php#L172](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Merchant.php#L172) -- [Merchant.php#L191](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Merchant.php#L191) -- [Merchant.php#L247](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Merchant.php#L247) -- [Merchant.php#L292](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Merchant.php#L292) -- [Merchant.php#L354](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Merchant.php#L354) +- [MerchantReport.php#L95](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/MerchantReport.php#L95) +- [Merchant.php#L92](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Merchant.php#L92) +- [Merchant.php#L140](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Merchant.php#L140) +- [Merchant.php#L172](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Merchant.php#L172) +- [Merchant.php#L191](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Merchant.php#L191) +- [Merchant.php#L247](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Merchant.php#L247) +- [Merchant.php#L292](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Merchant.php#L292) +- [Merchant.php#L354](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Merchant.php#L354) ## woocommerce_gla_mc_settings_sync @@ -501,7 +509,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [SettingsSyncController.php#L69](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php#L69) +- [SettingsSyncController.php#L69](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php#L69) ## woocommerce_gla_mc_status_lifetime @@ -509,7 +517,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [MerchantStatuses.php#L778](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/MerchantStatuses.php#L778) +- [MerchantStatuses.php#L778](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/MerchantStatuses.php#L778) ## woocommerce_gla_merchant_issue_override @@ -517,7 +525,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [IssuesController.php#L86](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/MerchantCenter/IssuesController.php#L86) +- [IssuesController.php#L86](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/MerchantCenter/IssuesController.php#L86) ## woocommerce_gla_merchant_status_google_ids_chunk @@ -525,7 +533,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [MerchantStatuses.php#L191](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/MerchantStatuses.php#L191) +- [MerchantStatuses.php#L191](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/MerchantStatuses.php#L191) ## woocommerce_gla_merchant_status_presync_issues_chunk @@ -533,7 +541,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [MerchantStatuses.php#L531](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/MerchantStatuses.php#L531) +- [MerchantStatuses.php#L531](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/MerchantStatuses.php#L531) ## woocommerce_gla_options_deleted_ @@ -541,7 +549,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [Options.php#L103](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Options/Options.php#L103) +- [Options.php#L103](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Options/Options.php#L103) ## woocommerce_gla_options_updated_ @@ -549,8 +557,8 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [Options.php#L65](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Options/Options.php#L65) -- [Options.php#L85](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Options/Options.php#L85) +- [Options.php#L65](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Options/Options.php#L65) +- [Options.php#L85](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Options/Options.php#L85) ## woocommerce_gla_prepared_response_->GET_ROUTE_NAME @@ -558,7 +566,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [BaseController.php#L158](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/BaseController.php#L158) +- [BaseController.php#L160](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/BaseController.php#L160) ## woocommerce_gla_product_attribute_types @@ -566,7 +574,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AttributeManager.php#L243](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/Attributes/AttributeManager.php#L243) +- [AttributeManager.php#L243](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/Attributes/AttributeManager.php#L243) ## woocommerce_gla_product_attribute_value_ @@ -574,8 +582,8 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L901](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L901) -- [WCProductAdapter.php#L952](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L952) +- [WCProductAdapter.php#L905](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L905) +- [WCProductAdapter.php#L956](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L956) ## woocommerce_gla_product_attribute_value_description @@ -583,7 +591,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L348](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L348) +- [WCProductAdapter.php#L347](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L347) ## woocommerce_gla_product_attribute_value_options_::get_id @@ -591,7 +599,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AttributesForm.php#L108](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Admin/Product/Attributes/AttributesForm.php#L108) +- [AttributesForm.php#L108](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Admin/Product/Attributes/AttributesForm.php#L108) ## woocommerce_gla_product_attribute_value_price @@ -599,7 +607,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L630](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L630) +- [WCProductAdapter.php#L629](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L629) ## woocommerce_gla_product_attribute_value_sale_price @@ -607,7 +615,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L680](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L680) +- [WCProductAdapter.php#L681](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L681) ## woocommerce_gla_product_attribute_values @@ -615,7 +623,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L167](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L167) +- [WCProductAdapter.php#L166](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L166) ## woocommerce_gla_product_description_apply_shortcodes @@ -623,7 +631,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L317](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L317) +- [WCProductAdapter.php#L316](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L316) ## woocommerce_gla_product_property_value_is_virtual @@ -631,7 +639,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L767](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L767) +- [WCProductAdapter.php#L771](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L771) ## woocommerce_gla_product_query_args @@ -639,7 +647,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductRepository.php#L360](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductRepository.php#L360) +- [ProductRepository.php#L360](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductRepository.php#L360) ## woocommerce_gla_products_delete_retry_on_failure @@ -647,7 +655,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductSyncer.php#L342](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L342) +- [ProductSyncer.php#L342](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L342) ## woocommerce_gla_products_update_retry_on_failure @@ -655,7 +663,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductSyncer.php#L286](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L286) +- [ProductSyncer.php#L286](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L286) ## woocommerce_gla_ready_for_syncing @@ -663,7 +671,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [MerchantCenterService.php#L118](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/MerchantCenterService.php#L118) +- [MerchantCenterService.php#L118](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/MerchantCenterService.php#L118) ## woocommerce_gla_request_review_failure @@ -671,9 +679,9 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [RequestReviewController.php#L110](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/MerchantCenter/RequestReviewController.php#L110) -- [RequestReviewController.php#L122](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Site/Controllers/MerchantCenter/RequestReviewController.php#L122) -- [Middleware.php#L592](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L592) +- [Middleware.php#L592](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L592) +- [RequestReviewController.php#L110](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/MerchantCenter/RequestReviewController.php#L110) +- [RequestReviewController.php#L122](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Site/Controllers/MerchantCenter/RequestReviewController.php#L122) ## woocommerce_gla_request_review_response @@ -681,7 +689,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [Middleware.php#L545](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L545) +- [Middleware.php#L545](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L545) ## woocommerce_gla_retry_delete_coupons @@ -689,7 +697,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [CouponSyncer.php#L442](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L442) +- [CouponSyncer.php#L443](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L443) ## woocommerce_gla_retry_update_coupons @@ -697,7 +705,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [CouponSyncer.php#L404](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L404) +- [CouponSyncer.php#L405](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L405) ## woocommerce_gla_site_claim_failure @@ -705,10 +713,10 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AccountService.php#L365](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/AccountService.php#L365) -- [Middleware.php#L268](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L268) -- [Middleware.php#L274](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L274) -- [Merchant.php#L93](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Merchant.php#L93) +- [AccountService.php#L365](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/AccountService.php#L365) +- [Merchant.php#L93](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Merchant.php#L93) +- [Middleware.php#L268](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L268) +- [Middleware.php#L274](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L274) ## woocommerce_gla_site_claim_overwrite_required @@ -716,7 +724,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AccountService.php#L360](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/AccountService.php#L360) +- [AccountService.php#L360](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/AccountService.php#L360) ## woocommerce_gla_site_claim_success @@ -724,8 +732,8 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [Middleware.php#L263](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Middleware.php#L263) -- [Merchant.php#L90](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/Merchant.php#L90) +- [Merchant.php#L90](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Merchant.php#L90) +- [Middleware.php#L263](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/Middleware.php#L263) ## woocommerce_gla_site_url @@ -733,7 +741,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [PluginHelper.php#L189](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/PluginHelper.php#L189) +- [PluginHelper.php#L189](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/PluginHelper.php#L189) ## woocommerce_gla_site_verify_failure @@ -741,9 +749,9 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [SiteVerification.php#L58](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/SiteVerification.php#L58) -- [SiteVerification.php#L66](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/SiteVerification.php#L66) -- [SiteVerification.php#L87](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/SiteVerification.php#L87) +- [SiteVerification.php#L58](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/SiteVerification.php#L58) +- [SiteVerification.php#L66](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/SiteVerification.php#L66) +- [SiteVerification.php#L87](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/SiteVerification.php#L87) ## woocommerce_gla_site_verify_success @@ -751,7 +759,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [SiteVerification.php#L85](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/SiteVerification.php#L85) +- [SiteVerification.php#L85](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/SiteVerification.php#L85) ## woocommerce_gla_supported_coupon_types @@ -759,7 +767,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [CouponSyncer.php#L365](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L365) +- [CouponSyncer.php#L366](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L366) ## woocommerce_gla_supported_product_types @@ -767,7 +775,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductSyncer.php#L264](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductSyncer.php#L264) +- [ProductSyncer.php#L264](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductSyncer.php#L264) ## woocommerce_gla_sv_client_exception @@ -775,8 +783,8 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [SiteVerification.php#L120](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/SiteVerification.php#L120) -- [SiteVerification.php#L162](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/API/Google/SiteVerification.php#L162) +- [SiteVerification.php#L120](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/SiteVerification.php#L120) +- [SiteVerification.php#L162](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/API/Google/SiteVerification.php#L162) ## woocommerce_gla_tax_excluded @@ -784,7 +792,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L591](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L591) +- [WCProductAdapter.php#L590](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L590) ## woocommerce_gla_updated_coupon @@ -792,7 +800,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [CouponSyncer.php#L168](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Coupon/CouponSyncer.php#L168) +- [CouponSyncer.php#L169](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Coupon/CouponSyncer.php#L169) ## woocommerce_gla_url_switch_required @@ -800,7 +808,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AccountService.php#L445](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/AccountService.php#L445) +- [AccountService.php#L445](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/AccountService.php#L445) ## woocommerce_gla_url_switch_success @@ -808,7 +816,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [AccountService.php#L468](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/MerchantCenter/AccountService.php#L468) +- [AccountService.php#L468](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/MerchantCenter/AccountService.php#L468) ## woocommerce_gla_use_short_description @@ -816,7 +824,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L294](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L294) +- [WCProductAdapter.php#L293](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L293) ## woocommerce_gla_wcs_url @@ -824,8 +832,8 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [PluginHelper.php#L174](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/PluginHelper.php#L174) -- [PluginHelper.php#L178](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/PluginHelper.php#L178) +- [PluginHelper.php#L174](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/PluginHelper.php#L174) +- [PluginHelper.php#L178](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/PluginHelper.php#L178) ## woocommerce_gla_weight_unit @@ -833,7 +841,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [WCProductAdapter.php#L428](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/WCProductAdapter.php#L428) +- [WCProductAdapter.php#L427](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/WCProductAdapter.php#L427) ## woocommerce_hide_invisible_variations @@ -841,5 +849,5 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [ProductHelper.php#L366](https://github.com/woocommerce/google-listings-and-ads/blob/71782f1fad6de5af58f5dd060abbd2dc23855978/src/Product/ProductHelper.php#L366) +- [ProductHelper.php#L365](https://github.com/woocommerce/google-listings-and-ads/blob/3cacf043e0a630c35a047f8c1678d528bd703178/src/Product/ProductHelper.php#L365) diff --git a/src/Infrastructure/GoogleListingsAndAdsPlugin.php b/src/Infrastructure/GoogleListingsAndAdsPlugin.php index 315d230d67..8275f0d383 100644 --- a/src/Infrastructure/GoogleListingsAndAdsPlugin.php +++ b/src/Infrastructure/GoogleListingsAndAdsPlugin.php @@ -62,9 +62,6 @@ public function activate(): void { $service->activate(); } } - - flush_rewrite_rules(); - } /** @@ -80,8 +77,6 @@ public function deactivate(): void { $service->deactivate(); } } - - flush_rewrite_rules(); } /** @@ -92,7 +87,7 @@ public function deactivate(): void { public function register(): void { add_action( self::SERVICE_REGISTRATION_HOOK, - function() { + function () { $this->maybe_register_services(); }, 20 @@ -100,7 +95,7 @@ function() { add_action( 'init', - function() { + function () { // register the job initializer only if it is available. see JobInitializer::is_needed. if ( $this->container->has( JobInitializer::class ) ) { $this->container->get( JobInitializer::class )->register(); @@ -114,7 +109,6 @@ function() { } } ); - } /** diff --git a/src/Installer.php b/src/Installer.php index 7b8c7bad91..3fce7607c6 100644 --- a/src/Installer.php +++ b/src/Installer.php @@ -62,7 +62,7 @@ public function __construct( array $installables, array $first_installers, WP $w public function register(): void { add_action( 'admin_init', - function() { + function () { $this->admin_init(); } ); diff --git a/src/Integration/WooCommerceProductBundles.php b/src/Integration/WooCommerceProductBundles.php index d93139aa56..4084f5a6f1 100644 --- a/src/Integration/WooCommerceProductBundles.php +++ b/src/Integration/WooCommerceProductBundles.php @@ -228,5 +228,4 @@ function ( WC_Product $product ) { } ); } - } diff --git a/src/Internal/DependencyManagement/AbstractServiceProvider.php b/src/Internal/DependencyManagement/AbstractServiceProvider.php index 0c50809983..9284846e0e 100644 --- a/src/Internal/DependencyManagement/AbstractServiceProvider.php +++ b/src/Internal/DependencyManagement/AbstractServiceProvider.php @@ -51,27 +51,27 @@ public function register() { /** * Add an interface to the container. * - * @param string $interface The interface to add. - * @param string|null $concrete (Optional) The concrete class. + * @param string $interface_name The interface to add. + * @param string|null $concrete (Optional) The concrete class. * * @return DefinitionInterface */ - protected function share_concrete( string $interface, $concrete = null ): DefinitionInterface { - return $this->getLeagueContainer()->share( $interface, $concrete ); + protected function share_concrete( string $interface_name, $concrete = null ): DefinitionInterface { + return $this->getLeagueContainer()->share( $interface_name, $concrete ); } /** * Share a class and add interfaces as tags. * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. * * @return DefinitionInterface */ - protected function share_with_tags( string $class, ...$arguments ): DefinitionInterface { - $definition = $this->share( $class, ...$arguments ); - foreach ( class_implements( $class ) as $interface ) { - $definition->addTag( $interface ); + protected function share_with_tags( string $class_name, ...$arguments ): DefinitionInterface { + $definition = $this->share( $class_name, ...$arguments ); + foreach ( class_implements( $class_name ) as $interface_name ) { + $definition->addTag( $interface_name ); } return $definition; @@ -83,13 +83,13 @@ protected function share_with_tags( string $class, ...$arguments ): DefinitionIn * Shared classes will always return the same instance of the class when the class is requested * from the container. * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. * * @return DefinitionInterface */ - protected function share( string $class, ...$arguments ): DefinitionInterface { - return $this->getLeagueContainer()->share( $class )->addArguments( $arguments ); + protected function share( string $class_name, ...$arguments ): DefinitionInterface { + return $this->getLeagueContainer()->share( $class_name )->addArguments( $arguments ); } /** @@ -97,13 +97,13 @@ protected function share( string $class, ...$arguments ): DefinitionInterface { * * Classes will return a new instance of the class when the class is requested from the container. * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. * * @return DefinitionInterface */ - protected function add( string $class, ...$arguments ): DefinitionInterface { - return $this->getLeagueContainer()->add( $class )->addArguments( $arguments ); + protected function add( string $class_name, ...$arguments ): DefinitionInterface { + return $this->getLeagueContainer()->add( $class_name )->addArguments( $arguments ); } /** @@ -112,19 +112,19 @@ protected function add( string $class, ...$arguments ): DefinitionInterface { * This will also check any classes that implement the Conditional interface and only add them if * they are needed. * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. */ - protected function conditionally_share_with_tags( string $class, ...$arguments ) { - $implements = class_implements( $class ); + protected function conditionally_share_with_tags( string $class_name, ...$arguments ) { + $implements = class_implements( $class_name ); if ( array_key_exists( Conditional::class, $implements ) ) { /** @var Conditional $class */ - if ( ! $class::is_needed() ) { + if ( ! $class_name::is_needed() ) { return; } } - $this->provides[ $class ] = true; - $this->share_with_tags( $class, ...$arguments ); + $this->provides[ $class_name ] = true; + $this->share_with_tags( $class_name, ...$arguments ); } } diff --git a/src/Internal/DependencyManagement/CoreServiceProvider.php b/src/Internal/DependencyManagement/CoreServiceProvider.php index 3ac9f2b74f..ab8a3009e3 100644 --- a/src/Internal/DependencyManagement/CoreServiceProvider.php +++ b/src/Internal/DependencyManagement/CoreServiceProvider.php @@ -231,14 +231,14 @@ public function register(): void { // Set up Options, and inflect classes that need options. $this->share_concrete( OptionsInterface::class, Options::class ); $this->getLeagueContainer() - ->inflector( OptionsAwareInterface::class ) - ->invokeMethod( 'set_options_object', [ OptionsInterface::class ] ); + ->inflector( OptionsAwareInterface::class ) + ->invokeMethod( 'set_options_object', [ OptionsInterface::class ] ); // Share helper classes, and inflect classes that need it. $this->share_with_tags( GoogleHelper::class, WC::class ); $this->getLeagueContainer() - ->inflector( GoogleHelperAwareInterface::class ) - ->invokeMethod( 'set_google_helper_object', [ GoogleHelper::class ] ); + ->inflector( GoogleHelperAwareInterface::class ) + ->invokeMethod( 'set_google_helper_object', [ GoogleHelper::class ] ); // Set up the TargetAudience service. $this->share_with_tags( TargetAudience::class, WC::class, OptionsInterface::class, GoogleHelper::class ); @@ -246,15 +246,15 @@ public function register(): void { // Set up MerchantCenter service, and inflect classes that need it. $this->share_with_tags( MerchantCenterService::class ); $this->getLeagueContainer() - ->inflector( MerchantCenterAwareInterface::class ) - ->invokeMethod( 'set_merchant_center_object', [ MerchantCenterService::class ] ); + ->inflector( MerchantCenterAwareInterface::class ) + ->invokeMethod( 'set_merchant_center_object', [ MerchantCenterService::class ] ); // Set up Ads service, and inflect classes that need it. $this->share_with_tags( AdsAccountState::class ); $this->share_with_tags( AdsService::class, AdsAccountState::class ); $this->getLeagueContainer() - ->inflector( AdsAwareInterface::class ) - ->invokeMethod( 'set_ads_object', [ AdsService::class ] ); + ->inflector( AdsAwareInterface::class ) + ->invokeMethod( 'set_ads_object', [ AdsService::class ] ); $this->share_with_tags( AssetSuggestionsService::class, WP::class, WC::class, ImageUtility::class, wpdb::class, AdsAssetGroupAsset::class ); // Set up the installer. @@ -370,8 +370,8 @@ function ( ...$arguments ) { // Set up inflector for tracks classes. $this->getLeagueContainer() - ->inflector( TracksAwareInterface::class ) - ->invokeMethod( 'set_tracks', [ TracksInterface::class ] ); + ->inflector( TracksAwareInterface::class ) + ->invokeMethod( 'set_tracks', [ TracksInterface::class ] ); // Share admin meta boxes $this->conditionally_share_with_tags( ChannelVisibilityMetaBox::class, Admin::class, ProductMetaHandler::class, ProductHelper::class, MerchantCenterService::class ); diff --git a/src/Internal/DependencyManagement/DBServiceProvider.php b/src/Internal/DependencyManagement/DBServiceProvider.php index 230e78cc12..e6e6fdcf8f 100644 --- a/src/Internal/DependencyManagement/DBServiceProvider.php +++ b/src/Internal/DependencyManagement/DBServiceProvider.php @@ -106,13 +106,13 @@ public function register() { /** * Add a query class. * - * @param string $class + * @param string $class_name * @param mixed ...$arguments * * @return DefinitionInterface */ - protected function add_query_class( string $class, ...$arguments ): DefinitionInterface { - return $this->add( $class, wpdb::class, ...$arguments )->addTag( 'db_query' ); + protected function add_query_class( string $class_name, ...$arguments ): DefinitionInterface { + return $this->add( $class_name, wpdb::class, ...$arguments )->addTag( 'db_query' ); } /** @@ -121,29 +121,29 @@ protected function add_query_class( string $class, ...$arguments ): DefinitionIn * Shared classes will always return the same instance of the class when the class is requested * from the container. * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. * * @return DefinitionInterface */ - protected function share_table_class( string $class, ...$arguments ): DefinitionInterface { - return parent::share( $class, WP::class, wpdb::class, ...$arguments )->addTag( 'db_table' ); + protected function share_table_class( string $class_name, ...$arguments ): DefinitionInterface { + return parent::share( $class_name, WP::class, wpdb::class, ...$arguments )->addTag( 'db_table' ); } /** * Share a migration class. * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. * * @throws InvalidClass When the given class does not implement the MigrationInterface. * * @since 1.4.1 */ - protected function share_migration( string $class, ...$arguments ) { - $this->validate_interface( $class, MigrationInterface::class ); + protected function share_migration( string $class_name, ...$arguments ) { + $this->validate_interface( $class_name, MigrationInterface::class ); $this->share_with_tags( - $class, + $class_name, wpdb::class, ...$arguments ); diff --git a/src/Internal/DependencyManagement/GoogleServiceProvider.php b/src/Internal/DependencyManagement/GoogleServiceProvider.php index 77a49a1b3d..e916c862ca 100644 --- a/src/Internal/DependencyManagement/GoogleServiceProvider.php +++ b/src/Internal/DependencyManagement/GoogleServiceProvider.php @@ -130,7 +130,7 @@ public function register() { * Register guzzle with authorization middleware added. */ protected function register_guzzle() { - $callback = function() { + $callback = function () { $handler_stack = HandlerStack::create(); $handler_stack->remove( 'http_errors' ); $handler_stack->push( $this->error_handler(), 'http_errors' ); @@ -153,7 +153,7 @@ protected function register_guzzle() { * Register ads client. */ protected function register_ads_client() { - $callback = function() { + $callback = function () { return new GoogleAdsClient( $this->get_connect_server_endpoint() ); }; @@ -188,8 +188,8 @@ protected function register_google_classes() { * @return callable */ protected function error_handler(): callable { - return function( callable $handler ) { - return function( RequestInterface $request, array $options ) use ( $handler ) { + return function ( callable $handler ) { + return function ( RequestInterface $request, array $options ) use ( $handler ) { return $handler( $request, $options )->then( function ( ResponseInterface $response ) use ( $request ) { $code = $response->getStatusCode(); @@ -245,8 +245,8 @@ protected function handle_unauthorized_error( RequestInterface $request, Respons * @return callable */ protected function add_auth_header(): callable { - return function( callable $handler ) { - return function( RequestInterface $request, array $options ) use ( $handler ) { + return function ( callable $handler ) { + return function ( RequestInterface $request, array $options ) use ( $handler ) { try { $request = $request->withHeader( 'Authorization', $this->generate_auth_header() ); @@ -272,10 +272,10 @@ protected function add_auth_header(): callable { * @return callable */ public function add_plugin_version_header(): callable { - return function( callable $handler ) { - return function( RequestInterface $request, array $options ) use ( $handler ) { + return function ( callable $handler ) { + return function ( RequestInterface $request, array $options ) use ( $handler ) { $request = $request->withHeader( 'x-client-name', $this->get_client_name() ) - ->withHeader( 'x-client-version', $this->get_version() ); + ->withHeader( 'x-client-version', $this->get_version() ); return $handler( $request, $options ); }; }; @@ -285,8 +285,8 @@ public function add_plugin_version_header(): callable { * @return callable */ protected function override_http_url(): callable { - return function( callable $handler ) { - return function( RequestInterface $request, array $options ) use ( $handler ) { + return function ( callable $handler ) { + return function ( RequestInterface $request, array $options ) use ( $handler ) { $request = $request->withUri( $request->getUri()->withScheme( 'http' ) ); return $handler( $request, $options ); }; diff --git a/src/Internal/DependencyManagement/JobServiceProvider.php b/src/Internal/DependencyManagement/JobServiceProvider.php index 0992d00891..2ad3cbe7ec 100644 --- a/src/Internal/DependencyManagement/JobServiceProvider.php +++ b/src/Internal/DependencyManagement/JobServiceProvider.php @@ -149,15 +149,15 @@ public function register(): void { /** * Share an ActionScheduler job class * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. * * @throws InvalidClass When the given class does not implement the ActionSchedulerJobInterface. */ - protected function share_action_scheduler_job( string $class, ...$arguments ) { - $this->validate_interface( $class, ActionSchedulerJobInterface::class ); + protected function share_action_scheduler_job( string $class_name, ...$arguments ) { + $this->validate_interface( $class_name, ActionSchedulerJobInterface::class ); $this->share_with_tags( - $class, + $class_name, ActionScheduler::class, ActionSchedulerJobMonitor::class, ...$arguments @@ -167,16 +167,16 @@ protected function share_action_scheduler_job( string $class, ...$arguments ) { /** * Share a product syncer job class * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. * * @throws InvalidClass When the given class does not implement the ProductSyncerJobInterface. */ - protected function share_product_syncer_job( string $class, ...$arguments ) { - $this->validate_interface( $class, ProductSyncerJobInterface::class ); - if ( is_subclass_of( $class, AbstractProductSyncerBatchedJob::class ) ) { + protected function share_product_syncer_job( string $class_name, ...$arguments ) { + $this->validate_interface( $class_name, ProductSyncerJobInterface::class ); + if ( is_subclass_of( $class_name, AbstractProductSyncerBatchedJob::class ) ) { $this->share_action_scheduler_job( - $class, + $class_name, ProductSyncer::class, ProductRepository::class, BatchProductHelper::class, @@ -185,7 +185,7 @@ protected function share_product_syncer_job( string $class, ...$arguments ) { ); } else { $this->share_action_scheduler_job( - $class, + $class_name, ProductSyncer::class, ProductRepository::class, MerchantCenterService::class, @@ -197,16 +197,16 @@ protected function share_product_syncer_job( string $class, ...$arguments ) { /** * Share a coupon syncer job class * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. * * @throws InvalidClass When the given class does not implement the ProductSyncerJobInterface. */ - protected function share_coupon_syncer_job( string $class, ...$arguments ) { + protected function share_coupon_syncer_job( string $class_name, ...$arguments ) { // Coupon related jobs also should implement ProductSyncerJobInterface. - $this->validate_interface( $class, ProductSyncerJobInterface::class ); + $this->validate_interface( $class_name, ProductSyncerJobInterface::class ); $this->share_action_scheduler_job( - $class, + $class_name, CouponHelper::class, CouponSyncer::class, WC::class, diff --git a/src/Internal/DependencyManagement/ProxyServiceProvider.php b/src/Internal/DependencyManagement/ProxyServiceProvider.php index 44afc39adb..6797970eec 100644 --- a/src/Internal/DependencyManagement/ProxyServiceProvider.php +++ b/src/Internal/DependencyManagement/ProxyServiceProvider.php @@ -58,7 +58,7 @@ public function register() { wpdb::class, new Definition( wpdb::class, - function() { + function () { global $wpdb; return $wpdb; } diff --git a/src/Internal/DependencyManagement/RESTServiceProvider.php b/src/Internal/DependencyManagement/RESTServiceProvider.php index 6e750da117..57c0b1f01e 100644 --- a/src/Internal/DependencyManagement/RESTServiceProvider.php +++ b/src/Internal/DependencyManagement/RESTServiceProvider.php @@ -144,23 +144,23 @@ public function register() { * * Overridden to include the RESTServer proxy with all classes. * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * @param mixed ...$arguments Constructor arguments for the class. * * @return DefinitionInterface */ - protected function share( string $class, ...$arguments ): DefinitionInterface { - return parent::share( $class, RESTServer::class, ...$arguments )->addTag( 'rest_controller' ); + protected function share( string $class_name, ...$arguments ): DefinitionInterface { + return parent::share( $class_name, RESTServer::class, ...$arguments )->addTag( 'rest_controller' ); } /** * Share a class with only the container object provided. * - * @param string $class The class name to add. + * @param string $class_name The class name to add. * * @return DefinitionInterface */ - protected function share_with_container( string $class ): DefinitionInterface { - return parent::share( $class, ContainerInterface::class )->addTag( 'rest_controller' ); + protected function share_with_container( string $class_name ): DefinitionInterface { + return parent::share( $class_name, ContainerInterface::class )->addTag( 'rest_controller' ); } } diff --git a/src/Internal/Requirements/GoogleProductFeedValidator.php b/src/Internal/Requirements/GoogleProductFeedValidator.php index 48fd77ff29..f10d4ede21 100644 --- a/src/Internal/Requirements/GoogleProductFeedValidator.php +++ b/src/Internal/Requirements/GoogleProductFeedValidator.php @@ -33,7 +33,7 @@ public function validate(): bool { add_filter( 'woocommerce_gla_custom_merchant_issues', - function( $issues, $current_time ) { + function ( $issues, $current_time ) { return $this->add_conflict_issue( $issues, $current_time ); }, 10, @@ -42,7 +42,7 @@ function( $issues, $current_time ) { add_action( 'deactivated_plugin', - function( $plugin ) { + function ( $plugin ) { if ( 'woocommerce-product-feeds/woocommerce-gpf.php' === $plugin ) { /** @var MerchantStatuses $merchant_statuses */ $merchant_statuses = woogle_get_container()->get( MerchantStatuses::class ); diff --git a/src/Internal/Requirements/PluginValidator.php b/src/Internal/Requirements/PluginValidator.php index 214ef2cd05..b841e74908 100644 --- a/src/Internal/Requirements/PluginValidator.php +++ b/src/Internal/Requirements/PluginValidator.php @@ -49,5 +49,4 @@ public static function validate(): bool { } return self::$is_validated; } - } diff --git a/src/Internal/Requirements/RequirementValidator.php b/src/Internal/Requirements/RequirementValidator.php index 9624dcecc8..1628fc0ff4 100644 --- a/src/Internal/Requirements/RequirementValidator.php +++ b/src/Internal/Requirements/RequirementValidator.php @@ -42,7 +42,7 @@ protected function add_admin_notice( RuntimeException $e ) { // Display notice error message. add_action( 'admin_notices', - function() use ( $e ) { + function () use ( $e ) { echo '

' . PHP_EOL; echo '

' . esc_html( $e->getMessage() ) . '

' . PHP_EOL; echo '
' . PHP_EOL; diff --git a/src/Jobs/AbstractBatchedActionSchedulerJob.php b/src/Jobs/AbstractBatchedActionSchedulerJob.php index 22d88b6217..f2fb64cfdb 100644 --- a/src/Jobs/AbstractBatchedActionSchedulerJob.php +++ b/src/Jobs/AbstractBatchedActionSchedulerJob.php @@ -185,5 +185,4 @@ protected function handle_complete( int $final_batch_number ) { * @throws Exception If an error occurs. The exception will be logged by ActionScheduler. */ abstract protected function get_batch( int $batch_number ): array; - } diff --git a/src/Jobs/ActionSchedulerJobInterface.php b/src/Jobs/ActionSchedulerJobInterface.php index ec2b6f6138..f2a93f9bdc 100644 --- a/src/Jobs/ActionSchedulerJobInterface.php +++ b/src/Jobs/ActionSchedulerJobInterface.php @@ -36,5 +36,4 @@ public function can_schedule( $args = [] ): bool; * @param array $args */ public function schedule( array $args = [] ); - } diff --git a/src/Jobs/ActionSchedulerJobMonitor.php b/src/Jobs/ActionSchedulerJobMonitor.php index 88ebb5375a..64ded82075 100644 --- a/src/Jobs/ActionSchedulerJobMonitor.php +++ b/src/Jobs/ActionSchedulerJobMonitor.php @@ -145,7 +145,7 @@ public function reschedule_if_timeout( $action_id, $error ) { */ protected function is_timeout_error( array $error ): bool { return isset( $error['type'] ) && $error['type'] === E_ERROR && - isset( $error['message'] ) && strpos( $error ['message'], 'Maximum execution time' ) !== false; + isset( $error['message'] ) && strpos( $error ['message'], 'Maximum execution time' ) !== false; } /** @@ -222,5 +222,4 @@ protected static function get_job_hash( string $hook, ?array $args = null ): str protected function is_monitored_for_timeout( string $hook, ?array $args = null ): bool { return isset( $this->monitored_hooks[ self::get_job_hash( $hook, $args ) ] ); } - } diff --git a/src/Jobs/BatchedActionSchedulerJobInterface.php b/src/Jobs/BatchedActionSchedulerJobInterface.php index ae2aa5ddc4..cd77b209a3 100644 --- a/src/Jobs/BatchedActionSchedulerJobInterface.php +++ b/src/Jobs/BatchedActionSchedulerJobInterface.php @@ -35,5 +35,4 @@ public function handle_create_batch_action( int $batch_number ); * @throws Exception If an error occurs. */ public function handle_process_items_action( array $items ); - } diff --git a/src/Jobs/JobException.php b/src/Jobs/JobException.php index b38a8ef771..bcc288ae05 100644 --- a/src/Jobs/JobException.php +++ b/src/Jobs/JobException.php @@ -74,5 +74,4 @@ public static function job_does_not_exist( string $job_name ): JobException { ) ); } - } diff --git a/src/Jobs/JobInitializer.php b/src/Jobs/JobInitializer.php index bfd7d552dc..a0eeafbd74 100644 --- a/src/Jobs/JobInitializer.php +++ b/src/Jobs/JobInitializer.php @@ -58,9 +58,11 @@ function ( ...$args ) use ( $job ) { ); } - if ( $job instanceof RecurringJobInterface && - ! $this->action_scheduler->has_scheduled_action( $job->get_start_hook()->get_hook() ) && - $job->can_schedule() ) { + if ( + $job instanceof RecurringJobInterface && + ! $this->action_scheduler->has_scheduled_action( $job->get_start_hook()->get_hook() ) && + $job->can_schedule() + ) { $recurring_date_time = new DateTime( 'tomorrow 3am', wp_timezone() ); $schedule = '0 3 * * *'; // 3 am every day diff --git a/src/Jobs/JobInterface.php b/src/Jobs/JobInterface.php index e569d17c48..2e9bf0cf2f 100644 --- a/src/Jobs/JobInterface.php +++ b/src/Jobs/JobInterface.php @@ -30,5 +30,4 @@ public function get_name(): string; * Init the job. */ public function init(): void; - } diff --git a/src/Jobs/ProductSyncStats.php b/src/Jobs/ProductSyncStats.php index f809dfddf0..4f4987b262 100644 --- a/src/Jobs/ProductSyncStats.php +++ b/src/Jobs/ProductSyncStats.php @@ -76,7 +76,7 @@ public function get_count(): int { foreach ( $scheduled as $action ) { if ( $this->job_matches( $action->get_hook() ) ) { - $count++; + ++$count; } } diff --git a/src/Jobs/ProductSyncerJobInterface.php b/src/Jobs/ProductSyncerJobInterface.php index 06107d3c76..88f9d9649e 100644 --- a/src/Jobs/ProductSyncerJobInterface.php +++ b/src/Jobs/ProductSyncerJobInterface.php @@ -19,5 +19,4 @@ interface ProductSyncerJobInterface { * @return bool */ public function is_mc_ready_for_syncing(): bool; - } diff --git a/src/Jobs/RecurringJobInterface.php b/src/Jobs/RecurringJobInterface.php index 9fe285c217..f676ed83c4 100644 --- a/src/Jobs/RecurringJobInterface.php +++ b/src/Jobs/RecurringJobInterface.php @@ -18,5 +18,4 @@ interface RecurringJobInterface extends StartOnHookInterface { * @return int */ public function get_interval(): int; - } diff --git a/src/Jobs/StartHook.php b/src/Jobs/StartHook.php index c7f21cee55..9c2422ff94 100644 --- a/src/Jobs/StartHook.php +++ b/src/Jobs/StartHook.php @@ -46,5 +46,4 @@ public function get_hook(): string { public function get_argument_count(): int { return $this->argument_count; } - } diff --git a/src/Jobs/StartOnHookInterface.php b/src/Jobs/StartOnHookInterface.php index 1df1386a54..5721f37df4 100644 --- a/src/Jobs/StartOnHookInterface.php +++ b/src/Jobs/StartOnHookInterface.php @@ -20,5 +20,4 @@ interface StartOnHookInterface extends ActionSchedulerJobInterface { * @return StartHook */ public function get_start_hook(): StartHook; - } diff --git a/src/Jobs/Update/PluginUpdate.php b/src/Jobs/Update/PluginUpdate.php index c4d99e2bd3..c8aa078148 100644 --- a/src/Jobs/Update/PluginUpdate.php +++ b/src/Jobs/Update/PluginUpdate.php @@ -76,5 +76,4 @@ protected function schedule_jobs( array $jobs ): void { } } } - } diff --git a/src/Menu/AttributeMapping.php b/src/Menu/AttributeMapping.php index 423f1b12f2..1770d53269 100644 --- a/src/Menu/AttributeMapping.php +++ b/src/Menu/AttributeMapping.php @@ -19,7 +19,7 @@ class AttributeMapping implements Service, Registerable { public function register(): void { add_action( 'admin_menu', - function() { + function () { wc_admin_register_page( [ 'title' => __( 'Attribute Mapping', 'google-listings-and-ads' ), diff --git a/src/Menu/Dashboard.php b/src/Menu/Dashboard.php index 9dc6800035..b5a5de7b94 100644 --- a/src/Menu/Dashboard.php +++ b/src/Menu/Dashboard.php @@ -31,7 +31,7 @@ public function register(): void { add_action( 'admin_menu', - function() { + function () { if ( $this->is_woo_nav_enabled() ) { $this->register_navigation_pages(); } else { diff --git a/src/Menu/GetStarted.php b/src/Menu/GetStarted.php index 7040c16a96..10e0db4f65 100644 --- a/src/Menu/GetStarted.php +++ b/src/Menu/GetStarted.php @@ -31,7 +31,7 @@ public function register(): void { add_action( 'admin_menu', - function() { + function () { if ( $this->is_woo_nav_enabled() ) { $this->register_navigation_pages(); } else { diff --git a/src/Menu/ProductFeed.php b/src/Menu/ProductFeed.php index 0e4d61eff0..9d0b45b64e 100644 --- a/src/Menu/ProductFeed.php +++ b/src/Menu/ProductFeed.php @@ -19,7 +19,7 @@ class ProductFeed implements Service, Registerable { public function register(): void { add_action( 'admin_menu', - function() { + function () { wc_admin_register_page( [ 'title' => __( 'Product Feed', 'google-listings-and-ads' ), diff --git a/src/Menu/Reports.php b/src/Menu/Reports.php index 04fc824068..1de143d36f 100644 --- a/src/Menu/Reports.php +++ b/src/Menu/Reports.php @@ -19,7 +19,7 @@ class Reports implements Service, Registerable { public function register(): void { add_action( 'admin_menu', - function() { + function () { wc_admin_register_page( [ 'title' => __( 'Reports', 'google-listings-and-ads' ), diff --git a/src/Menu/Settings.php b/src/Menu/Settings.php index f435e7518b..1701fad9ce 100644 --- a/src/Menu/Settings.php +++ b/src/Menu/Settings.php @@ -19,7 +19,7 @@ class Settings implements Service, Registerable { public function register(): void { add_action( 'admin_menu', - function() { + function () { wc_admin_register_page( [ 'title' => __( 'Settings', 'google-listings-and-ads' ), diff --git a/src/Menu/SetupAds.php b/src/Menu/SetupAds.php index 8adca62a13..1d5ccf3c04 100644 --- a/src/Menu/SetupAds.php +++ b/src/Menu/SetupAds.php @@ -19,7 +19,7 @@ class SetupAds implements Service, Registerable { public function register(): void { add_action( 'admin_menu', - function() { + function () { wc_admin_register_page( [ 'title' => __( 'Ads Setup Wizard', 'google-listings-and-ads' ), diff --git a/src/Menu/SetupMerchantCenter.php b/src/Menu/SetupMerchantCenter.php index 48dc52a8b2..b6ad287a77 100644 --- a/src/Menu/SetupMerchantCenter.php +++ b/src/Menu/SetupMerchantCenter.php @@ -19,7 +19,7 @@ class SetupMerchantCenter implements Service, Registerable { public function register(): void { add_action( 'admin_menu', - function() { + function () { wc_admin_register_page( [ 'title' => __( 'MC Setup Wizard', 'google-listings-and-ads' ), diff --git a/src/MerchantCenter/ContactInformation.php b/src/MerchantCenter/ContactInformation.php index e93c9279ca..8abb7cea34 100644 --- a/src/MerchantCenter/ContactInformation.php +++ b/src/MerchantCenter/ContactInformation.php @@ -84,5 +84,4 @@ protected function update_contact_information( AccountBusinessInformation $busin $account->setBusinessInformation( $business_information ); $this->merchant->update_account( $account ); } - } diff --git a/src/MerchantCenter/MerchantCenterService.php b/src/MerchantCenter/MerchantCenterService.php index 12219b17fd..5189fd4869 100644 --- a/src/MerchantCenter/MerchantCenterService.php +++ b/src/MerchantCenter/MerchantCenterService.php @@ -59,7 +59,7 @@ class MerchantCenterService implements ContainerAwareInterface, OptionsAwareInte public function __construct() { add_filter( 'woocommerce_gla_custom_merchant_issues', - function( array $issues, DateTime $cache_created_time ) { + function ( array $issues, DateTime $cache_created_time ) { return $this->maybe_add_contact_info_issue( $issues, $cache_created_time ); }, 10, @@ -383,7 +383,7 @@ protected function saved_shipping_and_tax_options(): bool { // Check if all target countries have a shipping time. $saved_shipping_time = count( $shipping_time_rows ) === count( $target_countries ) && - empty( array_diff( $target_countries, $saved_time_countries ) ); + empty( array_diff( $target_countries, $saved_time_countries ) ); } // Shipping rates saved if: 'manual', 'automatic', OR there are records for all countries @@ -406,7 +406,7 @@ protected function saved_shipping_and_tax_options(): bool { // Check if all target countries have a shipping rate. $saved_shipping_rate = count( $shipping_rate_rows ) === count( $target_countries ) && - empty( array_diff( $target_countries, $saved_rates_countries ) ); + empty( array_diff( $target_countries, $saved_rates_countries ) ); } return $saved_shipping_rate && $saved_shipping_time; diff --git a/src/MerchantCenter/TargetAudience.php b/src/MerchantCenter/TargetAudience.php index 487b8a76cf..e7ea98468e 100644 --- a/src/MerchantCenter/TargetAudience.php +++ b/src/MerchantCenter/TargetAudience.php @@ -78,5 +78,4 @@ public function get_main_target_country(): string { return in_array( $shop_country, $target_countries, true ) ? $shop_country : $target_countries[0]; } - } diff --git a/src/Notes/AbstractNote.php b/src/Notes/AbstractNote.php index 7b5a9474a9..680166483b 100644 --- a/src/Notes/AbstractNote.php +++ b/src/Notes/AbstractNote.php @@ -50,5 +50,4 @@ protected function has_been_added(): bool { return ! empty( $note_ids ); } - } diff --git a/src/Notes/ContactInformation.php b/src/Notes/ContactInformation.php index ad231878f7..577ddb38cc 100644 --- a/src/Notes/ContactInformation.php +++ b/src/Notes/ContactInformation.php @@ -78,5 +78,4 @@ public function should_be_added(): bool { return true; } - } diff --git a/src/Notes/LeaveReviewActionTrait.php b/src/Notes/LeaveReviewActionTrait.php index 8cc23873e1..fab5b3ecc6 100644 --- a/src/Notes/LeaveReviewActionTrait.php +++ b/src/Notes/LeaveReviewActionTrait.php @@ -31,5 +31,4 @@ protected function add_leave_review_note_action( NoteEntry $note ) { rand( 0, 1 ) ? $wp_link : $wc_link ); } - } diff --git a/src/Notes/Note.php b/src/Notes/Note.php index 96908d5cdb..441dca6357 100644 --- a/src/Notes/Note.php +++ b/src/Notes/Note.php @@ -32,5 +32,4 @@ public function should_be_added(): bool; * Get the note entry. */ public function get_entry(): NoteEntry; - } diff --git a/src/Notes/NoteInitializer.php b/src/Notes/NoteInitializer.php index 142866a8db..7dbaefc500 100644 --- a/src/Notes/NoteInitializer.php +++ b/src/Notes/NoteInitializer.php @@ -127,5 +127,4 @@ public function deactivate(): void { Notes::delete_notes_with_name( $note_names ); } } - } diff --git a/src/Notes/ReviewAfterClicks.php b/src/Notes/ReviewAfterClicks.php index 4680d22c42..7dd7b7835a 100644 --- a/src/Notes/ReviewAfterClicks.php +++ b/src/Notes/ReviewAfterClicks.php @@ -125,5 +125,4 @@ protected function get_free_listing_clicks_count(): int { return empty( $metrics ) ? 0 : $metrics['clicks']; } - } diff --git a/src/Notes/ReviewAfterConversions.php b/src/Notes/ReviewAfterConversions.php index c51ad3dde5..12e337c723 100644 --- a/src/Notes/ReviewAfterConversions.php +++ b/src/Notes/ReviewAfterConversions.php @@ -120,5 +120,4 @@ public function should_be_added(): bool { return true; } - } diff --git a/src/Notes/SetupCouponSharing.php b/src/Notes/SetupCouponSharing.php index 3522b3f748..5440523f82 100644 --- a/src/Notes/SetupCouponSharing.php +++ b/src/Notes/SetupCouponSharing.php @@ -119,10 +119,8 @@ public function should_be_added(): bool { if ( ! $this->gla_setup_for( 3 * DAY_IN_SECONDS ) ) { return false; } - } else { - if ( ! $this->gla_setup_for( 17 * DAY_IN_SECONDS ) ) { - return false; - } + } elseif ( ! $this->gla_setup_for( 17 * DAY_IN_SECONDS ) ) { + return false; } return true; diff --git a/src/Options/AdsSetupCompleted.php b/src/Options/AdsSetupCompleted.php index 9c22ddc0d6..f68cdcbfe3 100644 --- a/src/Options/AdsSetupCompleted.php +++ b/src/Options/AdsSetupCompleted.php @@ -28,7 +28,7 @@ class AdsSetupCompleted implements OptionsAwareInterface, Registerable, Service public function register(): void { add_action( 'woocommerce_gla_ads_setup_completed', - function() { + function () { $this->set_completed_timestamp(); } ); diff --git a/src/Options/MerchantSetupCompleted.php b/src/Options/MerchantSetupCompleted.php index 79e35968bd..852971b7e4 100644 --- a/src/Options/MerchantSetupCompleted.php +++ b/src/Options/MerchantSetupCompleted.php @@ -25,7 +25,7 @@ class MerchantSetupCompleted implements OptionsAwareInterface, Registerable, Ser public function register(): void { add_action( 'woocommerce_gla_mc_settings_sync', - function() { + function () { $this->set_contact_information_setup(); $this->set_completed_timestamp(); } diff --git a/src/Options/Options.php b/src/Options/Options.php index 2164e9c7ab..e5dcc82e66 100644 --- a/src/Options/Options.php +++ b/src/Options/Options.php @@ -31,16 +31,16 @@ final class Options implements OptionsInterface, Service { /** * Get an option. * - * @param string $name The option name. - * @param mixed $default A default value for the option. + * @param string $name The option name. + * @param mixed $default_value A default value for the option. * * @return mixed */ - public function get( string $name, $default = null ) { + public function get( string $name, $default_value = null ) { $this->validate_option_key( $name ); if ( ! array_key_exists( $name, $this->options ) ) { - $value = get_option( $this->prefix_name( $name ), $default ); + $value = get_option( $this->prefix_name( $name ), $default_value ); $this->options[ $name ] = $this->maybe_cast_value( $name, $value ); } diff --git a/src/Options/OptionsInterface.php b/src/Options/OptionsInterface.php index 358a4e3653..3dafa5a93b 100644 --- a/src/Options/OptionsInterface.php +++ b/src/Options/OptionsInterface.php @@ -82,12 +82,12 @@ interface OptionsInterface { /** * Get an option. * - * @param string $name The option name. - * @param mixed $default A default value for the option. + * @param string $name The option name. + * @param mixed $default_value A default value for the option. * * @return mixed */ - public function get( string $name, $default = null ); + public function get( string $name, $default_value = null ); /** * Add an option. diff --git a/src/Options/Transients.php b/src/Options/Transients.php index 849068c6be..730f76ef21 100644 --- a/src/Options/Transients.php +++ b/src/Options/Transients.php @@ -29,19 +29,19 @@ final class Transients implements TransientsInterface, Service { /** * Get a transient. * - * @param string $name The transient name. - * @param mixed $default A default value for the transient. + * @param string $name The transient name. + * @param mixed $default_value A default value for the transient. * * @return mixed */ - public function get( string $name, $default = null ) { + public function get( string $name, $default_value = null ) { $this->validate_transient_key( $name ); if ( ! array_key_exists( $name, $this->transients ) ) { $value = get_transient( $this->prefix_name( $name ) ); if ( false === $value ) { - $value = $default; + $value = $default_value; } $this->transients[ $name ] = $value; diff --git a/src/Options/TransientsInterface.php b/src/Options/TransientsInterface.php index 7ec945eaec..53c9b267ab 100644 --- a/src/Options/TransientsInterface.php +++ b/src/Options/TransientsInterface.php @@ -31,12 +31,12 @@ interface TransientsInterface { /** * Get a transient. * - * @param string $name The transient name. - * @param mixed $default A default value for the transient. + * @param string $name The transient name. + * @param mixed $default_value A default value for the transient. * * @return mixed */ - public function get( string $name, $default = null ); + public function get( string $name, $default_value = null ); /** * Add or update a transient. diff --git a/src/Product/AttributeMapping/AttributeMappingHelper.php b/src/Product/AttributeMapping/AttributeMappingHelper.php index 8f4c1a9b7c..77f86e7d33 100644 --- a/src/Product/AttributeMapping/AttributeMappingHelper.php +++ b/src/Product/AttributeMapping/AttributeMappingHelper.php @@ -123,7 +123,6 @@ public function get_sources_for_attribute( string $attribute_id ): array { } return $attribute_sources; - } /** @@ -138,5 +137,4 @@ public function get_category_condition_types(): array { self::CATEGORY_CONDITION_TYPE_ONLY, ]; } - } diff --git a/src/Product/Attributes/AbstractAttribute.php b/src/Product/Attributes/AbstractAttribute.php index 38bace45b7..860186a648 100644 --- a/src/Product/Attributes/AbstractAttribute.php +++ b/src/Product/Attributes/AbstractAttribute.php @@ -98,5 +98,4 @@ public static function get_applicable_product_types(): array { public function __toString() { return (string) $this->get_value(); } - } diff --git a/src/Product/Attributes/AttributeInterface.php b/src/Product/Attributes/AttributeInterface.php index 24ff377076..ace66a4eee 100644 --- a/src/Product/Attributes/AttributeInterface.php +++ b/src/Product/Attributes/AttributeInterface.php @@ -58,5 +58,4 @@ public static function get_applicable_product_types(): array; * @return mixed */ public function get_value(); - } diff --git a/src/Product/Attributes/AvailabilityDate.php b/src/Product/Attributes/AvailabilityDate.php index e3dd56c719..c8a51e6b6e 100644 --- a/src/Product/Attributes/AvailabilityDate.php +++ b/src/Product/Attributes/AvailabilityDate.php @@ -66,5 +66,4 @@ public static function get_applicable_product_types(): array { public static function get_input_type(): string { return AvailabilityDateInput::class; } - } diff --git a/src/Product/Attributes/Condition.php b/src/Product/Attributes/Condition.php index 32474ef317..c3f8630dd6 100644 --- a/src/Product/Attributes/Condition.php +++ b/src/Product/Attributes/Condition.php @@ -75,5 +75,4 @@ public static function get_input_type(): string { public static function get_name(): string { return __( 'Condition', 'google-listings-and-ads' ); } - } diff --git a/src/Product/Attributes/IsBundle.php b/src/Product/Attributes/IsBundle.php index 1c8371797c..dfe4c48748 100644 --- a/src/Product/Attributes/IsBundle.php +++ b/src/Product/Attributes/IsBundle.php @@ -84,5 +84,4 @@ public static function get_sources(): array { 'no' => __( 'No', 'google-listings-and-ads' ), ]; } - } diff --git a/src/Product/Attributes/Multipack.php b/src/Product/Attributes/Multipack.php index 5035f9e88c..cb70478b25 100644 --- a/src/Product/Attributes/Multipack.php +++ b/src/Product/Attributes/Multipack.php @@ -71,5 +71,4 @@ public static function get_input_type(): string { public static function get_name(): string { return __( 'Multipack', 'google-listings-and-ads' ); } - } diff --git a/src/Product/Attributes/Size.php b/src/Product/Attributes/Size.php index aae99a2ce9..b772035d05 100644 --- a/src/Product/Attributes/Size.php +++ b/src/Product/Attributes/Size.php @@ -60,5 +60,4 @@ public static function get_input_type(): string { public static function get_name(): string { return __( 'Size', 'google-listings-and-ads' ); } - } diff --git a/src/Product/Attributes/SizeSystem.php b/src/Product/Attributes/SizeSystem.php index e161551df2..bd6fd9579f 100644 --- a/src/Product/Attributes/SizeSystem.php +++ b/src/Product/Attributes/SizeSystem.php @@ -83,5 +83,4 @@ public static function get_input_type(): string { public static function get_name(): string { return __( 'Size System', 'google-listings-and-ads' ); } - } diff --git a/src/Product/Attributes/SizeType.php b/src/Product/Attributes/SizeType.php index ec1a9f7143..972a712987 100644 --- a/src/Product/Attributes/SizeType.php +++ b/src/Product/Attributes/SizeType.php @@ -79,5 +79,4 @@ public static function get_input_type(): string { public static function get_name(): string { return __( 'Size Type', 'google-listings-and-ads' ); } - } diff --git a/src/Product/Attributes/WithMappingInterface.php b/src/Product/Attributes/WithMappingInterface.php index fce1b7bd82..dee52ce410 100644 --- a/src/Product/Attributes/WithMappingInterface.php +++ b/src/Product/Attributes/WithMappingInterface.php @@ -32,5 +32,4 @@ public static function is_enum(): bool; * @return array */ public static function get_sources(): array; - } diff --git a/src/Product/ProductHelper.php b/src/Product/ProductHelper.php index 1f3cce002d..79ebeeaddc 100644 --- a/src/Product/ProductHelper.php +++ b/src/Product/ProductHelper.php @@ -148,7 +148,6 @@ public function remove_google_id( WC_Product $product, string $google_id ) { // if there are no Google IDs left then this product is no longer considered "synced" $this->mark_as_unsynced( $product ); } - } /** @@ -369,9 +368,9 @@ public function is_sync_ready( WC_Product $product ): bool { } return ( ChannelVisibility::DONT_SYNC_AND_SHOW !== $this->get_channel_visibility( $product ) ) && - ( in_array( $product->get_type(), ProductSyncer::get_supported_product_types(), true ) ) && - ( 'publish' === $product_status ) && - $product_visibility; + ( in_array( $product->get_type(), ProductSyncer::get_supported_product_types(), true ) ) && + ( 'publish' === $product_status ) && + $product_visibility; } /** @@ -390,7 +389,7 @@ public function is_sync_failed_recently( WC_Product $product ): bool { // if it has failed more times than the specified threshold AND if syncing it has failed within the specified window return $failed_attempts > ProductSyncer::FAILURE_THRESHOLD && - $failed_at > strtotime( sprintf( '-%s', ProductSyncer::FAILURE_THRESHOLD_WINDOW ) ); + $failed_at > strtotime( sprintf( '-%s', ProductSyncer::FAILURE_THRESHOLD_WINDOW ) ); } /** diff --git a/src/Product/WCProductAdapter.php b/src/Product/WCProductAdapter.php index 2bf965845e..797b605f91 100644 --- a/src/Product/WCProductAdapter.php +++ b/src/Product/WCProductAdapter.php @@ -71,41 +71,41 @@ class WCProductAdapter extends GoogleProduct implements Validatable { /** * Initialize this object's properties from an array. * - * @param array $array Used to seed this object's properties. + * @param array $properties Used to seed this object's properties. * * @return void * * @throws InvalidValue When a WooCommerce product is not provided or it is invalid. */ - public function mapTypes( $array ) { - if ( empty( $array['wc_product'] ) || ! $array['wc_product'] instanceof WC_Product ) { + public function mapTypes( $properties ) { + if ( empty( $properties['wc_product'] ) || ! $properties['wc_product'] instanceof WC_Product ) { throw InvalidValue::not_instance_of( WC_Product::class, 'wc_product' ); } // throw an exception if the parent product isn't provided and this is a variation - if ( $array['wc_product'] instanceof WC_Product_Variation && - ( empty( $array['parent_wc_product'] ) || ! $array['parent_wc_product'] instanceof WC_Product_Variable ) + if ( $properties['wc_product'] instanceof WC_Product_Variation && + ( empty( $properties['parent_wc_product'] ) || ! $properties['parent_wc_product'] instanceof WC_Product_Variable ) ) { throw InvalidValue::not_instance_of( WC_Product_Variable::class, 'parent_wc_product' ); } - if ( empty( $array['targetCountry'] ) ) { + if ( empty( $properties['targetCountry'] ) ) { throw InvalidValue::is_empty( 'targetCountry' ); } - $this->wc_product = $array['wc_product']; - $this->parent_wc_product = $array['parent_wc_product'] ?? null; + $this->wc_product = $properties['wc_product']; + $this->parent_wc_product = $properties['parent_wc_product'] ?? null; - $mapping_rules = $array['mapping_rules'] ?? []; - $gla_attributes = $array['gla_attributes'] ?? []; + $mapping_rules = $properties['mapping_rules'] ?? []; + $gla_attributes = $properties['gla_attributes'] ?? []; // Google doesn't expect extra fields, so it's best to remove them - unset( $array['wc_product'] ); - unset( $array['parent_wc_product'] ); - unset( $array['gla_attributes'] ); - unset( $array['mapping_rules'] ); + unset( $properties['wc_product'] ); + unset( $properties['parent_wc_product'] ); + unset( $properties['gla_attributes'] ); + unset( $properties['mapping_rules'] ); - parent::mapTypes( $array ); + parent::mapTypes( $properties ); $this->map_woocommerce_product(); $this->map_attribute_mapping_rules( $mapping_rules ); $this->map_gla_attributes( $gla_attributes ); @@ -126,13 +126,12 @@ protected function map_woocommerce_product() { $this->setContentLanguage( $content_language ); $this->map_wc_product_id() - ->map_wc_general_attributes() - ->map_product_categories() - ->map_wc_product_image( self::IMAGE_SIZE_FULL ) - ->map_wc_availability() - ->map_wc_product_shipping() - ->map_wc_prices(); - + ->map_wc_general_attributes() + ->map_product_categories() + ->map_wc_product_image( self::IMAGE_SIZE_FULL ) + ->map_wc_availability() + ->map_wc_product_shipping() + ->map_wc_prices(); } /** @@ -428,7 +427,7 @@ protected function map_wc_product_shipping(): WCProductAdapter { $weight_unit = apply_filters( 'woocommerce_gla_weight_unit', get_option( 'woocommerce_weight_unit' ) ); $this->map_wc_shipping_dimensions( $dimension_unit ) - ->map_wc_shipping_weight( $weight_unit ); + ->map_wc_shipping_weight( $weight_unit ); } // Set the product's shipping class slug as the shipping label. @@ -659,8 +658,10 @@ protected function map_wc_product_sale_price( WC_Product $product ): WCProductAd $regular_price = $product->get_regular_price(); $sale_price = $product->get_sale_price(); $active_price = $product->get_price(); - if ( ( empty( $sale_price ) && $active_price < $regular_price ) || - ( ! empty( $sale_price ) && $active_price < $sale_price ) ) { + if ( + ( empty( $sale_price ) && $active_price < $regular_price ) || + ( ! empty( $sale_price ) && $active_price < $sale_price ) + ) { $sale_price = $active_price; } @@ -712,23 +713,26 @@ protected function get_wc_product_sale_price_effective_date( WC_Product $product $now = new WC_DateTime(); // if we have a sale end date in the future, but no start date, set the start date to now() - if ( ! empty( $end_date ) && - $end_date > $now && - empty( $start_date ) + if ( + ! empty( $end_date ) && + $end_date > $now && + empty( $start_date ) ) { $start_date = $now; } // if we have a sale start date in the past, but no end date, do not include the start date. - if ( ! empty( $start_date ) && - $start_date < $now && - empty( $end_date ) + if ( + ! empty( $start_date ) && + $start_date < $now && + empty( $end_date ) ) { $start_date = null; } // if we have a start date in the future, but no end date, assume a one-day sale. - if ( ! empty( $start_date ) && - $start_date > $now && - empty( $end_date ) + if ( + ! empty( $start_date ) && + $start_date > $now && + empty( $end_date ) ) { $end_date = clone $start_date; $end_date->add( new DateInterval( 'P1D' ) ); diff --git a/src/Proxies/RESTServer.php b/src/Proxies/RESTServer.php index d6315c8b21..d21abe72ee 100644 --- a/src/Proxies/RESTServer.php +++ b/src/Proxies/RESTServer.php @@ -34,29 +34,29 @@ public function __construct( ?Server $server = null ) { /** * Register a REST route. * - * @param string $namespace The route namespace. - * @param string $route The route. - * @param array $args Arguments for the route. + * @param string $route_namespace The route namespace. + * @param string $route The route. + * @param array $args Arguments for the route. */ - public function register_route( string $namespace, string $route, array $args ): void { + public function register_route( string $route_namespace, string $route, array $args ): void { // Clean up namespace and route. - $namespace = trim( $namespace, '/' ); - $route = trim( $route, '/' ); - $full_route = "/{$namespace}/{$route}"; - $this->server->register_route( $namespace, $full_route, $this->prepare_route_args( $args ) ); + $route_namespace = trim( $route_namespace, '/' ); + $route = trim( $route, '/' ); + $full_route = "/{$route_namespace}/{$route}"; + $this->server->register_route( $route_namespace, $full_route, $this->prepare_route_args( $args ) ); } /** * Get the registered REST routes. * - * @param string $namespace Optionally, only return routes in the given namespace. + * @param string $route_namespace Optionally, only return routes in the given namespace. * @return array `'/path/regex' => array( $callback, $bitmask )` or * `'/path/regex' => array( array( $callback, $bitmask ), ...)`. * * @since 1.4.0 */ - public function get_routes( string $namespace = '' ): array { - return $this->server->get_routes( $namespace ); + public function get_routes( string $route_namespace = '' ): array { + return $this->server->get_routes( $route_namespace ); } /** diff --git a/src/Proxies/WP.php b/src/Proxies/WP.php index cfd4c0e9e0..12f82b0a8c 100644 --- a/src/Proxies/WP.php +++ b/src/Proxies/WP.php @@ -50,13 +50,13 @@ public function plugins_url( string $path = '' ): string { /** * Retrieve values from the WP query_vars property. * - * @param string $key The key of the value to retrieve. - * @param null $default The default value to return if the key isn't found. + * @param string $key The key of the value to retrieve. + * @param null $default_value The default value to return if the key isn't found. * * @return mixed The query value if found, or the default value. */ - public function get_query_vars( string $key, $default = null ) { - return $this->wp->query_vars[ $key ] ?? $default; + public function get_query_vars( string $key, $default_value = null ) { + return $this->wp->query_vars[ $key ] ?? $default_value; } /** @@ -237,18 +237,14 @@ public function get_taxonomies( array $args = [], string $output = 'names', stri * * @since 2.4.0 * - * @param array|string $args Optional. Array or string of arguments. See WP_Term_Query::__construct() - * for information on accepted arguments. Default empty array. - * @param array|string $deprecated Optional. Argument array, when using the legacy function parameter format. - * If present, this parameter will be interpreted as `$args`, and the first - * function parameter will be parsed as a taxonomy or array of taxonomies. - * Default empty. + * @param array|string $args Optional. Array or string of arguments. See WP_Term_Query::__construct() + * for information on accepted arguments. Default empty array. * @return WP_Term[]|int[]|string[]|string|WP_Error Array of terms, a count thereof as a numeric string, * or WP_Error if any of the taxonomies do not exist. * See the function description for more information. */ - public function get_terms( $args = [], $deprecated = '' ) { - return get_terms( $args, $deprecated ); + public function get_terms( $args = [] ) { + return get_terms( $args ); } /** @@ -286,7 +282,6 @@ public function get_shop_page() { } return null; - } /** @@ -306,7 +301,6 @@ public function wp_update_image_subsizes( int $attachment_id ) { } return wp_update_image_subsizes( $attachment_id ); - } /** diff --git a/src/Shipping/GoogleAdapter/AbstractRateGroupAdapter.php b/src/Shipping/GoogleAdapter/AbstractRateGroupAdapter.php index 11f5e50d41..5761ddfce1 100644 --- a/src/Shipping/GoogleAdapter/AbstractRateGroupAdapter.php +++ b/src/Shipping/GoogleAdapter/AbstractRateGroupAdapter.php @@ -22,25 +22,25 @@ abstract class AbstractRateGroupAdapter extends RateGroup { /** * Initialize this object's properties from an array. * - * @param array $array Used to seed this object's properties. + * @param array $properties Used to seed this object's properties. * * @throws InvalidValue When the required parameters are not provided, or they are invalid. */ - public function mapTypes( $array ) { - if ( empty( $array['currency'] ) || ! is_string( $array['currency'] ) ) { + public function mapTypes( $properties ) { + if ( empty( $properties['currency'] ) || ! is_string( $properties['currency'] ) ) { throw new InvalidValue( 'The value of "currency" must be a non empty string.' ); } - if ( empty( $array['location_rates'] ) || ! is_array( $array['location_rates'] ) ) { + if ( empty( $properties['location_rates'] ) || ! is_array( $properties['location_rates'] ) ) { throw new InvalidValue( 'The value of "location_rates" must be a non empty array.' ); } - $this->map_location_rates( $array['location_rates'], $array['currency'] ); + $this->map_location_rates( $properties['location_rates'], $properties['currency'] ); // Remove the extra data before calling the parent method since it doesn't expect them. - unset( $array['currency'] ); - unset( $array['location_rates'] ); + unset( $properties['currency'] ); + unset( $properties['location_rates'] ); - parent::mapTypes( $array ); + parent::mapTypes( $properties ); } /** diff --git a/src/Shipping/GoogleAdapter/AbstractShippingSettingsAdapter.php b/src/Shipping/GoogleAdapter/AbstractShippingSettingsAdapter.php index 31dd484e23..01c2658c4d 100644 --- a/src/Shipping/GoogleAdapter/AbstractShippingSettingsAdapter.php +++ b/src/Shipping/GoogleAdapter/AbstractShippingSettingsAdapter.php @@ -30,23 +30,23 @@ abstract class AbstractShippingSettingsAdapter extends GoogleShippingSettings { /** * Initialize this object's properties from an array. * - * @param array $array Used to seed this object's properties. + * @param array $properties Used to seed this object's properties. * * @return void * * @throws InvalidValue When the required parameters are not provided, or they are invalid. */ - public function mapTypes( $array ) { - $this->validate_gla_data( $array ); + public function mapTypes( $properties ) { + $this->validate_gla_data( $properties ); - $this->currency = $array['currency']; - $this->delivery_times = $array['delivery_times']; + $this->currency = $properties['currency']; + $this->delivery_times = $properties['delivery_times']; - $this->map_gla_data( $array ); + $this->map_gla_data( $properties ); - $this->unset_gla_data( $array ); + $this->unset_gla_data( $properties ); - parent::mapTypes( $array ); + parent::mapTypes( $properties ); } /** diff --git a/src/Shipping/GoogleAdapter/DBShippingSettingsAdapter.php b/src/Shipping/GoogleAdapter/DBShippingSettingsAdapter.php index a1df6a316e..1652cf0e5e 100644 --- a/src/Shipping/GoogleAdapter/DBShippingSettingsAdapter.php +++ b/src/Shipping/GoogleAdapter/DBShippingSettingsAdapter.php @@ -185,5 +185,4 @@ protected function create_conditional_free_shipping_service( string $country, st return $service; } - } diff --git a/src/Shipping/GoogleAdapter/StatesRateGroupAdapter.php b/src/Shipping/GoogleAdapter/StatesRateGroupAdapter.php index dce7d8cb36..8f7b161884 100644 --- a/src/Shipping/GoogleAdapter/StatesRateGroupAdapter.php +++ b/src/Shipping/GoogleAdapter/StatesRateGroupAdapter.php @@ -46,5 +46,4 @@ protected function map_location_rates( array $location_rates, string $currency ) $this->setMainTable( $table ); } - } diff --git a/src/Shipping/LocationRatesProcessor.php b/src/Shipping/LocationRatesProcessor.php index 980eaf46f8..35f37a14af 100644 --- a/src/Shipping/LocationRatesProcessor.php +++ b/src/Shipping/LocationRatesProcessor.php @@ -60,7 +60,6 @@ public function process( array $location_rates ): array { */ protected function should_rate_be_replaced( ShippingRate $new_rate, ShippingRate $existing_rate ): bool { return $new_rate->get_rate() > $existing_rate->get_rate() || - (float) $new_rate->get_min_order_amount() > (float) $existing_rate->get_min_order_amount(); + (float) $new_rate->get_min_order_amount() > (float) $existing_rate->get_min_order_amount(); } - } diff --git a/src/Shipping/PostcodeRange.php b/src/Shipping/PostcodeRange.php index 403f954d1d..b5226e392d 100644 --- a/src/Shipping/PostcodeRange.php +++ b/src/Shipping/PostcodeRange.php @@ -77,5 +77,4 @@ public function __toString() { return $this->start_code; } - } diff --git a/src/Shipping/ShippingLocation.php b/src/Shipping/ShippingLocation.php index 573a4ac84e..459998d1c0 100644 --- a/src/Shipping/ShippingLocation.php +++ b/src/Shipping/ShippingLocation.php @@ -115,5 +115,4 @@ public function __toString() { return $code; } - } diff --git a/src/Shipping/ShippingRate.php b/src/Shipping/ShippingRate.php index bfdec7b163..e2edef06c3 100644 --- a/src/Shipping/ShippingRate.php +++ b/src/Shipping/ShippingRate.php @@ -116,5 +116,4 @@ public function jsonSerialize(): array { 'rate' => $this->get_rate(), ]; } - } diff --git a/src/Shipping/ShippingRegion.php b/src/Shipping/ShippingRegion.php index 7da518c8c0..7002bf107f 100644 --- a/src/Shipping/ShippingRegion.php +++ b/src/Shipping/ShippingRegion.php @@ -86,5 +86,4 @@ public static function generate_random_id(): string { public function __toString() { return $this->get_country() . join( ',', $this->get_postcode_ranges() ); } - } diff --git a/src/Shipping/ShippingSuggestionService.php b/src/Shipping/ShippingSuggestionService.php index 2d8da51442..4b32782d1e 100644 --- a/src/Shipping/ShippingSuggestionService.php +++ b/src/Shipping/ShippingSuggestionService.php @@ -97,5 +97,4 @@ public function get_suggestions( string $country_code ): array { return $suggestions; } - } diff --git a/src/Shipping/ShippingZone.php b/src/Shipping/ShippingZone.php index 5a1e946c92..98444ef818 100644 --- a/src/Shipping/ShippingZone.php +++ b/src/Shipping/ShippingZone.php @@ -177,5 +177,4 @@ protected function map_rates_to_locations( array $shipping_rates, array $locatio $this->location_rates[ $country_code ][ $location_key ] = $location_rates; } } - } diff --git a/src/Shipping/ZoneLocationsParser.php b/src/Shipping/ZoneLocationsParser.php index eabb0bc15a..7a8ccf868d 100644 --- a/src/Shipping/ZoneLocationsParser.php +++ b/src/Shipping/ZoneLocationsParser.php @@ -133,5 +133,4 @@ protected function maybe_create_region_for_postcodes( string $country, array $po return new ShippingRegion( $region_id, $country, $postcode_ranges ); } - } diff --git a/src/Shipping/ZoneMethodsParser.php b/src/Shipping/ZoneMethodsParser.php index 67df98a530..c7238c0ab1 100644 --- a/src/Shipping/ZoneMethodsParser.php +++ b/src/Shipping/ZoneMethodsParser.php @@ -96,8 +96,17 @@ protected function shipping_method_to_rates( object $method ): array { $shipping_rates[] = $shipping_rate; break; default: - // We don't support other shipping methods. - return []; + /** + * Filter the shipping rates for a shipping method that is not supported. + * + * @param ShippingRate[] $shipping_rates The shipping rates. + * @param object|WC_Shipping_Method $method The shipping method. + */ + return apply_filters( + 'woocommerce_gla_handle_shipping_method_to_rates', + $shipping_rates, + $method + ); } return $shipping_rates; @@ -167,5 +176,4 @@ protected function get_flat_rate_method_class_rates( object $method ): array { return array_values( $class_rates ); } - } diff --git a/src/TaskList/CompleteSetupTask.php b/src/TaskList/CompleteSetupTask.php index bdaf399d3e..d2fbdab8b2 100644 --- a/src/TaskList/CompleteSetupTask.php +++ b/src/TaskList/CompleteSetupTask.php @@ -27,7 +27,7 @@ class CompleteSetupTask extends Task implements Service, Registerable, MerchantC public function register(): void { add_action( 'init', - function() { + function () { $list_id = 'extended'; $this->task_list = TaskLists::get_list( $list_id ); @@ -105,5 +105,4 @@ public function get_action_url() { return admin_url( 'admin.php?page=wc-admin&path=/google/dashboard' ); } - } diff --git a/src/Tracking/EventTracking.php b/src/Tracking/EventTracking.php index 7ec90c05b5..4e5d6ec979 100644 --- a/src/Tracking/EventTracking.php +++ b/src/Tracking/EventTracking.php @@ -55,7 +55,7 @@ public function __construct( ContainerInterface $container ) { public function register(): void { add_action( 'init', - function() { + function () { $this->register_events(); }, 20 // After WC_Admin loads WC_Tracks class (init 10). diff --git a/src/Tracking/Events/ActivatedEvents.php b/src/Tracking/Events/ActivatedEvents.php index 405d78126e..538e732f22 100644 --- a/src/Tracking/Events/ActivatedEvents.php +++ b/src/Tracking/Events/ActivatedEvents.php @@ -76,7 +76,6 @@ public function maybe_track_activation_source(): void { } $this->record_event( 'activated_from_source', $available_source_params ); - } /** @@ -87,5 +86,4 @@ public function maybe_track_activation_source(): void { public function activate(): void { $this->maybe_track_activation_source(); } - } diff --git a/src/Tracking/Events/BaseEvent.php b/src/Tracking/Events/BaseEvent.php index 0440e7d38e..49be4eeab8 100644 --- a/src/Tracking/Events/BaseEvent.php +++ b/src/Tracking/Events/BaseEvent.php @@ -14,7 +14,8 @@ */ abstract class BaseEvent implements TracksEventInterface, TracksAwareInterface { - use TracksAwareTrait, PluginHelper; + use TracksAwareTrait; + use PluginHelper; /** * Record an event using the Tracks instance. diff --git a/src/Tracking/TrackerSnapshot.php b/src/Tracking/TrackerSnapshot.php index a625e98ef1..fa21686ffd 100644 --- a/src/Tracking/TrackerSnapshot.php +++ b/src/Tracking/TrackerSnapshot.php @@ -49,7 +49,7 @@ public static function is_needed(): bool { public function register(): void { add_filter( 'woocommerce_tracker_data', - function( $data ) { + function ( $data ) { return $this->include_snapshot_data( $data ); } ); diff --git a/src/Utility/ArrayUtil.php b/src/Utility/ArrayUtil.php index 8b87eaccba..87737558f9 100644 --- a/src/Utility/ArrayUtil.php +++ b/src/Utility/ArrayUtil.php @@ -12,14 +12,11 @@ class ArrayUtil { /** * Remove empty values from array. * - * @param array $array A list of strings. + * @param array $strings A list of strings. * * @return array A list of strings without empty strings. */ - public static function remove_empty_values( array $array ): array { - return array_values( array_filter( $array ) ); + public static function remove_empty_values( array $strings ): array { + return array_values( array_filter( $strings ) ); } - } - - diff --git a/src/Utility/DimensionUtility.php b/src/Utility/DimensionUtility.php index 8b986bd2f4..9aede3e669 100644 --- a/src/Utility/DimensionUtility.php +++ b/src/Utility/DimensionUtility.php @@ -55,7 +55,4 @@ public function is_minimum_size( DimensionUtility $minimum_size ): bool { public function equals( DimensionUtility $target, $precision = 1 ): bool { return wp_fuzzy_number_match( $this->x, $target->x, $precision ) && wp_fuzzy_number_match( $this->y, $target->y, $precision ); } - - } - diff --git a/src/Utility/ImageUtility.php b/src/Utility/ImageUtility.php index c1599fa9d8..a1bcbf114e 100644 --- a/src/Utility/ImageUtility.php +++ b/src/Utility/ImageUtility.php @@ -80,10 +80,4 @@ public function recommend_size( DimensionUtility $size, DimensionUtility $recomm return new DimensionUtility( $x, $y ); } - - - - } - - diff --git a/src/Value/ProductIDMap.php b/src/Value/ProductIDMap.php index 7f4a2bf8e0..652234450c 100644 --- a/src/Value/ProductIDMap.php +++ b/src/Value/ProductIDMap.php @@ -22,16 +22,16 @@ class ProductIDMap extends ArrayObject implements ValueInterface { /** * ProductIDMap constructor. * - * @param int[] $array An array of WooCommerce product IDs mapped to Google product IDs as their key. + * @param int[] $product_ids An array of WooCommerce product IDs mapped to Google product IDs as their key. * @param int $flags Flags to control the behaviour of the ArrayObject object. * @param string $iteratorClass Specify the class that will be used for iteration of the ArrayObject object. ArrayIterator is the default class used. * * @throws InvalidValue When an invalid WooCommerce product ID or Google product ID is provided in the map. */ - public function __construct( $array = [], $flags = 0, $iteratorClass = 'ArrayIterator' ) { - $this->validate( $array ); + public function __construct( $product_ids = [], $flags = 0, $iteratorClass = 'ArrayIterator' ) { + $this->validate( $product_ids ); - parent::__construct( $array, $flags, $iteratorClass ); + parent::__construct( $product_ids, $flags, $iteratorClass ); } /** @@ -44,12 +44,12 @@ public function get(): array { } /** - * @param array $array + * @param int[] $product_ids An array of WooCommerce product IDs mapped to Google product IDs as their key. * * @throws InvalidValue When an invalid WooCommerce product ID or Google product ID is provided in the map. */ - protected function validate( array $array ) { - foreach ( $array as $google_id => $wc_product_id ) { + protected function validate( array $product_ids ) { + foreach ( $product_ids as $google_id => $wc_product_id ) { $wc_product_id = filter_var( $wc_product_id, FILTER_VALIDATE_INT ); if ( false === $wc_product_id ) { throw InvalidValue::not_integer( 'product_id' ); diff --git a/src/View/PHPView.php b/src/View/PHPView.php index bc38f0f8b4..82fc0cb04c 100644 --- a/src/View/PHPView.php +++ b/src/View/PHPView.php @@ -220,13 +220,13 @@ public function __get( string $property ) { } /** - * @param mixed $var + * @param mixed $variable */ - protected function sanitize_context_variable( $var ) { - if ( is_array( $var ) ) { - return array_map( [ $this, 'sanitize_context_variable' ], $var ); + protected function sanitize_context_variable( $variable ) { + if ( is_array( $variable ) ) { + return array_map( [ $this, 'sanitize_context_variable' ], $variable ); } else { - return ! is_bool( $var ) && is_scalar( $var ) ? sanitize_text_field( $var ) : $var; + return ! is_bool( $variable ) && is_scalar( $variable ) ? sanitize_text_field( $variable ) : $variable; } } diff --git a/tests/Framework/RESTControllerUnitTest.php b/tests/Framework/RESTControllerUnitTest.php index c4f7780e08..e2f83b2907 100644 --- a/tests/Framework/RESTControllerUnitTest.php +++ b/tests/Framework/RESTControllerUnitTest.php @@ -92,5 +92,4 @@ protected function do_request( string $endpoint, string $type = 'GET', array $pa return $this->server->dispatch_request( $request ); } - } diff --git a/tests/Tools/HelperTrait/CouponTrait.php b/tests/Tools/HelperTrait/CouponTrait.php index 4ea8a82b3c..ff621410f5 100644 --- a/tests/Tools/HelperTrait/CouponTrait.php +++ b/tests/Tools/HelperTrait/CouponTrait.php @@ -103,7 +103,8 @@ public function generate_delete_coupon_entry( WC_Coupon $coupon ) { */ public function generate_google_promotion_mock( $coupon_id = null, - $target_country = null ) { + $target_country = null + ) { $promotion = $this->createMock( GooglePromotion::class ); $target_country = $target_country ?: $this->get_sample_target_country(); diff --git a/tests/Tools/HelperTrait/GoogleAdsClientTrait.php b/tests/Tools/HelperTrait/GoogleAdsClientTrait.php index e30f1885ce..8ce1094478 100644 --- a/tests/Tools/HelperTrait/GoogleAdsClientTrait.php +++ b/tests/Tools/HelperTrait/GoogleAdsClientTrait.php @@ -130,7 +130,7 @@ protected function generate_campaign_mutate_mock( string $type, int $campaign_id $this->service_client->expects( $this->once() ) ->method( 'mutate' ) ->willReturnCallback( - function( int $ads_id, array $operations ) use ( $type, $response ) { + function ( int $ads_id, array $operations ) use ( $type, $response ) { // Assert that the campaign operation is the right type. foreach ( $operations as $operation ) { if ( 'campaign_operation' === $operation->getOperation() ) { @@ -390,11 +390,11 @@ protected function generate_customers_mock( array $customers ) { /** * Generates a list of mocked customers resource names. * - * @param array $list + * @param array $mocked_list */ - protected function generate_customer_list_mock( array $list ) { + protected function generate_customer_list_mock( array $mocked_list ) { $customers = $this->createMock( ListAccessibleCustomersResponse::class ); - $customers->method( 'getResourceNames' )->willReturn( $list ); + $customers->method( 'getResourceNames' )->willReturn( $mocked_list ); $this->customer_service->method( 'listAccessibleCustomers' )->willReturn( $customers ); } @@ -418,7 +418,7 @@ protected function generate_mc_link_mock( array $links ) { $this->client->method( 'getMerchantCenterLinkServiceClient' )->willReturn( $mc_link_service ); $links = array_map( - function( $link ) { + function ( $link ) { return new MerchantCenterLink( $link ); }, $links @@ -462,7 +462,7 @@ protected function generate_conversion_action_mutate_mock( string $type, int $ac $this->conversion_action_service->expects( $this->once() ) ->method( 'mutateConversionActions' ) ->willReturnCallback( - function( int $ads_id, array $operations ) use ( $type, $response ) { + function ( int $ads_id, array $operations ) use ( $type, $response ) { // Assert that the operation is the right type. foreach ( $operations as $operation ) { if ( 'conversion_action_operation' === $operation->getOperation() ) { @@ -522,7 +522,7 @@ protected function generate_ads_report_query_mock( array $data, array $args = [] $page->method( 'getNextPageToken' )->willReturn( $next_page ); $page->method( 'getIterator' )->willReturn( array_map( - function( $row ) use ( $args ) { + function ( $row ) use ( $args ) { return $this->generate_report_row_mock( $row, $args ); }, $data @@ -732,7 +732,7 @@ protected function generate_asset_group_mutate_mock( string $type, int $asset_gr $this->service_client->expects( $this->once() ) ->method( 'mutate' ) ->willReturnCallback( - function( int $ads_id, array $operations ) use ( $type, $response, $include_assets ) { + function ( int $ads_id, array $operations ) use ( $type, $response, $include_assets ) { $operations_names = []; if ( $type === 'update' && count( $operations ) ) { @@ -769,7 +769,6 @@ function( int $ads_id, array $operations ) use ( $type, $response, $include_asse return $response; } ); - } /** @@ -819,7 +818,6 @@ protected function generate_asset( $asset ) { default: return null; } - } /** @@ -857,7 +855,7 @@ protected function generate_asset_mutate_mock( string $type, array $asset ) { $this->service_client->expects( $this->once() ) ->method( 'mutate' ) ->willReturnCallback( - function( int $ads_id, array $operations ) use ( $type, $response, $asset ) { + function ( int $ads_id, array $operations ) use ( $type, $response, $asset ) { // Assert that the asset group operation is the right type. $operations_names = []; foreach ( $operations as $operation ) { @@ -874,14 +872,13 @@ function( int $ads_id, array $operations ) use ( $type, $response, $asset ) { return $response; } ); - } protected function generate_asset_batch_mutate_mock( $matcher, $asset_batches_callback ) { $this->service_client->expects( $matcher ) ->method( 'mutate' ) ->willReturnCallback( - function( int $ads_id, array $operations ) use ( $matcher, $asset_batches_callback ) { + function ( int $ads_id, array $operations ) use ( $matcher, $asset_batches_callback ) { $responses = []; $asset_batches_callback( $matcher, $operations ); @@ -897,10 +894,8 @@ function( int $ads_id, array $operations ) use ( $matcher, $asset_batches_callba return ( new MutateGoogleAdsResponse() )->setMutateOperationResponses( $responses ); - } ); - } /** @@ -958,7 +953,4 @@ private function generate_create_asset_group_asset_operations( $asset_group_asse return $asset_group_asset_operations; } - - - } diff --git a/tests/Tools/HelperTrait/GuzzleClientTrait.php b/tests/Tools/HelperTrait/GuzzleClientTrait.php index 2afbcaae96..d5ef45e976 100644 --- a/tests/Tools/HelperTrait/GuzzleClientTrait.php +++ b/tests/Tools/HelperTrait/GuzzleClientTrait.php @@ -184,6 +184,5 @@ protected function generate_account_review_mock( $merchant_accounts_response, $a $result, ) ); - } } diff --git a/tests/Tools/HelperTrait/MerchantTrait.php b/tests/Tools/HelperTrait/MerchantTrait.php index 94e25a6896..797ad96c0e 100644 --- a/tests/Tools/HelperTrait/MerchantTrait.php +++ b/tests/Tools/HelperTrait/MerchantTrait.php @@ -97,5 +97,4 @@ public function get_status_website_claimed( bool $claimed = true ): AccountStatu return $status; } - } diff --git a/tests/Tools/HelperTrait/ProductTrait.php b/tests/Tools/HelperTrait/ProductTrait.php index 19edb771cb..c51755fe6c 100644 --- a/tests/Tools/HelperTrait/ProductTrait.php +++ b/tests/Tools/HelperTrait/ProductTrait.php @@ -31,18 +31,18 @@ public function generate_variable_product_mock( int $number_of_variations = 3 ) $id = rand(); $children = []; - for ( $i = 0; $i < $number_of_variations; $i ++ ) { + for ( $i = 0; $i < $number_of_variations; $i++ ) { $child = $this->createMock( WC_Product_Variation::class ); $child->expects( $this->any() ) - ->method( 'get_id' ) - ->willReturn( rand() ); + ->method( 'get_id' ) + ->willReturn( rand() ); $child->expects( $this->any() ) - ->method( 'get_parent_id' ) - ->willReturn( $id ); + ->method( 'get_parent_id' ) + ->willReturn( $id ); $child->expects( $this->any() ) - ->method( 'get_type' ) - ->willReturn( 'variation' ); + ->method( 'get_type' ) + ->willReturn( 'variation' ); $children[] = $child; } @@ -194,7 +194,7 @@ public function create_multiple_simple_product_sets( ...$product_count ): array */ public function create_simple_product_set( int $product_count ): array { $products = []; - for ( $i = 1; $i <= $product_count; $i ++ ) { + for ( $i = 1; $i <= $product_count; $i++ ) { $product = WC_Helper_Product::create_simple_product(); $products[ $product->get_id() ] = $product; } diff --git a/tests/Unit/API/ClientTest.php b/tests/Unit/API/ClientTest.php index b723fdcbd0..66c71a679b 100644 --- a/tests/Unit/API/ClientTest.php +++ b/tests/Unit/API/ClientTest.php @@ -39,11 +39,10 @@ public function test_plugin_version_headers(): void { $request = new Request( 'GET', 'https://testing.local' ); $service->add_plugin_version_header()( - function( $request, $options ) { + function ( $request, $options ) { $this->assertEquals( $this->get_client_name(), $request->getHeader( 'x-client-name' )[0] ); $this->assertEquals( $this->get_version(), $request->getHeader( 'x-client-version' )[0] ); } )( $request, [] ); - } } diff --git a/tests/Unit/API/Google/AdsAssetGroupAssetTest.php b/tests/Unit/API/Google/AdsAssetGroupAssetTest.php index fcfa0f6792..648be59b84 100644 --- a/tests/Unit/API/Google/AdsAssetGroupAssetTest.php +++ b/tests/Unit/API/Google/AdsAssetGroupAssetTest.php @@ -105,7 +105,6 @@ public function test_get_asset_groups_assets() { $this->generate_ads_asset_group_asset_query_mock( $asset_group_asset_data ); $this->assertEquals( $expected, $this->asset_group_asset->get_assets_by_asset_group_ids( [ self::TEST_CAMPAIGN_ID ] ) ); - } public function test_asset_group_assets_without_asset_groups() { @@ -162,7 +161,6 @@ public function test_get_asset_groups_assets_by_final_url() { $this->generate_ads_asset_group_asset_query_mock( $asset_group_asset_data ); $this->assertEquals( $expected, $this->asset_group_asset->get_assets_by_final_url( 'https://example.com' ) ); - } public function test_get_asset_groups_assets_by_final_url_firt_result() { @@ -206,7 +204,6 @@ public function test_get_asset_groups_assets_by_final_url_firt_result() { $this->generate_ads_asset_group_asset_query_mock( $asset_group_asset_data ); $this->assertEquals( $expected, $this->asset_group_asset->get_assets_by_final_url( 'https://example.com', true ) ); - } @@ -256,7 +253,6 @@ public function test_edit_asset_group_assets_with_update_assets() { $this->assertEquals( ResourceNames::forAssetGroupAsset( $this->options->get_ads_id(), self::TEST_ASSET_GROUP_ID, self::TEST_ASSET_ID, AssetFieldType::name( AssetFieldType::LANDSCAPE_LOGO ) ), ( $grouped_operations['asset_group_asset_operation']['remove'][0] )->getRemove() ); $this->assertEquals( ResourceNames::forAssetGroupAsset( $this->options->get_ads_id(), self::TEST_ASSET_GROUP_ID, $assets[0]['id'], AssetFieldType::name( $assets[0]['field_type'] ) ), ( $grouped_operations['asset_group_asset_operation']['remove'][1] )->getRemove() ); $this->assertEquals( ResourceNames::forAssetGroupAsset( $this->options->get_ads_id(), self::TEST_ASSET_GROUP_ID, $assets[1]['id'], AssetFieldType::name( $assets[1]['field_type'] ) ), ( $grouped_operations['asset_group_asset_operation']['remove'][2] )->getRemove() ); - } public function test_edit_asset_group_assets_create_assets() { @@ -294,7 +290,6 @@ public function test_edit_asset_group_assets_create_assets() { // We should not remove old assets. $this->assertArrayNotHasKey( 'remove', $grouped_operations['asset_group_asset_operation'] ); - } public function test_edit_asset_group_assets_delete_assets() { @@ -330,7 +325,6 @@ public function test_edit_asset_group_assets_delete_assets() { // We should not create assets. $this->assertArrayNotHasKey( 'create', $grouped_operations['asset_group_asset_operation'] ); - } protected function generate_overridable_asset(): void { @@ -386,6 +380,4 @@ protected function group_operations( array $operations ): array { return $grouped_operations; } - - } diff --git a/tests/Unit/API/Google/AdsAssetGroupTest.php b/tests/Unit/API/Google/AdsAssetGroupTest.php index 13f5568523..afa425964c 100644 --- a/tests/Unit/API/Google/AdsAssetGroupTest.php +++ b/tests/Unit/API/Google/AdsAssetGroupTest.php @@ -124,7 +124,6 @@ public function test_get_asset_groups_by_campaign_id_with_assets() { $this->generate_ads_asset_groups_query_mock( $asset_group_data ); $this->assertEquals( $asset_group_data, $this->asset_group->get_asset_groups_by_campaign_id( self::TEST_CAMPAIGN_ID ) ); - } public function test_get_asset_groups_by_campaign_id_without_assets() { @@ -147,7 +146,6 @@ public function test_get_asset_groups_by_campaign_id_without_assets() { $this->generate_ads_asset_groups_query_mock( $asset_group_data ); $this->assertEquals( $asset_group_data, $this->asset_group->get_asset_groups_by_campaign_id( self::TEST_CAMPAIGN_ID, $include_assets ) ); - } public function test_edit_asset_group_with_asset() { @@ -269,7 +267,4 @@ public function test_create_asset_group_exception() { $this->assertEquals( 400, $e->getCode() ); } } - - - } diff --git a/tests/Unit/API/Google/AdsAssetTest.php b/tests/Unit/API/Google/AdsAssetTest.php index 08bcb3f717..955c535550 100644 --- a/tests/Unit/API/Google/AdsAssetTest.php +++ b/tests/Unit/API/Google/AdsAssetTest.php @@ -120,7 +120,6 @@ public function test_create_assets_call_to_action_asset() { $this->generate_asset_mutate_mock( 'create', $data ); $this->assertEquals( $this->generate_asset_resource_name( $data['id'] ), $this->asset->create_assets( [ $data ] )[0] ); - } public function test_create_assets_image_asset() { @@ -142,7 +141,6 @@ public function test_create_assets_image_asset() { $this->generate_asset_mutate_mock( 'create', $data ); $this->assertEquals( $this->generate_asset_resource_name( $data['id'] ), $this->asset->create_assets( [ $data ] )[0] ); - } public function test_create_assets_image_asset_exception() { @@ -173,7 +171,6 @@ public function test_create_assets_invalid_asset_field_type() { $this->expectExceptionMessage( 'Asset Field type not supported' ); $this->asset->create_assets( [ $data ], self::TEMPORARY_ID ); - } public function test_create_one_batch() { @@ -197,13 +194,11 @@ public function test_create_one_batch() { } $this->assert_asset_content( $operations, $assets, $index ); - }; $matcher = $this->exactly( 1 ); $this->generate_asset_batch_mutate_mock( $matcher, $assert_batches ); $this->asset->create_assets( $assets ); - } public function test_create_batches_multiple() { @@ -236,13 +231,11 @@ public function test_create_batches_multiple() { } $this->assert_asset_content( $operations, $assets, $index ); - }; $matcher = $this->exactly( 3 ); $this->generate_asset_batch_mutate_mock( $matcher, $assert_batches ); $this->asset->create_assets( $assets, 5 * 1024 * 1024 ); - } /** @@ -255,7 +248,7 @@ public function test_create_batches_multiple() { protected function assert_asset_content( $operations, $assets, $starting_index = 0 ) { foreach ( $operations as $operation ) { $this->assertEquals( $assets[ $starting_index ]['content'], $this->get_asset_content( $operation->getAssetOperation()->getCreate(), $assets[ $starting_index ]['field_type'] ) ); - $starting_index++; + ++$starting_index; } } @@ -312,11 +305,10 @@ protected function get_wp_remote_responses( array $sizes, array $data ): array { 'headers' => new ArrayObject( [ 'content-length' => $size * 1024 * 1024 ] ), ]; - $index++; + ++$index; } return $responses; - } @@ -340,8 +332,4 @@ protected function get_test_assets( int $qty = 4 ): array { return $assets; } - - - - } diff --git a/tests/Unit/API/Google/AdsCampaignTest.php b/tests/Unit/API/Google/AdsCampaignTest.php index 333c361f7a..69e544d71c 100644 --- a/tests/Unit/API/Google/AdsCampaignTest.php +++ b/tests/Unit/API/Google/AdsCampaignTest.php @@ -624,5 +624,4 @@ public function test_get_campaign_convert_status_refresh_cache_no_update_time() $this->generate_ads_campaign_query_mock( $campaigns_data, [] ); $this->assertEquals( 'unconverted', $this->campaign->get_campaign_convert_status() ); } - } diff --git a/tests/Unit/API/Google/AdsConversionActionTest.php b/tests/Unit/API/Google/AdsConversionActionTest.php index 99b4e5d8ae..8a971d071b 100644 --- a/tests/Unit/API/Google/AdsConversionActionTest.php +++ b/tests/Unit/API/Google/AdsConversionActionTest.php @@ -157,5 +157,4 @@ public function test_get_conversion_action_api_exception() { $this->conversion_action->get_conversion_action( self::TEST_CONVERSION_ACTION_ID ); } - } diff --git a/tests/Unit/API/Google/AdsReportTest.php b/tests/Unit/API/Google/AdsReportTest.php index 6a46253c5c..d9e4b6d477 100644 --- a/tests/Unit/API/Google/AdsReportTest.php +++ b/tests/Unit/API/Google/AdsReportTest.php @@ -703,5 +703,4 @@ public function test_get_report_data_converted_campaigns() { $this->report->get_report_data( $report_type, $report_args ) ); } - } diff --git a/tests/Unit/API/Google/AdsTest.php b/tests/Unit/API/Google/AdsTest.php index a04fe8fa44..9a6fbaaf0f 100644 --- a/tests/Unit/API/Google/AdsTest.php +++ b/tests/Unit/API/Google/AdsTest.php @@ -282,5 +282,4 @@ public function test_update_billing_url() { ->willReturn( true ); $this->assertTrue( $this->ads->update_billing_url( self::TEST_BILLING_URL ) ); } - } diff --git a/tests/Unit/API/Google/MerchantMetricsTest.php b/tests/Unit/API/Google/MerchantMetricsTest.php index cc73fda6b5..d3176c6bba 100644 --- a/tests/Unit/API/Google/MerchantMetricsTest.php +++ b/tests/Unit/API/Google/MerchantMetricsTest.php @@ -160,5 +160,4 @@ public function test_get_ads_metrics_with_no_ads_id() { $this->assertSame( [], $this->metrics->get_ads_metrics() ); } - } diff --git a/tests/Unit/API/Google/MerchantTest.php b/tests/Unit/API/Google/MerchantTest.php index 55c06c02c4..f7c0b896d1 100644 --- a/tests/Unit/API/Google/MerchantTest.php +++ b/tests/Unit/API/Google/MerchantTest.php @@ -336,7 +336,7 @@ public function test_get_productstatuses_batch() { ->method( 'custombatch' ) ->with( $this->callback( - function( ProductstatusesCustomBatchRequest $request ) { + function ( ProductstatusesCustomBatchRequest $request ) { $this->assertEquals( [ 'batchId' => 3, @@ -408,7 +408,7 @@ public function test_link_ads_id() { ->method( 'setAdsLinks' ) ->with( $this->callback( - function( array $links ) use ( $ads_id ) { + function ( array $links ) use ( $ads_id ) { $this->assertEquals( $ads_id, $links[0]->getAdsId() ); $this->assertEquals( 'active', $links[0]->getStatus() ); @@ -519,5 +519,4 @@ private function mock_get_account_status_exception( GoogleException $exception ) ->with( $this->merchant_id, $this->merchant_id ) ->will( $this->throwException( $exception ) ); } - } diff --git a/tests/Unit/API/Google/MiddlewareTest.php b/tests/Unit/API/Google/MiddlewareTest.php index 0d5fc770f9..78a82063cb 100644 --- a/tests/Unit/API/Google/MiddlewareTest.php +++ b/tests/Unit/API/Google/MiddlewareTest.php @@ -450,5 +450,4 @@ public function test_get_account_review_status_error() { $this->middleware->get_account_review_status(); } - } diff --git a/tests/Unit/API/Google/SiteVerificationTest.php b/tests/Unit/API/Google/SiteVerificationTest.php index 1e1af42502..f97b800bb6 100644 --- a/tests/Unit/API/Google/SiteVerificationTest.php +++ b/tests/Unit/API/Google/SiteVerificationTest.php @@ -140,5 +140,4 @@ protected function mock_service_insert() { $this->verification_service->webResource->expects( $this->once() ) ->method( 'insert' ); } - } diff --git a/tests/Unit/API/Site/Controllers/Ads/AccountControllerTest.php b/tests/Unit/API/Site/Controllers/Ads/AccountControllerTest.php index 499c15fe36..7326d3dca2 100644 --- a/tests/Unit/API/Site/Controllers/Ads/AccountControllerTest.php +++ b/tests/Unit/API/Site/Controllers/Ads/AccountControllerTest.php @@ -214,5 +214,4 @@ public function test_get_billing_status() { $this->assertEquals( self::TEST_BILLING_STATUS_DATA, $response->get_data() ); $this->assertEquals( 200, $response->get_status() ); } - } diff --git a/tests/Unit/API/Site/Controllers/Ads/AssetGroupControllerTest.php b/tests/Unit/API/Site/Controllers/Ads/AssetGroupControllerTest.php index b15dfd0684..d512966658 100644 --- a/tests/Unit/API/Site/Controllers/Ads/AssetGroupControllerTest.php +++ b/tests/Unit/API/Site/Controllers/Ads/AssetGroupControllerTest.php @@ -169,7 +169,4 @@ public function test_create_asset_group_with_api_exception() { $this->assertEquals( 'error', $response->get_data()['message'] ); $this->assertEquals( 400, $response->get_status() ); } - - - } diff --git a/tests/Unit/API/Site/Controllers/Ads/AssetSuggestionsControllerTest.php b/tests/Unit/API/Site/Controllers/Ads/AssetSuggestionsControllerTest.php index 18327d4df7..c40fc508e2 100644 --- a/tests/Unit/API/Site/Controllers/Ads/AssetSuggestionsControllerTest.php +++ b/tests/Unit/API/Site/Controllers/Ads/AssetSuggestionsControllerTest.php @@ -112,6 +112,4 @@ public function test_get_assets_suggestions_with_invalid_id() { $this->assertEquals( 'Invalid ID', $response->get_data()['message'] ); $this->assertEquals( 400, $response->get_status() ); } - - } diff --git a/tests/Unit/API/Site/Controllers/Ads/CampaignControllerTest.php b/tests/Unit/API/Site/Controllers/Ads/CampaignControllerTest.php index ba7df55b39..2984072b4e 100644 --- a/tests/Unit/API/Site/Controllers/Ads/CampaignControllerTest.php +++ b/tests/Unit/API/Site/Controllers/Ads/CampaignControllerTest.php @@ -202,7 +202,7 @@ public function test_create_campaign_without_name() { $this->ads_campaign->expects( $this->once() ) ->method( 'create_campaign' ) ->willReturnCallback( - function( array $data ) use ( $campaign_data, $expected ) { + function ( array $data ) use ( $campaign_data, $expected ) { $name = $data['name']; unset( $data['name'] ); diff --git a/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingDataControllerTest.php b/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingDataControllerTest.php index 8612418f11..2818cdd8d6 100644 --- a/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingDataControllerTest.php +++ b/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingDataControllerTest.php @@ -83,5 +83,4 @@ public function test_sources_route() { $response->get_data() ); } - } diff --git a/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingRulesControllerTest.php b/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingRulesControllerTest.php index db62b21779..be21cbc348 100644 --- a/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingRulesControllerTest.php +++ b/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingRulesControllerTest.php @@ -59,7 +59,6 @@ public function setUp(): void { $this->attribute_mapping_rules_query = $this->createMock( AttributeMappingRulesQuery::class ); $this->controller = new AttributeMappingRulesController( $this->server, $this->attribute_mapping_helper, $this->attribute_mapping_rules_query ); $this->controller->register(); - } @@ -160,7 +159,6 @@ public function test_get_rules_pagination() { ], $response->get_headers() ); - } public function test_create_rule_route() { @@ -273,7 +271,6 @@ private function validate_post_route( $route, $method ) { ] ); $this->assertEquals( 400, $response->get_status() ); - } public function test_delete_rule_route() { diff --git a/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingSyncerControllerTest.php b/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingSyncerControllerTest.php index f1f3f6ccc0..4734af727d 100644 --- a/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingSyncerControllerTest.php +++ b/tests/Unit/API/Site/Controllers/AttributeMapping/AttributeMappingSyncerControllerTest.php @@ -102,5 +102,4 @@ public function test_is_syncing_route_last_sync() { $response->get_data() ); } - } diff --git a/tests/Unit/API/Site/Controllers/CountryCodeTraitTest.php b/tests/Unit/API/Site/Controllers/CountryCodeTraitTest.php index adc7705aac..276f410df1 100644 --- a/tests/Unit/API/Site/Controllers/CountryCodeTraitTest.php +++ b/tests/Unit/API/Site/Controllers/CountryCodeTraitTest.php @@ -40,7 +40,7 @@ public function setUp(): void { $this->iso_provider = $this->createMock( ISO3166DataProvider::class ); $this->google_helper = $this->createMock( GoogleHelper::class ); - // phpcs:ignore WordPress.Classes.ClassInstantiation.MissingParenthesis + // phpcs:ignore Universal.Classes.RequireAnonClassParentheses.Missing $this->trait = new class { use CountryCodeTrait { get_country_code_sanitize_callback as public; diff --git a/tests/Unit/API/Site/Controllers/Jetpack/AccountControllerTest.php b/tests/Unit/API/Site/Controllers/Jetpack/AccountControllerTest.php index 2390a7e215..57b18b08cb 100644 --- a/tests/Unit/API/Site/Controllers/Jetpack/AccountControllerTest.php +++ b/tests/Unit/API/Site/Controllers/Jetpack/AccountControllerTest.php @@ -180,5 +180,4 @@ public function test_disconnected() { ); $this->assertEquals( 200, $response->get_status() ); } - } diff --git a/tests/Unit/API/Site/Controllers/MerchantCenter/AccountControllerTest.php b/tests/Unit/API/Site/Controllers/MerchantCenter/AccountControllerTest.php index 6161338a4b..e175b465f4 100644 --- a/tests/Unit/API/Site/Controllers/MerchantCenter/AccountControllerTest.php +++ b/tests/Unit/API/Site/Controllers/MerchantCenter/AccountControllerTest.php @@ -217,5 +217,4 @@ public function test_disconnect_account() { ); $this->assertEquals( 200, $response->get_status() ); } - } diff --git a/tests/Unit/API/Site/Controllers/MerchantCenter/PhoneVerificationControllerTest.php b/tests/Unit/API/Site/Controllers/MerchantCenter/PhoneVerificationControllerTest.php index cf636efeec..aac57c7469 100644 --- a/tests/Unit/API/Site/Controllers/MerchantCenter/PhoneVerificationControllerTest.php +++ b/tests/Unit/API/Site/Controllers/MerchantCenter/PhoneVerificationControllerTest.php @@ -138,5 +138,4 @@ public function test_verify_phone_with_phone_verification_exception() { $response->get_data() ); } - } diff --git a/tests/Unit/API/Site/Controllers/MerchantCenter/RequestReviewControllerTest.php b/tests/Unit/API/Site/Controllers/MerchantCenter/RequestReviewControllerTest.php index 453f484784..6e53f75e0c 100644 --- a/tests/Unit/API/Site/Controllers/MerchantCenter/RequestReviewControllerTest.php +++ b/tests/Unit/API/Site/Controllers/MerchantCenter/RequestReviewControllerTest.php @@ -454,7 +454,7 @@ public function test_exception_in_status_route() { } public function test_exception_in_request_route() { - $this->middleware->expects( $this->once() ) + $this->middleware->expects( $this->once() ) ->method( 'get_account_review_status' ) ->willReturn( [ @@ -477,7 +477,6 @@ public function test_exception_in_request_route() { $response = $this->do_post_request_review(); $this->assertEquals( 'error', $response->get_data()['message'] ); $this->assertEquals( 401, $response->get_status() ); - } private function do_post_request_review() { diff --git a/tests/Unit/API/Site/Controllers/MerchantCenter/ShippingRateControllerTest.php b/tests/Unit/API/Site/Controllers/MerchantCenter/ShippingRateControllerTest.php index f55961c20b..5640d9547e 100644 --- a/tests/Unit/API/Site/Controllers/MerchantCenter/ShippingRateControllerTest.php +++ b/tests/Unit/API/Site/Controllers/MerchantCenter/ShippingRateControllerTest.php @@ -91,5 +91,4 @@ public function test_empty_options_array_is_returned_as_object() { // Confirm that the 'options' value is an object, not an array. $this->assertIsObject( $data[0]['options'] ); } - } diff --git a/tests/Unit/API/Site/Controllers/MerchantCenter/ShippingTimeBatchControllerTest.php b/tests/Unit/API/Site/Controllers/MerchantCenter/ShippingTimeBatchControllerTest.php index 36bb9141bd..fe05725ab5 100644 --- a/tests/Unit/API/Site/Controllers/MerchantCenter/ShippingTimeBatchControllerTest.php +++ b/tests/Unit/API/Site/Controllers/MerchantCenter/ShippingTimeBatchControllerTest.php @@ -46,7 +46,7 @@ public function setUp(): void { '/mc/shipping/times', [ 'methods' => TransportMethods::CREATABLE, - 'callback' => function( $request ) { + 'callback' => function ( $request ) { return new Response( $request->get_param( 'country_code' ), 201 ); }, ] diff --git a/tests/Unit/API/Site/Controllers/ToursControllerTest.php b/tests/Unit/API/Site/Controllers/ToursControllerTest.php index 323a825c1d..7f5b16d9a5 100644 --- a/tests/Unit/API/Site/Controllers/ToursControllerTest.php +++ b/tests/Unit/API/Site/Controllers/ToursControllerTest.php @@ -44,7 +44,6 @@ public function setUp(): void { $this->controller = new TourController( $this->server ); $this->controller->register(); $this->controller->set_options_object( $this->options ); - } diff --git a/tests/Unit/Admin/RedirectsTest.php b/tests/Unit/Admin/RedirectsTest.php index bfa9049bf5..c6e81ed0eb 100644 --- a/tests/Unit/Admin/RedirectsTest.php +++ b/tests/Unit/Admin/RedirectsTest.php @@ -52,17 +52,17 @@ public function test_maybe_redirect_to_onboarding(): void { $redirect_instance = $this->get_redirect_instance( [ 'is_current_wc_admin_page', 'redirect_to' ] ); $this->merchant_center->method( 'is_setup_complete' ) - ->willReturn( false ); + ->willReturn( false ); $this->assertFalse( $redirect_instance->maybe_redirect() ); $redirect_instance->method( 'is_current_wc_admin_page' ) - ->with( Dashboard::PATH ) - ->willReturn( true ); + ->with( Dashboard::PATH ) + ->willReturn( true ); $redirect_instance->expects( $this->once() ) - ->method( 'redirect_to' ) - ->with( GetStarted::PATH ); + ->method( 'redirect_to' ) + ->with( GetStarted::PATH ); $this->assertNull( $redirect_instance->maybe_redirect() ); } @@ -78,17 +78,17 @@ public function test_maybe_redirect_to_dashboard(): void { $redirect_instance = $this->get_redirect_instance( [ 'is_current_wc_admin_page', 'redirect_to' ] ); $this->merchant_center->method( 'is_setup_complete' ) - ->willReturn( true ); + ->willReturn( true ); $this->assertFalse( $redirect_instance->maybe_redirect() ); $redirect_instance->method( 'is_current_wc_admin_page' ) - ->with( GetStarted::PATH ) - ->willReturn( true ); + ->with( GetStarted::PATH ) + ->willReturn( true ); $redirect_instance->expects( $this->once() ) - ->method( 'redirect_to' ) - ->with( Dashboard::PATH ); + ->method( 'redirect_to' ) + ->with( Dashboard::PATH ); $this->assertNull( $redirect_instance->maybe_redirect() ); } @@ -116,9 +116,9 @@ public function test_is_current_wc_admin_page(): void { */ private function get_redirect_instance( $only_methods = [] ): object { $instance = $this->getMockBuilder( Redirect::class ) - ->setConstructorArgs( [ $this->wp ] ) - ->onlyMethods( $only_methods ) - ->getMock(); + ->setConstructorArgs( [ $this->wp ] ) + ->onlyMethods( $only_methods ) + ->getMock(); $instance->set_options_object( $this->options ); $instance->set_merchant_center_object( $this->merchant_center ); diff --git a/tests/Unit/Ads/AccountServiceTest.php b/tests/Unit/Ads/AccountServiceTest.php index 7a2fdcc1f4..8fc93eeda0 100644 --- a/tests/Unit/Ads/AccountServiceTest.php +++ b/tests/Unit/Ads/AccountServiceTest.php @@ -481,5 +481,4 @@ public function test_disconnect() { $this->account->disconnect(); } - } diff --git a/tests/Unit/Ads/AdsServiceTest.php b/tests/Unit/Ads/AdsServiceTest.php index b6b6e09ea0..87ff1f8eb2 100644 --- a/tests/Unit/Ads/AdsServiceTest.php +++ b/tests/Unit/Ads/AdsServiceTest.php @@ -37,7 +37,6 @@ public function setUp(): void { $this->ads_service = new AdsService( $this->state ); $this->ads_service->set_options_object( $this->options ); - } public function test_is_setup_started() { @@ -47,7 +46,6 @@ public function test_is_setup_started() { ->willReturn( null ); $this->assertTrue( $this->ads_service->is_setup_started() ); - } public function test_is_setup_started_last_incomplete_step_is_empty() { @@ -57,7 +55,6 @@ public function test_is_setup_started_last_incomplete_step_is_empty() { ->willReturn( null ); $this->assertFalse( $this->ads_service->is_setup_started() ); - } public function test_is_setup_started_already_completed() { @@ -67,7 +64,5 @@ public function test_is_setup_started_already_completed() { ->willReturn( 123 ); $this->assertFalse( $this->ads_service->is_setup_started() ); - } } - diff --git a/tests/Unit/Ads/AssetSuggestionsServiceTest.php b/tests/Unit/Ads/AssetSuggestionsServiceTest.php index 5ac183aa03..635f04f0c0 100644 --- a/tests/Unit/Ads/AssetSuggestionsServiceTest.php +++ b/tests/Unit/Ads/AssetSuggestionsServiceTest.php @@ -138,7 +138,6 @@ public function setUp(): void { // Disable logo image by default. There is a specific test for the logo asset. add_filter( 'theme_mod_custom_logo', '__return_false' ); - } protected function format_url_post_item( $post ) { @@ -183,7 +182,6 @@ protected function format_post_asset_response( $post, array $marketing_images = ], $this->get_suggestions_common_fields( $marketing_images ) ); - } protected function format_term_asset_response( $term, array $marketing_images = [] ): array { @@ -197,7 +195,6 @@ protected function format_term_asset_response( $term, array $marketing_images = ], $this->get_suggestions_common_fields( $marketing_images ) ); - } protected function get_suggestions_common_fields( $marketing_images ) { @@ -209,7 +206,6 @@ protected function get_suggestions_common_fields( $marketing_images ) { AssetFieldType::PORTRAIT_MARKETING_IMAGE => $marketing_images[ self::PORTRAIT_MARKETING_IMAGE_KEY ] ?? [], AssetFieldType::CALL_TO_ACTION_SELECTION => null, ]; - } protected function update_size_image( int $attachmend_id, DimensionUtility $size, array $size_types = [] ): void { @@ -503,7 +499,6 @@ public function test_get_post_assets_for_products() { $images[ self::PORTRAIT_MARKETING_IMAGE_KEY ] = [ wp_get_attachment_image_url( $image_id, self::PORTRAIT_MARKETING_IMAGE_KEY ) ]; $this->assertEquals( $this->format_post_asset_response( $post, $images ), $this->asset_suggestions->get_assets_suggestions( $post->ID, 'post' ) ); - } public function test_get_shop_assets() { @@ -637,7 +632,6 @@ public function test_get_term_with_product() { $images[ self::PORTRAIT_MARKETING_IMAGE_KEY ] = [ wp_get_attachment_image_url( $image_post_2 ) ]; $this->assertEquals( $this->format_term_asset_response( $this->term, $images ), $this->asset_suggestions->get_assets_suggestions( $this->term->term_id, 'term' ) ); - } public function test_get_term_without_product() { @@ -652,7 +646,6 @@ public function test_get_term_without_product() { ->willReturnOnConsecutiveCalls( $posts_ids_assigned_to_term, [] ); $this->assertEquals( $this->format_term_asset_response( $this->term ), $this->asset_suggestions->get_assets_suggestions( $this->term->term_id, 'term' ) ); - } public function test_get_term_without_assigned_posts() { @@ -666,7 +659,6 @@ public function test_get_term_without_assigned_posts() { ->willReturn( $posts_ids_assigned_to_term ); $this->assertEquals( $this->format_term_asset_response( $this->term, [] ), $this->asset_suggestions->get_assets_suggestions( $this->term->term_id, 'term' ) ); - } public function test_get_invalid_term_id() { @@ -679,7 +671,7 @@ public function test_assets_with_logo() { add_filter( 'theme_mod_custom_logo', - function() use ( $image_id ) { + function () use ( $image_id ) { return $image_id; } ); @@ -696,7 +688,6 @@ function() use ( $image_id ) { $images[ self::LOGO_IMAGE_KEY ] = [ wp_get_attachment_image_url( $image_id ) ]; $this->assertEquals( $this->format_post_asset_response( $this->post, $images ), $this->asset_suggestions->get_assets_suggestions( $this->post->ID, 'post' ) ); - } @@ -722,7 +713,6 @@ public function tests_assets_with_similar_size() { $images[ self::PORTRAIT_MARKETING_IMAGE_KEY ] = [ wp_get_attachment_image_url( $image_id ) ]; $this->assertEquals( $this->format_post_asset_response( $this->post, $images ), $this->asset_suggestions->get_assets_suggestions( $this->post->ID, 'post' ) ); - } public function tests_assets_image_too_small_size() { @@ -747,7 +737,6 @@ public function tests_assets_image_too_small_size() { $images[ self::PORTRAIT_MARKETING_IMAGE_KEY ] = []; $this->assertEquals( $this->format_post_asset_response( $this->post, $images ), $this->asset_suggestions->get_assets_suggestions( $this->post->ID, 'post' ) ); - } public function test_get_asset_suggestions_with_empty_asset_group() { @@ -757,7 +746,6 @@ public function test_get_asset_suggestions_with_empty_asset_group() { ->willReturn( [] ); $this->assertEquals( $this->format_post_asset_response( $this->post ), $this->asset_suggestions->get_assets_suggestions( $this->post->ID, 'post' ) ); - } public function test_get_asset_suggestions_with_assets_from_asset_group() { @@ -780,7 +768,6 @@ public function test_get_asset_suggestions_with_assets_from_asset_group() { ]; $this->assertEquals( array_merge( $this->get_suggestions_common_fields( [] ), $expected ), $this->asset_suggestions->get_assets_suggestions( $this->post->ID, 'post' ) ); - } public function test_get_asset_suggestions_with_assets_from_asset_group_empty_call_to_action() { @@ -802,7 +789,5 @@ public function test_get_asset_suggestions_with_assets_from_asset_group_empty_ca ]; $this->assertEquals( array_merge( $this->get_suggestions_common_fields( [] ), $expected ), $this->asset_suggestions->get_assets_suggestions( $this->post->ID, 'post' ) ); - } - } diff --git a/tests/Unit/Coupon/CouponMetaHandlerTest.php b/tests/Unit/Coupon/CouponMetaHandlerTest.php index 928e14c702..60ba61e277 100644 --- a/tests/Unit/Coupon/CouponMetaHandlerTest.php +++ b/tests/Unit/Coupon/CouponMetaHandlerTest.php @@ -53,22 +53,22 @@ public function test_magic_call() { $value = 12345; $coupon_meta_handler = $this->getMockBuilder( CouponMetaHandler::class ) - ->setMethodsExcept( [ '__call' ] ) - ->getMock(); + ->setMethodsExcept( [ '__call' ] ) + ->getMock(); $coupon_meta_handler->expects( $this->once() ) - ->method( 'update' ) - ->with( $this->equalTo( $coupon ), $this->equalTo( $key ), $this->equalTo( $value ) ); + ->method( 'update' ) + ->with( $this->equalTo( $coupon ), $this->equalTo( $key ), $this->equalTo( $value ) ); $coupon_meta_handler->update_synced_at( $coupon, $value ); $coupon_meta_handler->expects( $this->once() ) - ->method( 'get' ) - ->with( $this->equalTo( $coupon ), $this->equalTo( $key ) ); + ->method( 'get' ) + ->with( $this->equalTo( $coupon ), $this->equalTo( $key ) ); $coupon_meta_handler->get_synced_at( $coupon ); $coupon_meta_handler->expects( $this->once() ) - ->method( 'delete' ) - ->with( $this->equalTo( $coupon ), $this->equalTo( $key ) ); + ->method( 'delete' ) + ->with( $this->equalTo( $coupon ), $this->equalTo( $key ) ); $coupon_meta_handler->delete_synced_at( $coupon ); } diff --git a/tests/Unit/Coupon/CouponSyncerTest.php b/tests/Unit/Coupon/CouponSyncerTest.php index 8bc4896770..004062a065 100644 --- a/tests/Unit/Coupon/CouponSyncerTest.php +++ b/tests/Unit/Coupon/CouponSyncerTest.php @@ -177,8 +177,8 @@ public function setUp(): void { $this->target_audience = $this->createMock( TargetAudience::class ); $this->target_audience->expects( $this->any() ) - ->method( 'get_main_target_country' ) - ->willReturn( $this->get_sample_target_country() ); + ->method( 'get_main_target_country' ) + ->willReturn( $this->get_sample_target_country() ); $this->google_service = $this->createMock( GooglePromotionService::class ); $this->validator = $this->createMock( ValidatorInterface::class ); diff --git a/tests/Unit/DB/Migration/MigratorTest.php b/tests/Unit/DB/Migration/MigratorTest.php index c97f862a65..49b9af86dd 100644 --- a/tests/Unit/DB/Migration/MigratorTest.php +++ b/tests/Unit/DB/Migration/MigratorTest.php @@ -17,7 +17,7 @@ class MigratorTest extends UnitTest { public function test_does_not_run_migrations_if_no_version_change() { $mock_migration_1 = $this->createMock( MigrationInterface::class ); $mock_migration_1->expects( $this->never() ) - ->method( 'apply' ); + ->method( 'apply' ); $migrator = new Migrator( [ $mock_migration_1 ] ); @@ -27,38 +27,38 @@ public function test_does_not_run_migrations_if_no_version_change() { public function test_runs_matching_migrations_if_version_increase() { $mock_migration_0 = $this->createMock( MigrationInterface::class ); $mock_migration_0->expects( $this->any() ) - ->method( 'get_applicable_version' ) - ->willReturn( '1.2.0' ); + ->method( 'get_applicable_version' ) + ->willReturn( '1.2.0' ); $mock_migration_0->expects( $this->once() ) - ->method( 'apply' ); + ->method( 'apply' ); $mock_migration_1 = $this->createMock( MigrationInterface::class ); $mock_migration_1->expects( $this->any() ) - ->method( 'get_applicable_version' ) - ->willReturn( '1.1.5' ); + ->method( 'get_applicable_version' ) + ->willReturn( '1.1.5' ); $mock_migration_1->expects( $this->once() ) - ->method( 'apply' ); + ->method( 'apply' ); $mock_migration_2 = $this->createMock( MigrationInterface::class ); $mock_migration_2->expects( $this->any() ) - ->method( 'get_applicable_version' ) - ->willReturn( '1.1.0' ); + ->method( 'get_applicable_version' ) + ->willReturn( '1.1.0' ); $mock_migration_2->expects( $this->once() ) - ->method( 'apply' ); + ->method( 'apply' ); $mock_migration_3 = $this->createMock( MigrationInterface::class ); $mock_migration_3->expects( $this->any() ) - ->method( 'get_applicable_version' ) - ->willReturn( '1.0.0' ); + ->method( 'get_applicable_version' ) + ->willReturn( '1.0.0' ); $mock_migration_3->expects( $this->never() ) - ->method( 'apply' ); + ->method( 'apply' ); $mock_migration_4 = $this->createMock( MigrationInterface::class ); $mock_migration_4->expects( $this->any() ) - ->method( 'get_applicable_version' ) - ->willReturn( '0.9.0' ); + ->method( 'get_applicable_version' ) + ->willReturn( '0.9.0' ); $mock_migration_4->expects( $this->never() ) - ->method( 'apply' ); + ->method( 'apply' ); $migrator = new Migrator( [ $mock_migration_0, $mock_migration_1, $mock_migration_2, $mock_migration_3, $mock_migration_4 ] ); diff --git a/tests/Unit/DB/Table/BudgetRecommendationTableTest.php b/tests/Unit/DB/Table/BudgetRecommendationTableTest.php index 776b25d405..ecf91f4b82 100644 --- a/tests/Unit/DB/Table/BudgetRecommendationTableTest.php +++ b/tests/Unit/DB/Table/BudgetRecommendationTableTest.php @@ -33,12 +33,12 @@ public function setUp(): void { $this->wp = $this->createMock( WP::class ); $this->wpdb = $this->getMockBuilder( wpdb::class ) - ->setMethods( [ 'query', 'prepare' ] ) - ->disableOriginalConstructor() - ->disableOriginalClone() - ->disableArgumentCloning() - ->disallowMockingUnknownTypes() - ->getMock(); + ->setMethods( [ 'query', 'prepare' ] ) + ->disableOriginalConstructor() + ->disableOriginalClone() + ->disableArgumentCloning() + ->disallowMockingUnknownTypes() + ->getMock(); $this->mock_budget_recommendation = $this->getMockBuilder( BudgetRecommendationTable::class ) ->setMethods( [ 'exists', 'truncate', 'get_sql_safe_name' ] ) @@ -54,11 +54,11 @@ public function setUp(): void { public function test_reload_data_when_table_exists() { $this->mock_budget_recommendation->expects( $this->once() ) - ->method( 'exists' ) - ->willReturn( true ); + ->method( 'exists' ) + ->willReturn( true ); $this->mock_budget_recommendation->expects( $this->once() ) - ->method( 'truncate' ); + ->method( 'truncate' ); $this->wpdb->expects( $this->atLeastOnce() ) ->method( 'query' ); @@ -70,37 +70,34 @@ public function test_reload_data_when_table_exists() { public function test_reload_data_when_table_does_not_exist() { $this->mock_budget_recommendation->expects( $this->once() ) - ->method( 'exists' ) - ->willReturn( false ); + ->method( 'exists' ) + ->willReturn( false ); $this->mock_budget_recommendation->expects( $this->exactly( 0 ) ) - ->method( 'truncate' ); + ->method( 'truncate' ); $this->wpdb->expects( $this->exactly( 0 ) ) - ->method( 'query' ); + ->method( 'query' ); $this->mock_budget_recommendation->reload_data(); $this->assertFalse( $this->mock_budget_recommendation->has_loaded_initial_data ); - } public function test_reload_data_when_table_exists_but_data_was_loaded_earlier() { $this->mock_budget_recommendation->expects( $this->once() ) - ->method( 'exists' ) - ->willReturn( true ); + ->method( 'exists' ) + ->willReturn( true ); $this->mock_budget_recommendation->expects( $this->exactly( 0 ) ) - ->method( 'truncate' ); + ->method( 'truncate' ); $this->wpdb->expects( $this->exactly( 0 ) ) - ->method( 'query' ); + ->method( 'query' ); // If the table has been deleted or if it is a first installation, the BudgetRecommendationTable::install loads the data $this->mock_budget_recommendation->has_loaded_initial_data = true; $this->mock_budget_recommendation->reload_data(); - } - } diff --git a/tests/Unit/Google/SiteVerificationMetaTest.php b/tests/Unit/Google/SiteVerificationMetaTest.php index 5488c277e5..39f83051dd 100644 --- a/tests/Unit/Google/SiteVerificationMetaTest.php +++ b/tests/Unit/Google/SiteVerificationMetaTest.php @@ -62,5 +62,4 @@ protected function get_wp_head() { do_action( 'wp_head' ); return ob_get_clean(); } - } diff --git a/tests/Unit/Integration/YoastWooCommerceSeoTest.php b/tests/Unit/Integration/YoastWooCommerceSeoTest.php index b550bc00de..c372d49076 100644 --- a/tests/Unit/Integration/YoastWooCommerceSeoTest.php +++ b/tests/Unit/Integration/YoastWooCommerceSeoTest.php @@ -211,5 +211,4 @@ public function test_get_gtin_multiple_products() { $this->assertEquals( self::TEST_GTIN, $adapted_one->getGtin() ); $this->assertEquals( '78901234', $adapted_two->getGtin() ); } - } diff --git a/tests/Unit/Jobs/UpdateShippingSettingsTest.php b/tests/Unit/Jobs/UpdateShippingSettingsTest.php index 293fc8abdc..a67b7f7e81 100644 --- a/tests/Unit/Jobs/UpdateShippingSettingsTest.php +++ b/tests/Unit/Jobs/UpdateShippingSettingsTest.php @@ -36,73 +36,73 @@ class UpdateShippingSettingsTest extends UnitTest { public function test_job_is_scheduled() { $this->merchant_center->expects( $this->any() ) - ->method( 'is_connected' ) - ->willReturn( true ); + ->method( 'is_connected' ) + ->willReturn( true ); $this->google_settings->expects( $this->any() ) - ->method( 'should_get_shipping_rates_from_woocommerce' ) - ->willReturn( true ); + ->method( 'should_get_shipping_rates_from_woocommerce' ) + ->willReturn( true ); $this->action_scheduler->expects( $this->once() ) - ->method( 'schedule_immediate' ) - ->with( $this->job->get_process_item_hook() ); + ->method( 'schedule_immediate' ) + ->with( $this->job->get_process_item_hook() ); $this->job->schedule(); } public function test_job_is_not_scheduled_if_shipping_not_set_to_automatic_sync() { $this->merchant_center->expects( $this->any() ) - ->method( 'is_connected' ) - ->willReturn( true ); + ->method( 'is_connected' ) + ->willReturn( true ); $this->google_settings->expects( $this->any() ) - ->method( 'should_get_shipping_rates_from_woocommerce' ) - ->willReturn( false ); + ->method( 'should_get_shipping_rates_from_woocommerce' ) + ->willReturn( false ); $this->action_scheduler->expects( $this->never() ) - ->method( 'schedule_immediate' ) - ->with( $this->job->get_process_item_hook() ); + ->method( 'schedule_immediate' ) + ->with( $this->job->get_process_item_hook() ); $this->job->schedule(); } public function test_job_is_not_scheduled_if_mc_not_connected() { $this->merchant_center->expects( $this->any() ) - ->method( 'is_connected' ) - ->willReturn( false ); + ->method( 'is_connected' ) + ->willReturn( false ); $this->google_settings->expects( $this->any() ) - ->method( 'should_get_shipping_rates_from_woocommerce' ) - ->willReturn( true ); + ->method( 'should_get_shipping_rates_from_woocommerce' ) + ->willReturn( true ); $this->action_scheduler->expects( $this->never() ) - ->method( 'schedule_immediate' ) - ->with( $this->job->get_process_item_hook() ); + ->method( 'schedule_immediate' ) + ->with( $this->job->get_process_item_hook() ); $this->job->schedule(); } public function test_process_items() { $this->merchant_center->expects( $this->any() ) - ->method( 'is_connected' ) - ->willReturn( true ); + ->method( 'is_connected' ) + ->willReturn( true ); $this->google_settings->expects( $this->any() ) - ->method( 'should_get_shipping_rates_from_woocommerce' ) - ->willReturn( true ); + ->method( 'should_get_shipping_rates_from_woocommerce' ) + ->willReturn( true ); $this->google_settings->expects( $this->once() ) - ->method( 'sync_shipping' ); + ->method( 'sync_shipping' ); do_action( $this->job->get_process_item_hook(), [] ); } public function test_process_items_fails_if_mc_not_connected() { $this->merchant_center->expects( $this->any() ) - ->method( 'is_connected' ) - ->willReturn( false ); + ->method( 'is_connected' ) + ->willReturn( false ); $this->google_settings->expects( $this->any() ) - ->method( 'should_get_shipping_rates_from_woocommerce' ) - ->willReturn( true ); + ->method( 'should_get_shipping_rates_from_woocommerce' ) + ->willReturn( true ); $this->google_settings->expects( $this->never() ) - ->method( 'sync_shipping' ); + ->method( 'sync_shipping' ); $this->expectException( JobException::class ); @@ -111,14 +111,14 @@ public function test_process_items_fails_if_mc_not_connected() { public function test_process_items_fails_if_shipping_not_set_to_automatic_sync() { $this->merchant_center->expects( $this->any() ) - ->method( 'is_connected' ) - ->willReturn( true ); + ->method( 'is_connected' ) + ->willReturn( true ); $this->google_settings->expects( $this->any() ) - ->method( 'should_get_shipping_rates_from_woocommerce' ) - ->willReturn( false ); + ->method( 'should_get_shipping_rates_from_woocommerce' ) + ->willReturn( false ); $this->google_settings->expects( $this->never() ) - ->method( 'sync_shipping' ); + ->method( 'sync_shipping' ); $this->expectException( JobException::class ); @@ -139,5 +139,4 @@ public function setUp(): void { $this->job->init(); } - } diff --git a/tests/Unit/MerchantCenter/AccountServiceTest.php b/tests/Unit/MerchantCenter/AccountServiceTest.php index 602e08b881..d759110129 100644 --- a/tests/Unit/MerchantCenter/AccountServiceTest.php +++ b/tests/Unit/MerchantCenter/AccountServiceTest.php @@ -724,5 +724,4 @@ public function test_disconnect() { $this->account->disconnect(); } - } diff --git a/tests/Unit/MerchantCenter/ContactInformationTest.php b/tests/Unit/MerchantCenter/ContactInformationTest.php index 3e7747f1cc..35ddd47849 100644 --- a/tests/Unit/MerchantCenter/ContactInformationTest.php +++ b/tests/Unit/MerchantCenter/ContactInformationTest.php @@ -42,16 +42,16 @@ public function setUp(): void { public function test_get_empty_contact_information() { $this->merchant->expects( $this->any() ) - ->method( 'get_account' ) - ->willReturn( $this->get_empty_account() ); + ->method( 'get_account' ) + ->willReturn( $this->get_empty_account() ); $this->assertNull( $this->contact_information->get_contact_information() ); } public function test_get_valid_contact_information() { $this->merchant->expects( $this->any() ) - ->method( 'get_account' ) - ->willReturn( $this->get_valid_account() ); + ->method( 'get_account' ) + ->willReturn( $this->get_valid_account() ); $contact_information = $this->contact_information->get_contact_information(); @@ -84,12 +84,12 @@ public function test_get_valid_contact_information() { public function test_update_address() { $this->merchant->expects( $this->any() ) - ->method( 'get_account' ) - ->willReturn( $this->get_valid_account() ); + ->method( 'get_account' ) + ->willReturn( $this->get_valid_account() ); $this->google_settings->expects( $this->any() ) - ->method( 'get_store_address' ) - ->willReturn( $this->get_sample_address() ); + ->method( 'get_store_address' ) + ->willReturn( $this->get_sample_address() ); $results = $this->contact_information->update_address_based_on_store_settings(); @@ -117,8 +117,8 @@ public function test_update_address() { public function test_get_account_exception() { $this->merchant->expects( $this->any() ) - ->method( 'get_account' ) - ->willThrowException( $this->get_google_exception() ); + ->method( 'get_account' ) + ->willThrowException( $this->get_google_exception() ); $this->expectExceptionObject( $this->get_google_exception() ); $this->contact_information->get_contact_information(); diff --git a/tests/Unit/MerchantCenter/MerchantCenterServiceTest.php b/tests/Unit/MerchantCenter/MerchantCenterServiceTest.php index 6af9a1adc0..cd3004ff39 100644 --- a/tests/Unit/MerchantCenter/MerchantCenterServiceTest.php +++ b/tests/Unit/MerchantCenter/MerchantCenterServiceTest.php @@ -624,5 +624,4 @@ public function test_has_at_least_one_synced_product() { $this->assertTrue( $this->mc_service->has_at_least_one_synced_product() ); } - } diff --git a/tests/Unit/MerchantCenter/PhoneVerificationTest.php b/tests/Unit/MerchantCenter/PhoneVerificationTest.php index 1bd3217e7e..b16a846a07 100644 --- a/tests/Unit/MerchantCenter/PhoneVerificationTest.php +++ b/tests/Unit/MerchantCenter/PhoneVerificationTest.php @@ -35,15 +35,15 @@ class PhoneVerificationTest extends UnitTest { public function test_request_phone_verification() { $this->iso_utility->expects( $this->any() ) - ->method( 'wp_locale_to_bcp47' ) - ->willReturn( 'fr-CA' ); + ->method( 'wp_locale_to_bcp47' ) + ->willReturn( 'fr-CA' ); $this->merchant->expects( $this->any() ) - ->method( 'request_phone_verification' ) - ->with( $this->anything(), $this->anything(), $this->anything(), $this->equalTo( 'fr-CA' ) ) - ->willReturn( 'some_verification_id' ); + ->method( 'request_phone_verification' ) + ->with( $this->anything(), $this->anything(), $this->anything(), $this->equalTo( 'fr-CA' ) ) + ->willReturn( 'some_verification_id' ); $this->iso_utility->expects( $this->any() ) - ->method( 'is_iso3166_alpha2_country_code' ) - ->willReturn( true ); + ->method( 'is_iso3166_alpha2_country_code' ) + ->willReturn( true ); $this->assertEquals( 'some_verification_id', @@ -53,8 +53,8 @@ public function test_request_phone_verification() { public function test_request_phone_verification_invalid_verification_method() { $this->iso_utility->expects( $this->any() ) - ->method( 'is_iso3166_alpha2_country_code' ) - ->willReturn( true ); + ->method( 'is_iso3166_alpha2_country_code' ) + ->willReturn( true ); $this->expectException( InvalidValue::class ); @@ -63,8 +63,8 @@ public function test_request_phone_verification_invalid_verification_method() { public function test_request_phone_verification_invalid_phone_region() { $this->iso_utility->expects( $this->any() ) - ->method( 'is_iso3166_alpha2_country_code' ) - ->willReturn( false ); + ->method( 'is_iso3166_alpha2_country_code' ) + ->willReturn( false ); $this->expectException( InvalidValue::class ); @@ -73,8 +73,8 @@ public function test_request_phone_verification_invalid_phone_region() { public function test_map_google_exception() { $this->iso_utility->expects( $this->any() ) - ->method( 'is_iso3166_alpha2_country_code' ) - ->willReturn( true ); + ->method( 'is_iso3166_alpha2_country_code' ) + ->willReturn( true ); $google_exception = new GoogleServiceException( 'Retries quota exceeded.', @@ -89,8 +89,8 @@ public function test_map_google_exception() { ] ); $this->merchant->expects( $this->any() ) - ->method( 'request_phone_verification' ) - ->willThrowException( $google_exception ); + ->method( 'request_phone_verification' ) + ->willThrowException( $google_exception ); $this->expectException( PhoneVerificationException::class ); $this->expectExceptionMessage( 'Retries quota exceeded.' ); diff --git a/tests/Unit/MerchantCenter/ValidateAddressTest.php b/tests/Unit/MerchantCenter/ValidateAddressTest.php index 9d1431ccd3..487b209473 100644 --- a/tests/Unit/MerchantCenter/ValidateAddressTest.php +++ b/tests/Unit/MerchantCenter/ValidateAddressTest.php @@ -117,6 +117,4 @@ public function test_address_with_multiple_no_required_empty_fields() { count( $errors ) ); } - - } diff --git a/tests/Unit/MultichannelMarketing/GLAChannelTest.php b/tests/Unit/MultichannelMarketing/GLAChannelTest.php index 9c7ff4294a..1e4ff71157 100644 --- a/tests/Unit/MultichannelMarketing/GLAChannelTest.php +++ b/tests/Unit/MultichannelMarketing/GLAChannelTest.php @@ -227,5 +227,4 @@ public function setUp(): void { $this->product_sync_stats ); } - } diff --git a/tests/Unit/Product/AttributeMapping/AttributeMappingWCProductAdapterTest.php b/tests/Unit/Product/AttributeMapping/AttributeMappingWCProductAdapterTest.php index 05a6d10427..528660be0d 100644 --- a/tests/Unit/Product/AttributeMapping/AttributeMappingWCProductAdapterTest.php +++ b/tests/Unit/Product/AttributeMapping/AttributeMappingWCProductAdapterTest.php @@ -364,7 +364,6 @@ public function test_rule_only_categories() { $this->assertEquals( '', $adapted_product->getBrand() ); $this->assertEquals( 'test', $adapted_product->getGtin() ); $this->assertEquals( '', $adapted_product->getMpn() ); - } /** diff --git a/tests/Unit/Product/BatchProductHelperTest.php b/tests/Unit/Product/BatchProductHelperTest.php index 1131f40272..7f47e48d91 100644 --- a/tests/Unit/Product/BatchProductHelperTest.php +++ b/tests/Unit/Product/BatchProductHelperTest.php @@ -189,11 +189,11 @@ public function test_validate_and_generate_update_request_entries() { $products = $this->create_and_return_supported_test_products(); $this->target_audience->expects( $this->any() ) - ->method( 'get_main_target_country' ) - ->willReturn( 'US' ); + ->method( 'get_main_target_country' ) + ->willReturn( 'US' ); $this->validator->expects( $this->any() ) - ->method( 'validate' ) - ->willReturn( [] ); + ->method( 'validate' ) + ->willReturn( [] ); $this->rules_query->expects( $this->any() ) ->method( 'get_results' ) @@ -233,28 +233,28 @@ public function test_validate_and_generate_update_request_entries_skips_invalid_ $invalid_product = $products[0]; $this->validator->expects( $this->any() ) - ->method( 'validate' ) - ->willReturnCallback( - function ( WCProductAdapter $product ) use ( $invalid_product ) { - if ( $product->get_wc_product()->get_id() === $invalid_product->get_id() ) { - $violation_example = $this->createMock( ConstraintViolation::class ); - $violations = new ConstraintViolationList(); - $violations->add( $violation_example ); - - return $violations; - } - - return []; - } - ); + ->method( 'validate' ) + ->willReturnCallback( + function ( WCProductAdapter $product ) use ( $invalid_product ) { + if ( $product->get_wc_product()->get_id() === $invalid_product->get_id() ) { + $violation_example = $this->createMock( ConstraintViolation::class ); + $violations = new ConstraintViolationList(); + $violations->add( $violation_example ); + + return $violations; + } + + return []; + } + ); $this->rules_query->expects( $this->any() ) ->method( 'get_results' ) ->willReturn( [] ); $this->target_audience->expects( $this->any() ) - ->method( 'get_main_target_country' ) - ->willReturn( 'US' ); + ->method( 'get_main_target_country' ) + ->willReturn( 'US' ); $results = $this->batch_product_helper->validate_and_generate_update_request_entries( $products ); @@ -280,11 +280,11 @@ public function test_validate_and_generate_update_request_entries_skips_not_sync } $this->target_audience->expects( $this->any() ) - ->method( 'get_main_target_country' ) - ->willReturn( 'US' ); + ->method( 'get_main_target_country' ) + ->willReturn( 'US' ); $this->validator->expects( $this->any() ) - ->method( 'validate' ) - ->willReturn( [] ); + ->method( 'validate' ) + ->willReturn( [] ); $this->rules_query->expects( $this->any() ) ->method( 'get_results' ) ->willReturn( [] ); @@ -316,11 +316,11 @@ public function test_generate_stale_products_request_entries() { $stale_product_id = $stale_product->get_id(); $this->target_audience->expects( $this->once() ) - ->method( 'get_target_countries' ) - ->willReturn( [ 'US' ] ); + ->method( 'get_target_countries' ) + ->willReturn( [ 'US' ] ); $this->target_audience->expects( $this->any() ) - ->method( 'get_main_target_country' ) - ->willReturn( 'US' ); + ->method( 'get_main_target_country' ) + ->willReturn( 'US' ); $stale_google_ids = [ 'AU' => "online:en:AU:gla_{$stale_product_id}", @@ -347,8 +347,8 @@ public function test_generate_stale_countries_request_entries() { $stale_product_id = $stale_product->get_id(); $this->target_audience->expects( $this->once() ) - ->method( 'get_main_target_country' ) - ->willReturn( 'US' ); + ->method( 'get_main_target_country' ) + ->willReturn( 'US' ); $stale_google_ids = [ 'AU' => "online:en:AU:gla_{$stale_product_id}", diff --git a/tests/Unit/Product/ProductHelperTest.php b/tests/Unit/Product/ProductHelperTest.php index 9fa2b3db7d..f60046d1e4 100644 --- a/tests/Unit/Product/ProductHelperTest.php +++ b/tests/Unit/Product/ProductHelperTest.php @@ -102,8 +102,8 @@ public function test_mark_as_synced_doesnt_delete_errors_unless_all_target_count $google_product = $this->generate_google_product_mock(); $this->target_audience->expects( $this->any() ) - ->method( 'get_target_countries' ) - ->willReturn( [ 'AU', $google_product->getTargetCountry() ] ); + ->method( 'get_target_countries' ) + ->willReturn( [ 'AU', $google_product->getTargetCountry() ] ); // add some random errors residue from previous sync attempts $this->product_meta->update_errors( $product, [ 'Error 1', 'Error 2' ] ); @@ -131,8 +131,8 @@ public function test_mark_as_synced_updates_both_variation_and_parent() { $variation = $this->wc->get_product( $parent->get_children()[0] ); $this->target_audience->expects( $this->any() ) - ->method( 'get_target_countries' ) - ->willReturn( [ $this->get_sample_target_country() ] ); + ->method( 'get_target_countries' ) + ->willReturn( [ $this->get_sample_target_country() ] ); // add some random errors residue from previous sync attempts $this->product_meta->update_errors( $variation, [ 'Error 1', 'Error 2' ] ); @@ -170,8 +170,8 @@ public function test_mark_as_synced_does_not_update_parent_if_orphan_variation() $variation->save(); $this->target_audience->expects( $this->any() ) - ->method( 'get_target_countries' ) - ->willReturn( [ $this->get_sample_target_country() ] ); + ->method( 'get_target_countries' ) + ->willReturn( [ $this->get_sample_target_country() ] ); $this->product_helper->mark_as_synced( $variation, $google_product ); @@ -383,7 +383,6 @@ public function test_mark_as_invalid_updates_both_variation_and_parent() { $this->assertEmpty( $this->product_meta->get_failed_sync_attempts( $product ) ); $this->assertEmpty( $this->product_meta->get_sync_failed_at( $product ) ); } - } public function test_mark_as_invalid_does_not_update_parent_if_orphan_variation() { @@ -499,7 +498,6 @@ function ( $wc_product_id, $mc_product_id ) { $this->assertEquals( 1234567, $this->product_helper->get_wc_product_id( 'gla_1234567' ) ); // Invalid ID, not WC product or custom map $this->assertEquals( 0, $this->product_helper->get_wc_product_id( 'online:en:US:not_gla_or_mapped' ) ); - } public function test_get_wc_product_title() { diff --git a/tests/Unit/Product/ProductMetaHandlerTest.php b/tests/Unit/Product/ProductMetaHandlerTest.php index 4924db4664..3abd653e9d 100644 --- a/tests/Unit/Product/ProductMetaHandlerTest.php +++ b/tests/Unit/Product/ProductMetaHandlerTest.php @@ -53,22 +53,22 @@ public function test_magic_call() { $value = 12345; $product_meta_handler = $this->getMockBuilder( ProductMetaHandler::class ) - ->setMethodsExcept( [ '__call' ] ) - ->getMock(); + ->setMethodsExcept( [ '__call' ] ) + ->getMock(); $product_meta_handler->expects( $this->once() ) - ->method( 'update' ) - ->with( $this->equalTo( $product ), $this->equalTo( $key ), $this->equalTo( $value ) ); + ->method( 'update' ) + ->with( $this->equalTo( $product ), $this->equalTo( $key ), $this->equalTo( $value ) ); $product_meta_handler->update_synced_at( $product, $value ); $product_meta_handler->expects( $this->once() ) - ->method( 'get' ) - ->with( $this->equalTo( $product ), $this->equalTo( $key ) ); + ->method( 'get' ) + ->with( $this->equalTo( $product ), $this->equalTo( $key ) ); $product_meta_handler->get_synced_at( $product ); $product_meta_handler->expects( $this->once() ) - ->method( 'delete' ) - ->with( $this->equalTo( $product ), $this->equalTo( $key ) ); + ->method( 'delete' ) + ->with( $this->equalTo( $product ), $this->equalTo( $key ) ); $product_meta_handler->delete_synced_at( $product ); } diff --git a/tests/Unit/Product/ProductSyncerTest.php b/tests/Unit/Product/ProductSyncerTest.php index 1a4c008674..76dc08d292 100644 --- a/tests/Unit/Product/ProductSyncerTest.php +++ b/tests/Unit/Product/ProductSyncerTest.php @@ -328,8 +328,8 @@ public function test_update_by_batch_requests_throws_exception_if_google_api_cal $product = WC_Helper_Product::create_simple_product(); $this->google_service->expects( $this->any() ) - ->method( 'insert_batch' ) - ->willThrowException( new GoogleException() ); + ->method( 'insert_batch' ) + ->willThrowException( new GoogleException() ); $this->expectException( ProductSyncerException::class ); $this->product_syncer->update_by_batch_requests( [ new BatchProductRequestEntry( $product->get_id(), $this->generate_adapted_product( $product ) ) ] ); @@ -339,8 +339,8 @@ public function test_delete_by_batch_requests_throws_exception_if_google_api_cal $product = WC_Helper_Product::create_simple_product(); $this->google_service->expects( $this->any() ) - ->method( 'delete_batch' ) - ->willThrowException( new GoogleException() ); + ->method( 'delete_batch' ) + ->willThrowException( new GoogleException() ); $this->expectException( ProductSyncerException::class ); $this->product_syncer->delete_by_batch_requests( [ new BatchProductIDRequestEntry( $product->get_id(), $this->generate_google_id( $product ) ) ] ); @@ -540,12 +540,12 @@ protected function mock_google_service( $successful_products, $failed_products ) }; $this->google_service->expects( $this->any() ) - ->method( 'insert_batch' ) - ->willReturnCallback( $callback ); + ->method( 'insert_batch' ) + ->willReturnCallback( $callback ); $this->google_service->expects( $this->any() ) - ->method( 'delete_batch' ) - ->willReturnCallback( $callback ); + ->method( 'delete_batch' ) + ->willReturnCallback( $callback ); } /** @@ -579,8 +579,8 @@ public function setUp(): void { $this->target_audience = $this->createMock( TargetAudience::class ); $this->merchant_center = $this->createMock( MerchantCenterService::class ); $this->merchant_center->expects( $this->any() ) - ->method( 'is_ready_for_syncing' ) - ->willReturn( true ); + ->method( 'is_ready_for_syncing' ) + ->willReturn( true ); $this->google_service = $this->createMock( GoogleProductService::class ); $this->rules_query = $this->createMock( AttributeMappingRulesQuery::class ); diff --git a/tests/Unit/Product/WCProductAdapterTest.php b/tests/Unit/Product/WCProductAdapterTest.php index d1a94ee03c..25d4af3f97 100644 --- a/tests/Unit/Product/WCProductAdapterTest.php +++ b/tests/Unit/Product/WCProductAdapterTest.php @@ -225,7 +225,7 @@ function ( array $attributes ) { public function test_get_google_product_offer_id_with_custom_mapping_filter() { add_filter( 'woocommerce_gla_get_google_product_offer_id', - function( $mc_product_id, $woo_product_id ) { + function ( $mc_product_id, $woo_product_id ) { if ( $woo_product_id === 25 ) { $mc_product_id = 'custom_mapped_id'; } @@ -377,7 +377,7 @@ function () { false, [ 'description' => 'This product has a shortcode like [wc_gla_sample_test_shortcode] that will not get stripped out, ' . - 'along with an unregistered short code [some-test-short-code id=1] that will also remain intact.', + 'along with an unregistered short code [some-test-short-code id=1] that will also remain intact.', ] ); $adapted_product = new WCProductAdapter( diff --git a/tests/Unit/Shipping/ShippingSuggestionServiceTest.php b/tests/Unit/Shipping/ShippingSuggestionServiceTest.php index 96a0c487eb..e091fc851d 100644 --- a/tests/Unit/Shipping/ShippingSuggestionServiceTest.php +++ b/tests/Unit/Shipping/ShippingSuggestionServiceTest.php @@ -119,8 +119,8 @@ public function setUp(): void { parent::setUp(); $this->wc = $this->createMock( WC::class ); $this->wc->expects( $this->any() ) - ->method( 'get_woocommerce_currency' ) - ->willReturn( 'USD' ); + ->method( 'get_woocommerce_currency' ) + ->willReturn( 'USD' ); $this->shipping_zone = $this->createMock( ShippingZone::class ); diff --git a/tests/Unit/TaskList/CompleteSetupTaskTest.php b/tests/Unit/TaskList/CompleteSetupTaskTest.php index 6d7234f6d0..755a5f7395 100644 --- a/tests/Unit/TaskList/CompleteSetupTaskTest.php +++ b/tests/Unit/TaskList/CompleteSetupTaskTest.php @@ -48,7 +48,6 @@ public function setUp(): void { */ public function test_register() { $this->assertInstanceOf( CompleteSetupTask::class, TaskLists::get_list( 'extended' )->get_task( 'gla_complete_setup' ) ); - } public function test_id() { diff --git a/tests/Unit/Utility/DimensionUtilityTest.php b/tests/Unit/Utility/DimensionUtilityTest.php index e907733dc1..af630d858d 100644 --- a/tests/Unit/Utility/DimensionUtilityTest.php +++ b/tests/Unit/Utility/DimensionUtilityTest.php @@ -25,7 +25,6 @@ public function test_image_is_minimum_size() { $image_2 = new DimensionUtility( 600, 300 ); $this->assertTrue( $image_1->is_minimum_size( $image_2 ) ); - } public function test_image_is_smaller_than_the_minimum_size() { @@ -33,7 +32,6 @@ public function test_image_is_smaller_than_the_minimum_size() { $image_2 = new DimensionUtility( 600, 300 ); $this->assertFalse( $image_1->is_minimum_size( $image_2 ) ); - } public function test_image_is_equal_with_default_precision() { @@ -41,7 +39,6 @@ public function test_image_is_equal_with_default_precision() { $image_2 = new DimensionUtility( 300, 400 ); $this->assertTrue( $image_1->equals( $image_2 ) ); - } public function test_image_is_equal_with_precision_of_2() { @@ -49,7 +46,6 @@ public function test_image_is_equal_with_precision_of_2() { $image_2 = new DimensionUtility( 302, 398 ); $this->assertTrue( $image_1->equals( $image_2, 2 ) ); - } public function test_image_is_not_equal() { @@ -57,8 +53,5 @@ public function test_image_is_not_equal() { $image_2 = new DimensionUtility( 600, 300 ); $this->assertFalse( $image_1->equals( $image_2 ) ); - } - - } diff --git a/tests/Unit/Utility/ImageUtilityTest.php b/tests/Unit/Utility/ImageUtilityTest.php index d3c684ef37..528f13eb45 100644 --- a/tests/Unit/Utility/ImageUtilityTest.php +++ b/tests/Unit/Utility/ImageUtilityTest.php @@ -55,7 +55,6 @@ public function test_add_subsize_image() { $metadata_updated = wp_get_attachment_metadata( $image_id ); $this->assertArrayHasKey( self::SUBSIZE_IMAGE_KEY, $metadata_updated['sizes'] ); - } public function test_real_size_bigger_than_suggested_square() { @@ -69,7 +68,6 @@ public function test_real_size_bigger_than_suggested_square() { $this->assertEquals( 1200, $suggested_size->y ); $this->assert_aspect_rate_tolerance( $suggested_size, $recommended_size ); - } public function test_real_size_bigger_than_suggested_landscape() { @@ -83,7 +81,6 @@ public function test_real_size_bigger_than_suggested_landscape() { $this->assertEquals( 525, $suggested_size->y ); $this->assert_aspect_rate_tolerance( $suggested_size, $recommended_size ); - } public function test_real_size_smaller_than_suggested_square() { @@ -97,7 +94,6 @@ public function test_real_size_smaller_than_suggested_square() { $this->assertEquals( 350, $suggested_size->y ); $this->assert_aspect_rate_tolerance( $suggested_size, $recommended_size ); - } public function test_real_size_smaller_than_suggested_landscape() { @@ -111,7 +107,6 @@ public function test_real_size_smaller_than_suggested_landscape() { $this->assertEquals( 225, $suggested_size->y ); $this->assert_aspect_rate_tolerance( $suggested_size, $recommended_size ); - } public function test_recommend_size_less_than_the_minimum() { @@ -122,8 +117,5 @@ public function test_recommend_size_less_than_the_minimum() { $suggested_size = $this->image_utility->recommend_size( $real_size, $recommended_size, $minimum_size ); $this->assertFalse( $suggested_size ); - } - - } diff --git a/tests/Unit/View/PHPViewFactoryTest.php b/tests/Unit/View/PHPViewFactoryTest.php index 9496523144..4a604f4747 100644 --- a/tests/Unit/View/PHPViewFactoryTest.php +++ b/tests/Unit/View/PHPViewFactoryTest.php @@ -39,5 +39,4 @@ public function setUp(): void { parent::setUp(); $this->view_factory = new PHPViewFactory(); } - } diff --git a/tests/Unit/View/PHPViewTest.php b/tests/Unit/View/PHPViewTest.php index 1a4f009903..1256dab4c8 100644 --- a/tests/Unit/View/PHPViewTest.php +++ b/tests/Unit/View/PHPViewTest.php @@ -69,5 +69,4 @@ public function setUp(): void { parent::setUp(); $this->view_factory = new PHPViewFactory(); } - } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 20a159e817..cb098d11af 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -18,7 +18,7 @@ $wp_core_dir = getenv( 'WP_CORE_DIR' ) ?: path_join( sys_get_temp_dir(), '/wordpress' ); $wp_plugins_dir = path_join( $wp_core_dir, '/wp-content/plugins' ); -$gla_dir = dirname( __FILE__, 2 ); // ../../ +$gla_dir = dirname( __DIR__ ); // Parent directory $wc_dir = getenv( 'WC_DIR' ); if ( ! $wc_dir ) { diff --git a/tests/e2e/utils/customer.js b/tests/e2e/utils/customer.js index 77794fbc2b..cad0b9b6b9 100644 --- a/tests/e2e/utils/customer.js +++ b/tests/e2e/utils/customer.js @@ -100,9 +100,12 @@ export async function checkout( page ) { await page.locator( '#billing-state input' ).fill( user.statename ); } + //TODO: See if there's an alternative method to click the button without relying on waitForTimeout. + await page.waitForTimeout( 3000 ); + await page.locator( 'text=Place order' ).click(); await expect( - page.locator( '.woocommerce-thankyou-order-received' ) + page.locator( '.wc-block-order-confirmation-status' ) ).toContainText( 'order has been received' ); } diff --git a/tests/phpcs.xml.dist b/tests/phpcs.xml.dist index c1d4e92c97..78df1b4d47 100644 --- a/tests/phpcs.xml.dist +++ b/tests/phpcs.xml.dist @@ -22,9 +22,13 @@ - + + + + + @@ -33,7 +37,7 @@ - + @@ -60,9 +64,13 @@ - - - + + + + + + + diff --git a/views/inputs/text.php b/views/inputs/text.php index 9cb873a280..307bb3ff74 100644 --- a/views/inputs/text.php +++ b/views/inputs/text.php @@ -13,4 +13,3 @@ $input = $this->input; woocommerce_wp_text_input( $input ); -