From 089f9e83ee73bec268a59e59a09944a5b834be94 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Mon, 19 Nov 2012 17:33:31 +0100 Subject: [PATCH] Cleanup: Fix yoda and indentation in SpecialUserlogin.php Change-Id: I0bde21a8da679350559779132dbd7b1ba85116d1 --- includes/specials/SpecialUserlogin.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index c077c4d411..fd8ecb3240 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -559,7 +559,7 @@ class LoginForm extends SpecialPage { } $isAutoCreated = false; - if ( 0 == $u->getID() ) { + if ( $u->getID() == 0 ) { $status = $this->attemptAutoCreate( $u ); if ( $status !== self::SUCCESS ) { return $status; @@ -569,8 +569,9 @@ class LoginForm extends SpecialPage { } else { global $wgExternalAuthType, $wgAutocreatePolicy; if ( $wgExternalAuthType && $wgAutocreatePolicy != 'never' - && is_object( $this->mExtUser ) - && $this->mExtUser->authenticate( $this->mPassword ) ) { + && is_object( $this->mExtUser ) + && $this->mExtUser->authenticate( $this->mPassword ) + ) { # The external user and local user have the same name and # password, so we assume they're the same. $this->mExtUser->linkToLocal( $u->getID() ); -- 2.20.1