Skip to content

Commit

Permalink
Fix typos (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Nov 14, 2023
1 parent 67a3a32 commit ae06416
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/mantle/container/class-bound-method.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/contracts/interface-application.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function booted( callable $callback ): static;
public function terminating( callable $callback ): static;

/**
* Termine the application.
* Terminate the application.
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/events/trait-wordpress-action.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] );

Expand Down
2 changes: 1 addition & 1 deletion src/mantle/framework/console/class-hook-usage-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/framework/events/class-discover-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/support/class-arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/support/class-driver-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/support/class-reflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/testing/concerns/trait-interacts-with-cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/mantle/testing/concerns/trait-rsync-installation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <em>{$base_install_path}</em> ...",
"Installing WordPress at <em>{$base_install_path}</em> ...",
'Install Rsync'
);

Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions tests/support/test-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down Expand Up @@ -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']);

Expand Down

0 comments on commit ae06416

Please sign in to comment.