Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in the plugin #246

Merged
merged 2 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/creating-a-static-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion includes/Checker/AJAX_Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
4 changes: 2 additions & 2 deletions includes/Checker/Abstract_Check_Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion includes/Checker/CLI_Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
10 changes: 5 additions & 5 deletions tests/phpunit/Admin/Admin_Page_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 ),
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down