Beta tester - fix lint errors (#48825)

* Fix lint errors

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Moon 2024-06-25 21:09:14 -07:00 committed by GitHub
parent 97e5873b1b
commit dfc40ff775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View File

@ -17,11 +17,11 @@ defined( 'ABSPATH' ) || exit;
function register_woocommerce_admin_test_helper_rest_route( $route, $callback, $additional_options = array() ) {
add_action(
'rest_api_init',
function() use ( $route, $callback, $additional_options ) {
function () use ( $route, $callback, $additional_options ) {
$default_options = array(
'methods' => 'POST',
'callback' => $callback,
'permission_callback' => function( $request ) {
'permission_callback' => function ( $request ) {
if ( ! wc_rest_check_manager_permissions( 'settings', 'edit' ) ) {
return new \WP_Error(
'woocommerce_rest_cannot_edit',
@ -61,4 +61,4 @@ require 'live-branches/manifest.php';
require 'live-branches/install.php';
require 'tools/set-block-template-logging-threshold.php';
require 'remote-spec-validator/class-wca-test-helper-remote-spec-validator.php';
require 'remote-inbox-notifications/class-wca-test-helper-remote-inbox-notifications.php';
require 'remote-inbox-notifications/class-wca-test-helper-remote-inbox-notifications.php';

View File

@ -122,7 +122,7 @@ class WC_Beta_Tester_Remote_Inbox_Notifications_Helper {
*/
public static function import( $specs ) {
$stored_state = RemoteInboxNotificationsEngine::get_stored_state();
$transient = static::get_transient();
$transient = static::get_transient();
foreach ( $specs as $spec ) {
SpecRunner::run_spec( $spec, $stored_state );

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Comment: This only contains lint fixes.