Cleanup: Fix yoda and indentation in SpecialUserlogin.php
authorTimo Tijhof <ttijhof@wikimedia.org>
Mon, 19 Nov 2012 16:33:31 +0000 (17:33 +0100)
committerTimo Tijhof <ttijhof@wikimedia.org>
Mon, 19 Nov 2012 16:33:48 +0000 (17:33 +0100)
Change-Id: I0bde21a8da679350559779132dbd7b1ba85116d1

includes/specials/SpecialUserlogin.php

index c077c4d..fd8ecb3 100644 (file)
@@ -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() );