diff --git a/src/ui/newsletter.php b/src/ui/newsletter.php index 81ed3b8c7..9b247025f 100644 --- a/src/ui/newsletter.php +++ b/src/ui/newsletter.php @@ -16,7 +16,6 @@ public static function newsletter_signup_form() { $newsletter_form_response = self::newsletter_handle_form(); - $copy = \sprintf( /* translators: 1: Yoast */ \esc_html__( diff --git a/tests/Unit/Admin/Options_Form_Generator_Test.php b/tests/Unit/Admin/Options_Form_Generator_Test.php index 3ee87ccce..09d9504da 100644 --- a/tests/Unit/Admin/Options_Form_Generator_Test.php +++ b/tests/Unit/Admin/Options_Form_Generator_Test.php @@ -249,7 +249,7 @@ public function test_generate_options_input_for_suboptions() { Monkey\Functions\expect( 'checked' ) ->once() ->andReturnUsing( - static function( $checked, $current = true ) { + static function ( $checked, $current = true ) { return ( (string) $checked === (string) $current ) ? " checked='checked'" : ''; } ); @@ -345,7 +345,7 @@ public function test_generate_taxonomy_exclusion_list() { Monkey\Functions\expect( 'checked' ) ->times( 4 ) ->andReturnUsing( - static function( $checked, $current = true ) { + static function ( $checked, $current = true ) { return ( (string) $checked === (string) $current ) ? " checked='checked'" : ''; } ); @@ -381,7 +381,7 @@ public function test_generate_roles_permission_list() { Monkey\Functions\expect( 'checked' ) ->twice() ->andReturnUsing( - static function( $checked, $current = true ) { + static function ( $checked, $current = true ) { return ( (string) $checked === (string) $current ) ? " checked='checked'" : ''; } ); @@ -421,7 +421,7 @@ public function test_generate_post_types_list() { Monkey\Functions\expect( 'checked' ) ->twice() ->andReturnUsing( - static function( $checked, $current = true ) { + static function ( $checked, $current = true ) { return ( (string) $checked === (string) $current ) ? " checked='checked'" : ''; } ); diff --git a/tests/Unit/Admin/Options_Inputs_Test.php b/tests/Unit/Admin/Options_Inputs_Test.php index 9f06b5776..3f5baba43 100644 --- a/tests/Unit/Admin/Options_Inputs_Test.php +++ b/tests/Unit/Admin/Options_Inputs_Test.php @@ -39,7 +39,7 @@ public function test_checkbox() { Functions\expect( 'checked' ) ->twice() ->andReturnUsing( - static function( $checked, $current = true ) { + static function ( $checked, $current = true ) { return ( (string) $checked === (string) $current ) ? " checked='checked'" : ''; } ); diff --git a/tests/WP/Post_Duplicator_Test.php b/tests/WP/Post_Duplicator_Test.php index 3781b52c1..9d08ae5fd 100644 --- a/tests/WP/Post_Duplicator_Test.php +++ b/tests/WP/Post_Duplicator_Test.php @@ -2,8 +2,8 @@ namespace Yoast\WP\Duplicate_Post\Tests\WP; -use Yoast\WPTestUtils\WPIntegration\TestCase; use Yoast\WP\Duplicate_Post\Post_Duplicator; +use Yoast\WPTestUtils\WPIntegration\TestCase; /** * Class Post_Duplicator. diff --git a/tests/WP/bootstrap.php b/tests/WP/bootstrap.php index 2785db2a3..dec7ef20f 100644 --- a/tests/WP/bootstrap.php +++ b/tests/WP/bootstrap.php @@ -27,7 +27,7 @@ \tests_add_filter( 'muplugins_loaded', - function() { + static function () { require_once \dirname( __DIR__, 2 ) . '/duplicate-post.php'; } );