diff --git a/CHANGELOG.md b/CHANGELOG.md index c340d16e9..c9169f04c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -107,7 +107,7 @@ No changes, just a re-release to fix a bad tag. ## v0.11.2 - 2023-07-21 -- Add back-support for Wordpress 6.0 when testing. +- Add back-support for WordPress 6.0 when testing. ## v0.11.1 - 2023-05-31 @@ -222,7 +222,7 @@ No changes, just a re-release to fix a bad tag. - Cast the item to an array inside of only_children. - Adding keywords to trigger --dev. - Separate requires based on what they include. -- Compatibility layer for Refresh_Database and Installs_Wordpress. +- Compatibility layer for Refresh_Database and Installs_WordPress. ## v0.6.1 - 2022-09-20 diff --git a/src/mantle/container/class-bound-method.php b/src/mantle/container/class-bound-method.php index 885cc37a5..f6d2006de 100644 --- a/src/mantle/container/class-bound-method.php +++ b/src/mantle/container/class-bound-method.php @@ -155,7 +155,7 @@ protected static function get_call_reflector( $callback ) { * Get the dependency for the given call parameter. * * @param Container $container Container instance. - * @param \ReflectionParameter $parameter Reflect Paramater. + * @param \ReflectionParameter $parameter Reflect Parameter. * @param array $parameters Parameters to pass. * @param array $dependencies Class dependencies. * @return void diff --git a/src/mantle/contracts/interface-application.php b/src/mantle/contracts/interface-application.php index 895f4e75a..c0772d12a 100644 --- a/src/mantle/contracts/interface-application.php +++ b/src/mantle/contracts/interface-application.php @@ -191,7 +191,7 @@ public function booted( callable $callback ): static; public function terminating( callable $callback ): static; /** - * Termine the application. + * Terminate the application. * * @return void */ diff --git a/src/mantle/events/trait-wordpress-action.php b/src/mantle/events/trait-wordpress-action.php index 0f6c1471b..628a9e6e2 100644 --- a/src/mantle/events/trait-wordpress-action.php +++ b/src/mantle/events/trait-wordpress-action.php @@ -157,7 +157,7 @@ protected function validate_argument_type( $argument, ReflectionParameter $param * to that event will pass the argument down to the callback for the action/filter. * * @param mixed $argument Argument value. - * @param ReflectionParameter $parameter Callback paramater. + * @param ReflectionParameter $parameter Callback parameter. */ $modified_argument = $this->dispatch( 'mantle-typehint-resolve:' . $type->getName(), [ null, $argument, $parameter ] ); diff --git a/src/mantle/framework/console/class-hook-usage-command.php b/src/mantle/framework/console/class-hook-usage-command.php index d326f0f04..5171519b7 100644 --- a/src/mantle/framework/console/class-hook-usage-command.php +++ b/src/mantle/framework/console/class-hook-usage-command.php @@ -212,7 +212,7 @@ protected function read_file( string $file ): Collection { } /** - * Detrmine if the cache should be used. + * Determine if the cache should be used. * * @return bool */ diff --git a/src/mantle/framework/console/generators/class-block-make-command.php b/src/mantle/framework/console/generators/class-block-make-command.php index 480f386bd..9510c32ce 100644 --- a/src/mantle/framework/console/generators/class-block-make-command.php +++ b/src/mantle/framework/console/generators/class-block-make-command.php @@ -309,7 +309,7 @@ protected function get_blocks_path(): string { } /** - * Get the base path for the genereated block. + * Get the base path for the generated block. * * @param string $name The block name. * @return string @@ -328,7 +328,7 @@ protected function get_views_path(): string { } /** - * Get the base path for the genereated block. + * Get the base path for the generated block. * * @param string $namespace The block namespace. * @return string diff --git a/src/mantle/framework/events/class-discover-events.php b/src/mantle/framework/events/class-discover-events.php index 4c3b695fd..47feddacd 100644 --- a/src/mantle/framework/events/class-discover-events.php +++ b/src/mantle/framework/events/class-discover-events.php @@ -128,7 +128,7 @@ protected static function get_listener_events( $listeners, string $base_path ): } $listener_events[ $listener->name . '@' . $method->name ] = [ - Reflector::get_paramater_class_names( + Reflector::get_parameter_class_names( $method->getParameters()[0] ), $priority, diff --git a/src/mantle/support/class-arr.php b/src/mantle/support/class-arr.php index 26b273129..9614a77b8 100644 --- a/src/mantle/support/class-arr.php +++ b/src/mantle/support/class-arr.php @@ -126,7 +126,7 @@ public static function dot( $array, string $prepend = '' ): array { * Get all of the given array except for a specified array of keys. * * @param array $array Array to process. - * @param array|string $keys Keys toi filter by. + * @param array|string $keys Keys to filter by. * @return array */ public static function except( array $array, $keys ): array { diff --git a/src/mantle/support/class-driver-manager.php b/src/mantle/support/class-driver-manager.php index 3fd3e4b3e..2b2893f67 100644 --- a/src/mantle/support/class-driver-manager.php +++ b/src/mantle/support/class-driver-manager.php @@ -11,7 +11,7 @@ use InvalidArgumentException; /** - * Driver Manager for managing multiple stores and plugable drivers. + * Driver Manager for managing multiple stores and pluggable drivers. */ abstract class Driver_Manager { /** diff --git a/src/mantle/support/class-reflector.php b/src/mantle/support/class-reflector.php index 6437e6c5c..c35b7e6b4 100644 --- a/src/mantle/support/class-reflector.php +++ b/src/mantle/support/class-reflector.php @@ -50,7 +50,7 @@ public static function get_parameter_class_name( $parameter ) { * @param \ReflectionParameter $parameter * @return array */ - public static function get_paramater_class_names( $parameter ) { + public static function get_parameter_class_names( $parameter ) { $type = $parameter->getType(); if ( ! $type instanceof ReflectionUnionType ) { diff --git a/src/mantle/testing/concerns/trait-interacts-with-cron.php b/src/mantle/testing/concerns/trait-interacts-with-cron.php index fa8e0720c..314a4ddcd 100644 --- a/src/mantle/testing/concerns/trait-interacts-with-cron.php +++ b/src/mantle/testing/concerns/trait-interacts-with-cron.php @@ -38,7 +38,7 @@ public function assertInCronQueue( string $action, array $args = [] ): void { } /** - * Assert tha an action is not in a cron queue. + * Assert that an action is not in a cron queue. * * @param string $action Action hook of the event. * @param array $args Arguments for the cron queue event. diff --git a/src/mantle/testing/concerns/trait-rsync-installation.php b/src/mantle/testing/concerns/trait-rsync-installation.php index ca5589d2f..7f3c2bea3 100644 --- a/src/mantle/testing/concerns/trait-rsync-installation.php +++ b/src/mantle/testing/concerns/trait-rsync-installation.php @@ -136,7 +136,7 @@ public function maybe_rsync( string $to = null, string $from = null ): static { * Maybe rsync the codebase to the wp-content within WordPress. * * Will attempt to locate the wp-content directory relative to the current - * directory. As a fallback, it will assumme it is being called from either + * directory. As a fallback, it will assume it is being called from either * /wp-content/plugin/:plugin/tests OR /wp-content/themes/:theme/tests. Will * rsync the codebase from the wp-content level to the root of the WordPress * installation. Also will attempt to locate the wp-content directory relative @@ -349,7 +349,7 @@ protected function perform_rsync_testsuite() { // Install WordPress at the base installation if it doesn't exist yet. if ( ! is_dir( $base_install_path ) || ! is_file( "{$base_install_path}/wp-load.php" ) ) { Utils::info( - "Installating WordPress at {$base_install_path} ...", + "Installing WordPress at {$base_install_path} ...", 'Install Rsync' ); @@ -484,7 +484,7 @@ protected function get_phpunit_command(): string { // Use the first argument and translate it to the rsync-ed path. $executable = $this->translate_location( $args[0] ); - // Attempt to fallback to the phpunit binrary reference in PHP_SELF. This + // Attempt to fallback to the phpunit binary reference in PHP_SELF. This // would be the one used to invoke the current script. With that, we can // translate it to the new location in the rsync-ed WordPress // installation. diff --git a/tests/support/test-collection.php b/tests/support/test-collection.php index 66d4c0aa4..1db26c813 100644 --- a/tests/support/test-collection.php +++ b/tests/support/test-collection.php @@ -77,8 +77,8 @@ public function testFirstWhere($collection) $this->assertSame('book', $data->first_where('material', 'paper')['type']); $this->assertSame('gasket', $data->first_where('material', 'rubber')['type']); - $this->assertNull($data->first_where('material', 'nonexistant')); - $this->assertNull($data->first_where('nonexistant', 'key')); + $this->assertNull($data->first_where('material', 'nonexistent')); + $this->assertNull($data->first_where('nonexistent', 'key')); } /** @@ -3623,7 +3623,7 @@ public function testCollectionFromTraversableWithKeys($collection) /** * @dataProvider collectionClassProvider */ - public function testSplitCollectionWithADivisableCount($collection) + public function testSplitCollectionWithADivisibleCount($collection) { $data = new $collection(['a', 'b', 'c', 'd']);