From 2b9f8fe03eb4b8a860361d87dde2d0937ed81570 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 13 May 2022 11:38:41 +0200 Subject: [PATCH] Remove obsolete workaround for PHP_CodeSniffer bug --- wcfsetup/install/files/lib/data/user/User.class.php | 3 --- .../user/authentication/DefaultUserAuthentication.class.php | 2 -- 2 files changed, 5 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index a1d6404cb2..8e306574f0 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -154,9 +154,6 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl * @return bool password correct */ public function checkPassword( - // phpcs:disable Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint - // phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.FirstParamSpacing - // https://github.com/squizlabs/PHP_CodeSniffer/pull/3320 #[\wcf\SensitiveArgument()] $password ) { diff --git a/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php b/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php index 2f22167665..c14878ea92 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php @@ -36,8 +36,6 @@ class DefaultUserAuthentication extends AbstractUserAuthentication */ public function loginManually( $username, - // phpcs:disable Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint - // https://github.com/squizlabs/PHP_CodeSniffer/pull/3320 #[\wcf\SensitiveArgument()] $password, $userClassname = User::class -- 2.20.1