Completed
Push — checkuser-performance ( 0343fc )
by Simon
03:24
created
includes/DataObjects/User.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -654,9 +654,9 @@
 block discarded – undo
654 654
     
655 655
 	public function isCheckuser()
656 656
 	{
657
-	    if($this->isCheckuserCache === null) {
658
-	        $this->isCheckuserCache = $this->checkuser == 1 || $this->oauthCanCheckUser();
659
-        }
657
+		if($this->isCheckuserCache === null) {
658
+			$this->isCheckuserCache = $this->checkuser == 1 || $this->oauthCanCheckUser();
659
+		}
660 660
 
661 661
 		return $this->isCheckuserCache;
662 662
 	}
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
     
655 655
 	public function isCheckuser()
656 656
 	{
657
-	    if($this->isCheckuserCache === null) {
657
+	    if ($this->isCheckuserCache === null) {
658 658
 	        $this->isCheckuserCache = $this->checkuser == 1 || $this->oauthCanCheckUser();
659 659
         }
660 660
 
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
 				prepare("UPDATE user SET oauthidentitycache = null WHERE id = :id;")->
795 795
 				execute(array(":id" => $this->id));
796 796
 
797
-			SessionAlert::warning("OAuth error getting identity from MediaWiki: " . $ex->getMessage());
797
+			SessionAlert::warning("OAuth error getting identity from MediaWiki: ".$ex->getMessage());
798 798
 		}   
799 799
 	}
800 800
     
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
     
870 870
 	public function getForgottenPasswordHash()
871 871
 	{
872
-		return md5($this->username . $this->email . $this->welcome_template . $this->id . $this->password);
872
+		return md5($this->username.$this->email.$this->welcome_template.$this->id.$this->password);
873 873
 	}
874 874
 
875 875
 	public function getApprovalDate()
@@ -894,6 +894,6 @@  discard block
 block discarded – undo
894 894
 	
895 895
 	public function getObjectDescription()
896 896
 	{
897
-		return '<a href="statistics.php?page=Users&amp;user=' . $this->getId() . '">' . htmlentities($this->username) . "</a>";
897
+		return '<a href="statistics.php?page=Users&amp;user='.$this->getId().'">'.htmlentities($this->username)."</a>";
898 898
 	}
899 899
 }
Please login to merge, or discard this patch.