Whitespace cleanup for r57877
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 20 Oct 2009 19:48:22 +0000 (19:48 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 20 Oct 2009 19:48:22 +0000 (19:48 +0000)
includes/User.php

index ac1f7c2..6b5e8b6 100644 (file)
@@ -643,14 +643,13 @@ class User {
        function getPasswordValidity( $password ) {
                global $wgMinimalPasswordLength, $wgContLang;
                
-               if(!$this->isValidPassword( $password ))        {
+               if ( !$this->isValidPassword( $password ) ) {
                        if( strlen( $password ) < $wgMinimalPasswordLength ) {
                                return 'passwordtooshort';
-                       } elseif( $wgContLang->lc( $password ) == $wgContLang->lc( $this->mName ) ) {
+                       } elseif ( $wgContLang->lc( $password ) == $wgContLang->lc( $this->mName ) ) {
                                return 'password-name-match';
                        }
-               }
-               else    {
+               } else {
                        return true;
                }
        }