Skip to content

Commit

Permalink
Use self keyword instead of enum name
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 authored Jan 15, 2023
1 parent d96b145 commit b03b929
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Ban.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}
}
Expand Down

0 comments on commit b03b929

Please sign in to comment.