user: Use cached singleton instance variable
authorReedy <reedy@wikimedia.org>
Fri, 13 Sep 2019 17:44:11 +0000 (18:44 +0100)
committerKrinkle <krinklemail@gmail.com>
Fri, 13 Sep 2019 17:48:42 +0000 (17:48 +0000)
Remove unnecesary qualification (there's a use statement)

Change-Id: I0c39e2086f38275db7912231f6ddbfa090f095d8

includes/user/User.php

index d71750b..6b3e3b2 100644 (file)
@@ -4320,13 +4320,13 @@ class User implements IDBAccessObject, UserIdentity {
                                'password' => $password,
                        ]
                );
-               $res = AuthManager::singleton()->beginAuthentication( $reqs, 'null:' );
+               $res = $manager->beginAuthentication( $reqs, 'null:' );
                switch ( $res->status ) {
                        case AuthenticationResponse::PASS:
                                return true;
                        case AuthenticationResponse::FAIL:
                                // Hope it's not a PreAuthenticationProvider that failed...
-                               \MediaWiki\Logger\LoggerFactory::getInstance( 'authentication' )
+                               LoggerFactory::getInstance( 'authentication' )
                                        ->info( __METHOD__ . ': Authentication failed: ' . $res->message->plain() );
                                return false;
                        default: