From e55e45236ab8fecc47d4d2ced073807c904fa41d Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Wed, 16 Aug 2023 10:39:11 +0530 Subject: [PATCH] Fix typos --- composer.json | 2 +- docs/creating-a-static-check.md | 2 +- includes/Checker/AJAX_Runner.php | 2 +- includes/Checker/Abstract_Check_Runner.php | 4 ++-- includes/Checker/CLI_Runner.php | 2 +- tests/phpunit/Admin/Admin_Page_Tests.php | 10 +++++----- .../Force_Single_Plugin_Preparation_Tests.php | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 13d36a76c..d15e7c088 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ "enable-patching": true, "patches": { "automattic/vipwpcs": { - "Fix incompatablity wp-coding-standards/wpcs": "patches/remove-rules.patch" + "Fix incompatibility wp-coding-standards/wpcs": "patches/remove-rules.patch" } } }, diff --git a/docs/creating-a-static-check.md b/docs/creating-a-static-check.md index c1242491b..abbe0da77 100644 --- a/docs/creating-a-static-check.md +++ b/docs/creating-a-static-check.md @@ -177,7 +177,7 @@ public function run( Check_Result $result ) { 'Warning message content.', array( 'code' => 'warning_code', - 'file' => $pluging_file, + 'file' => $plugin_file, 'line' => 1, 'column' => 10, ) diff --git a/includes/Checker/AJAX_Runner.php b/includes/Checker/AJAX_Runner.php index b8118c660..381c46e1d 100644 --- a/includes/Checker/AJAX_Runner.php +++ b/includes/Checker/AJAX_Runner.php @@ -83,7 +83,7 @@ protected function get_check_slugs_param() { } /** - * Returns the include experimental paramater based on the request. + * Returns the include experimental parameter based on the request. * * @since n.e.x.t * diff --git a/includes/Checker/Abstract_Check_Runner.php b/includes/Checker/Abstract_Check_Runner.php index 0300f4eef..a082cd4a8 100644 --- a/includes/Checker/Abstract_Check_Runner.php +++ b/includes/Checker/Abstract_Check_Runner.php @@ -97,7 +97,7 @@ abstract class Abstract_Check_Runner implements Check_Runner { * * @since n.e.x.t * - * @return string The plugin paramater from the request. + * @return string The plugin parameter from the request. */ abstract protected function get_plugin_param(); @@ -111,7 +111,7 @@ abstract protected function get_plugin_param(); abstract protected function get_check_slugs_param(); /** - * Returns the include experimental paramater based on the request. + * Returns the include experimental parameter based on the request. * * @since n.e.x.t * diff --git a/includes/Checker/CLI_Runner.php b/includes/Checker/CLI_Runner.php index 2b1dd9ebd..03e0ecd09 100644 --- a/includes/Checker/CLI_Runner.php +++ b/includes/Checker/CLI_Runner.php @@ -90,7 +90,7 @@ protected function get_check_slugs_param() { } /** - * Returns the include experimental paramater based on the request. + * Returns the include experimental parameter based on the request. * * @since n.e.x.t * diff --git a/tests/phpunit/Admin/Admin_Page_Tests.php b/tests/phpunit/Admin/Admin_Page_Tests.php index 637498664..e35b589d1 100644 --- a/tests/phpunit/Admin/Admin_Page_Tests.php +++ b/tests/phpunit/Admin/Admin_Page_Tests.php @@ -95,7 +95,7 @@ public function test_render_page() { // Restore the original cache. $wp_object_cache->set( 'plugins', $original_plugins, 'plugins' ); - // Remove the plugin checker from exptected plugins for testing. + // Remove the plugin checker from expected plugins for testing. unset( $expected_plugins[ $plugin_basename ] ); // Assert the Plugin Checker does not appear in the select dropdown. @@ -208,10 +208,10 @@ public function test_filter_plugin_action_links_should_not_add_check( $context, */ public function data_status_mustuse_and_dropins() { return array( - 'Must-Use' => array( 'mustuse', false ), - 'Must-Use with Admininistrator check' => array( 'mustuse', true ), - 'Drop-ins' => array( 'dropins', false ), - 'Drop-ins with Admininistrator check' => array( 'dropins', true ), + 'Must-Use' => array( 'mustuse', false ), + 'Must-Use with Administrator check' => array( 'mustuse', true ), + 'Drop-ins' => array( 'dropins', false ), + 'Drop-ins with Administrator check' => array( 'dropins', true ), ); } } diff --git a/tests/phpunit/Checker/Preparations/Force_Single_Plugin_Preparation_Tests.php b/tests/phpunit/Checker/Preparations/Force_Single_Plugin_Preparation_Tests.php index a3a79ae0c..8fe6b19ba 100644 --- a/tests/phpunit/Checker/Preparations/Force_Single_Plugin_Preparation_Tests.php +++ b/tests/phpunit/Checker/Preparations/Force_Single_Plugin_Preparation_Tests.php @@ -34,7 +34,7 @@ public function test_prepare_plugin_does_not_exist() { * @throws Exception Throw exception. */ public function test_prepare() { - // Remove the WP tests active plugins filter which interfers with this test. + // Remove the WP tests active plugins filter which interferes with this test. remove_filter( 'pre_option_active_plugins', 'wp_tests_options' ); $preparation = new Force_Single_Plugin_Preparation( $this->plugin_basename_file );