From b03b9298c1c07c2e015cb9ba55fe390f8f9bda30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=99=9A=20PH=E2=91=A6=20de=20Soria=E2=84=A2=E2=99=9B?= Date: Sun, 15 Jan 2023 15:44:20 +1100 Subject: [PATCH] Use `self` keyword instead of enum name --- src/Ban.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Ban.php b/src/Ban.php index 0fccc78..d161442 100644 --- a/src/Ban.php +++ b/src/Ban.php @@ -20,11 +20,11 @@ enum BannedType: string public function fileName(): string { return match ($this) { - BannedType::USERNAME => Ban::USERNAME_FILE, - BannedType::EMAIL => Ban::EMAIL_FILE, - BannedType::WORD => Ban::WORD_FILE, - BannedType::BANK_ACCOUNT => Ban::BANK_ACCOUNT_FILE, - BannedType::IP => Ban::IP_FILE, + self::USERNAME => Ban::USERNAME_FILE, + self::EMAIL => Ban::EMAIL_FILE, + self::WORD => Ban::WORD_FILE, + self::BANK_ACCOUNT => Ban::BANK_ACCOUNT_FILE, + self::IP => Ban::IP_FILE, }; } }