From 5b4d97fbc8be99baac61f4da60cac7c232729d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 4 Mar 2022 19:16:30 +0100 Subject: [PATCH] Mark all Commands as final --- files/lib/system/command/AwayCommand.class.php | 2 +- files/lib/system/command/BackCommand.class.php | 2 +- files/lib/system/command/BanCommand.class.php | 2 +- files/lib/system/command/BroadcastCommand.class.php | 2 +- files/lib/system/command/ColorCommand.class.php | 2 +- files/lib/system/command/InfoCommand.class.php | 2 +- files/lib/system/command/MeCommand.class.php | 2 +- files/lib/system/command/MuteCommand.class.php | 2 +- files/lib/system/command/PlainCommand.class.php | 2 +- files/lib/system/command/TeamCommand.class.php | 2 +- files/lib/system/command/TemproomCommand.class.php | 2 +- files/lib/system/command/UnbanCommand.class.php | 2 +- files/lib/system/command/UnmuteCommand.class.php | 2 +- files/lib/system/command/WhereCommand.class.php | 2 +- files/lib/system/command/WhisperCommand.class.php | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/files/lib/system/command/AwayCommand.class.php b/files/lib/system/command/AwayCommand.class.php index c81949b..02bcdf4 100644 --- a/files/lib/system/command/AwayCommand.class.php +++ b/files/lib/system/command/AwayCommand.class.php @@ -27,7 +27,7 @@ use wcf\system\WCF; /** * The away command marks the user as being away. */ -class AwayCommand extends AbstractCommand implements ICommand +final class AwayCommand extends AbstractCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/BackCommand.class.php b/files/lib/system/command/BackCommand.class.php index 1abd6e9..ffa0e2e 100644 --- a/files/lib/system/command/BackCommand.class.php +++ b/files/lib/system/command/BackCommand.class.php @@ -26,7 +26,7 @@ use wcf\system\WCF; /** * The back command marks the user as being back. */ -class BackCommand extends AbstractCommand implements ICommand +final class BackCommand extends AbstractCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/BanCommand.class.php b/files/lib/system/command/BanCommand.class.php index 8d169ab..f6701ac 100644 --- a/files/lib/system/command/BanCommand.class.php +++ b/files/lib/system/command/BanCommand.class.php @@ -28,7 +28,7 @@ use wcf\system\WCF; /** * The ban command creates a new be.bastelstu.chat.suspension.ban suspension. */ -class BanCommand extends AbstractSuspensionCommand implements ICommand +final class BanCommand extends AbstractSuspensionCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/BroadcastCommand.class.php b/files/lib/system/command/BroadcastCommand.class.php index 74afb0b..2814435 100644 --- a/files/lib/system/command/BroadcastCommand.class.php +++ b/files/lib/system/command/BroadcastCommand.class.php @@ -26,7 +26,7 @@ use wcf\system\WCF; /** * BroadcastCommand sends a broadcast into all channels. */ -class BroadcastCommand extends AbstractInputProcessedCommand implements ICommand +final class BroadcastCommand extends AbstractInputProcessedCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/ColorCommand.class.php b/files/lib/system/command/ColorCommand.class.php index 797ea84..d722738 100644 --- a/files/lib/system/command/ColorCommand.class.php +++ b/files/lib/system/command/ColorCommand.class.php @@ -29,7 +29,7 @@ use wcf\util\StringUtil; /** * The color command allows a user to set a color for their username */ -class ColorCommand extends AbstractCommand implements ICommand +final class ColorCommand extends AbstractCommand implements ICommand { /** * Regular expression matching RGB values in hexadecimal notation diff --git a/files/lib/system/command/InfoCommand.class.php b/files/lib/system/command/InfoCommand.class.php index c79f941..3ef707e 100644 --- a/files/lib/system/command/InfoCommand.class.php +++ b/files/lib/system/command/InfoCommand.class.php @@ -27,7 +27,7 @@ use wcf\system\WCF; /** * The info command shows information about a single user. */ -class InfoCommand extends AbstractCommand implements ICommand +final class InfoCommand extends AbstractCommand implements ICommand { use TNeedsUser; diff --git a/files/lib/system/command/MeCommand.class.php b/files/lib/system/command/MeCommand.class.php index e08a44f..3f1f13c 100644 --- a/files/lib/system/command/MeCommand.class.php +++ b/files/lib/system/command/MeCommand.class.php @@ -26,7 +26,7 @@ use wcf\system\WCF; /** * MeCommand represents an action message. */ -class MeCommand extends AbstractCommand implements ICommand +final class MeCommand extends AbstractCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/MuteCommand.class.php b/files/lib/system/command/MuteCommand.class.php index 9e3905f..4544715 100644 --- a/files/lib/system/command/MuteCommand.class.php +++ b/files/lib/system/command/MuteCommand.class.php @@ -24,7 +24,7 @@ use wcf\system\WCF; /** * The mute command creates a new be.bastelstu.chat.suspension.mute suspension. */ -class MuteCommand extends AbstractSuspensionCommand implements ICommand +final class MuteCommand extends AbstractSuspensionCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/PlainCommand.class.php b/files/lib/system/command/PlainCommand.class.php index bae0387..5231fb5 100644 --- a/files/lib/system/command/PlainCommand.class.php +++ b/files/lib/system/command/PlainCommand.class.php @@ -26,7 +26,7 @@ use wcf\system\WCF; /** * The plain command creates a normal chat message */ -class PlainCommand extends AbstractInputProcessedCommand implements ICommand +final class PlainCommand extends AbstractInputProcessedCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/TeamCommand.class.php b/files/lib/system/command/TeamCommand.class.php index 96104c6..22d9772 100644 --- a/files/lib/system/command/TeamCommand.class.php +++ b/files/lib/system/command/TeamCommand.class.php @@ -26,7 +26,7 @@ use wcf\system\WCF; /** * TeamCommand sends a broadcast to all team members. */ -class TeamCommand extends AbstractInputProcessedCommand implements ICommand +final class TeamCommand extends AbstractInputProcessedCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/TemproomCommand.class.php b/files/lib/system/command/TemproomCommand.class.php index bf6e491..9a377f0 100644 --- a/files/lib/system/command/TemproomCommand.class.php +++ b/files/lib/system/command/TemproomCommand.class.php @@ -26,7 +26,7 @@ use wcf\system\WCF; /** * The temproom command allows a user to manage temporary rooms. */ -class TemproomCommand extends AbstractCommand implements ICommand +final class TemproomCommand extends AbstractCommand implements ICommand { use TNeedsUser; diff --git a/files/lib/system/command/UnbanCommand.class.php b/files/lib/system/command/UnbanCommand.class.php index c23a3ad..a10a268 100644 --- a/files/lib/system/command/UnbanCommand.class.php +++ b/files/lib/system/command/UnbanCommand.class.php @@ -25,7 +25,7 @@ use wcf\system\WCF; /** * The unban command revokes a new be.bastelstu.chat.suspension.ban suspension. */ -class UnbanCommand extends AbstractUnsuspensionCommand implements ICommand +final class UnbanCommand extends AbstractUnsuspensionCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/UnmuteCommand.class.php b/files/lib/system/command/UnmuteCommand.class.php index 6481906..e82f401 100644 --- a/files/lib/system/command/UnmuteCommand.class.php +++ b/files/lib/system/command/UnmuteCommand.class.php @@ -24,7 +24,7 @@ use wcf\system\WCF; /** * The unmute command revokes a new be.bastelstu.chat.suspension.mute suspension. */ -class UnmuteCommand extends AbstractUnsuspensionCommand implements ICommand +final class UnmuteCommand extends AbstractUnsuspensionCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/WhereCommand.class.php b/files/lib/system/command/WhereCommand.class.php index ea504b1..ab77737 100644 --- a/files/lib/system/command/WhereCommand.class.php +++ b/files/lib/system/command/WhereCommand.class.php @@ -26,7 +26,7 @@ use wcf\system\WCF; * The where command shows the distribution of users among * the different chat rooms. */ -class WhereCommand extends AbstractCommand implements ICommand +final class WhereCommand extends AbstractCommand implements ICommand { /** * @inheritDoc diff --git a/files/lib/system/command/WhisperCommand.class.php b/files/lib/system/command/WhisperCommand.class.php index 45c7fce..aad7e5a 100644 --- a/files/lib/system/command/WhisperCommand.class.php +++ b/files/lib/system/command/WhisperCommand.class.php @@ -27,7 +27,7 @@ use wcf\system\WCF; * The whisper command creates a private message * between two chat users. */ -class WhisperCommand extends AbstractInputProcessedCommand implements ICommand +final class WhisperCommand extends AbstractInputProcessedCommand implements ICommand { use TNeedsUser;