Remove obsolete workaround for PHP_CodeSniffer bug
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 13 May 2022 09:38:41 +0000 (11:38 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 13 May 2022 09:38:41 +0000 (11:38 +0200)
wcfsetup/install/files/lib/data/user/User.class.php
wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php

index a1d6404cb218f72f8c33287578701ad2db822805..8e306574f0a46bbb155bac75d39f198e60914fed 100644 (file)
@@ -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
     ) {
index 2f22167665af472ab67f2215e5ca776379335e7e..c14878ea9289736cd4614c961eebc8b93bc8943b 100644 (file)
@@ -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