From 04731d6bf174c1a7967388a5de0238e0f5a1f3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sat, 18 Apr 2026 03:23:01 +0000 Subject: [PATCH] Fix typos --- classes/BlueChip/Security/Modules/Log/Event.php | 2 +- .../Security/Modules/Log/Events/AuthBadCookie.php | 2 +- .../Security/Modules/Log/Events/BadRequestBan.php | 2 +- .../BlueChip/Security/Modules/Log/Events/BlocklistHit.php | 2 +- .../BlueChip/Security/Modules/Log/Events/LoginFailure.php | 2 +- .../BlueChip/Security/Modules/Log/Events/LoginLockout.php | 2 +- .../Security/Modules/Log/Events/LoginSuccessful.php | 2 +- classes/BlueChip/Security/Modules/Log/Events/Query404.php | 2 +- tests/integration/src/Bootstrap.php | 2 +- tests/unit/src/Cases/Modules/Log/EventsMonitorTest.php | 8 ++++---- tests/unit/src/TestCase.php | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/classes/BlueChip/Security/Modules/Log/Event.php b/classes/BlueChip/Security/Modules/Log/Event.php index fd53df2..457db5f 100644 --- a/classes/BlueChip/Security/Modules/Log/Event.php +++ b/classes/BlueChip/Security/Modules/Log/Event.php @@ -10,7 +10,7 @@ abstract class Event { /** - * @var string Static event identificator. + * @var string Static event identifier. */ public const ID = ''; diff --git a/classes/BlueChip/Security/Modules/Log/Events/AuthBadCookie.php b/classes/BlueChip/Security/Modules/Log/Events/AuthBadCookie.php index 9966bb5..de1eed1 100644 --- a/classes/BlueChip/Security/Modules/Log/Events/AuthBadCookie.php +++ b/classes/BlueChip/Security/Modules/Log/Events/AuthBadCookie.php @@ -10,7 +10,7 @@ class AuthBadCookie extends Event { /** - * @var string Static event identificator. + * @var string Static event identifier. */ public const ID = 'auth_bad_cookie'; diff --git a/classes/BlueChip/Security/Modules/Log/Events/BadRequestBan.php b/classes/BlueChip/Security/Modules/Log/Events/BadRequestBan.php index 3a9b672..b205191 100644 --- a/classes/BlueChip/Security/Modules/Log/Events/BadRequestBan.php +++ b/classes/BlueChip/Security/Modules/Log/Events/BadRequestBan.php @@ -10,7 +10,7 @@ class BadRequestBan extends Event { /** - * @var string Static event identificator. + * @var string Static event identifier. */ public const ID = 'bad_request_ban'; diff --git a/classes/BlueChip/Security/Modules/Log/Events/BlocklistHit.php b/classes/BlueChip/Security/Modules/Log/Events/BlocklistHit.php index 0a28d32..9b9a2bd 100644 --- a/classes/BlueChip/Security/Modules/Log/Events/BlocklistHit.php +++ b/classes/BlueChip/Security/Modules/Log/Events/BlocklistHit.php @@ -15,7 +15,7 @@ class BlocklistHit extends Event { /** - * @var string Static event identificator. + * @var string Static event identifier. */ public const ID = 'blocklist_hit'; diff --git a/classes/BlueChip/Security/Modules/Log/Events/LoginFailure.php b/classes/BlueChip/Security/Modules/Log/Events/LoginFailure.php index a339e8e..26854bf 100644 --- a/classes/BlueChip/Security/Modules/Log/Events/LoginFailure.php +++ b/classes/BlueChip/Security/Modules/Log/Events/LoginFailure.php @@ -11,7 +11,7 @@ class LoginFailure extends Event { /** - * @var string Static event identificator. + * @var string Static event identifier. */ public const ID = 'login_failure'; diff --git a/classes/BlueChip/Security/Modules/Log/Events/LoginLockout.php b/classes/BlueChip/Security/Modules/Log/Events/LoginLockout.php index 6b66fce..12fce1c 100644 --- a/classes/BlueChip/Security/Modules/Log/Events/LoginLockout.php +++ b/classes/BlueChip/Security/Modules/Log/Events/LoginLockout.php @@ -10,7 +10,7 @@ class LoginLockout extends Event { /** - * @var string Static event identificator. + * @var string Static event identifier. */ public const ID = 'login_lockdown'; diff --git a/classes/BlueChip/Security/Modules/Log/Events/LoginSuccessful.php b/classes/BlueChip/Security/Modules/Log/Events/LoginSuccessful.php index fa7bcab..45d6eb1 100644 --- a/classes/BlueChip/Security/Modules/Log/Events/LoginSuccessful.php +++ b/classes/BlueChip/Security/Modules/Log/Events/LoginSuccessful.php @@ -10,7 +10,7 @@ class LoginSuccessful extends Event { /** - * @var string Static event identificator. + * @var string Static event identifier. */ public const ID = 'login_success'; diff --git a/classes/BlueChip/Security/Modules/Log/Events/Query404.php b/classes/BlueChip/Security/Modules/Log/Events/Query404.php index 005a664..31cf202 100644 --- a/classes/BlueChip/Security/Modules/Log/Events/Query404.php +++ b/classes/BlueChip/Security/Modules/Log/Events/Query404.php @@ -10,7 +10,7 @@ class Query404 extends Event { /** - * @var string Static event identificator. + * @var string Static event identifier. */ public const ID = 'query_404'; diff --git a/tests/integration/src/Bootstrap.php b/tests/integration/src/Bootstrap.php index 1e8b6a7..5cbee3e 100644 --- a/tests/integration/src/Bootstrap.php +++ b/tests/integration/src/Bootstrap.php @@ -32,7 +32,7 @@ public static function getWordPressTestsDirectory(): string /** - * Construct the bootstraper. + * Construct the bootstrapper. */ public function __construct() { diff --git a/tests/unit/src/Cases/Modules/Log/EventsMonitorTest.php b/tests/unit/src/Cases/Modules/Log/EventsMonitorTest.php index 086490e..6e30967 100644 --- a/tests/unit/src/Cases/Modules/Log/EventsMonitorTest.php +++ b/tests/unit/src/Cases/Modules/Log/EventsMonitorTest.php @@ -26,7 +26,7 @@ public function testBadCookie(): void { Actions\expectDone(Log\Action::EVENT)->once()->with(\Mockery::type(Log\Events\AuthBadCookie::class)); - $this->runUnaccessibleMethod($this->monitor, 'logBadCookie', ['username' => 'test-user']); + $this->runInaccessibleMethod($this->monitor, 'logBadCookie', ['username' => 'test-user']); } @@ -39,7 +39,7 @@ public function testFailedLogin(): void 'get_error_message' => 'Test error message.', ]); - $this->runUnaccessibleMethod($this->monitor, 'logFailedLogin', 'test-user', $wp_error); + $this->runInaccessibleMethod($this->monitor, 'logFailedLogin', 'test-user', $wp_error); } @@ -47,7 +47,7 @@ public function testLoginLockout(): void { Actions\expectDone(Log\Action::EVENT)->once()->with(\Mockery::type(Log\Events\LoginLockout::class)); - $this->runUnaccessibleMethod($this->monitor, 'logLockoutEvent', '4.3.2.1', 'test-user', 600); + $this->runInaccessibleMethod($this->monitor, 'logLockoutEvent', '4.3.2.1', 'test-user', 600); } @@ -55,6 +55,6 @@ public function testSuccessfulLogin(): void { Actions\expectDone(Log\Action::EVENT)->once()->with(\Mockery::type(Log\Events\LoginSuccessful::class)); - $this->runUnaccessibleMethod($this->monitor, 'logSuccessfulLogin', 'test-user'); + $this->runInaccessibleMethod($this->monitor, 'logSuccessfulLogin', 'test-user'); } } diff --git a/tests/unit/src/TestCase.php b/tests/unit/src/TestCase.php index 862c6c7..962e52b 100644 --- a/tests/unit/src/TestCase.php +++ b/tests/unit/src/TestCase.php @@ -47,7 +47,7 @@ protected function tearDown(): void /** * Run private or protected $method from $object with given $args and pass its return value. */ - protected function runUnaccessibleMethod(object $object, string $method, ...$args) + protected function runInaccessibleMethod(object $object, string $method, ...$args) { $method = (new \ReflectionClass(\get_class($object)))->getMethod($method); $method->setAccessible(true);