Test Failed
Push — master ( 3b3a9e...7cd567 )
by Michael
02:25
created
includes/Helpers/Logger.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -360,8 +360,7 @@  discard block
 block discarded – undo
360 360
 			$countStatement->bindValue(":userFilter", 0, PDO::PARAM_INT);
361 361
 			$searchStatement->bindValue(":userid", 0, PDO::PARAM_INT);
362 362
 			$countStatement->bindValue(":userid", 0, PDO::PARAM_INT);
363
-		}
364
-		else {
363
+		} else {
365 364
 			$searchStatement->bindValue(":userFilter", 1, PDO::PARAM_INT);
366 365
 			$countStatement->bindValue(":userFilter", 1, PDO::PARAM_INT);
367 366
 			$searchStatement->bindValue(":userid", User::getByUsername($userFilter, $database)->getId(), PDO::PARAM_INT);
@@ -373,8 +372,7 @@  discard block
 block discarded – undo
373 372
 			$countStatement->bindValue(":actionFilter", 0, PDO::PARAM_INT);
374 373
 			$searchStatement->bindValue(":action", "", PDO::PARAM_STR);
375 374
 			$countStatement->bindValue(":action", "", PDO::PARAM_STR);
376
-		}
377
-		else {
375
+		} else {
378 376
 			$searchStatement->bindValue(":actionFilter", 1, PDO::PARAM_INT);
379 377
 			$countStatement->bindValue(":actionFilter", 1, PDO::PARAM_INT);
380 378
 			$searchStatement->bindValue(":action", $actionFilter, PDO::PARAM_STR);
Please login to merge, or discard this patch.
includes/API/Actions/StatsAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
 
50 50
 		if ($username !== '') {
51 51
 			$this->user = \User::getByUsername($username, $this->database);
52
-		}
53
-		else {
52
+		} else {
54 53
 			$this->user = \User::getByOnWikiUsername($wikiusername, $this->database);
55 54
 		}
56 55
 
Please login to merge, or discard this patch.
includes/Providers/CachedApiAntispoofProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
 			$cacheEntry->save();
25 25
 
26 26
 			$cacheResult = $cacheEntry;
27
-		}
28
-		else {
27
+		} else {
29 28
 			$data = $cacheResult->getData();
30 29
 		}
31 30
 
Please login to merge, or discard this patch.
includes/BootstrapSkin.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,8 +119,7 @@  discard block
 block discarded – undo
119 119
 		// not equal to one, as zero uses the plural form too.
120 120
 		if ($resultSetCount != 1) {
121 121
 			$onlinemessage = $resultSetCount . " Account Creators currently online (past 5 minutes): $creators";
122
-		}
123
-		else {
122
+		} else {
124 123
 			$onlinemessage = $resultSetCount . " Account Creator currently online (past 5 minutes): $creators";
125 124
 		}
126 125
 
@@ -128,8 +127,7 @@  discard block
 block discarded – undo
128 127
 
129 128
 		if (isset($_SESSION['user'])) {
130 129
 			$smarty->assign("onlineusers", $online);
131
-		}
132
-		else {
130
+		} else {
133 131
 			$emptystring = "";
134 132
 			$smarty->assign("onlineusers", $emptystring);
135 133
 		}
@@ -176,8 +174,7 @@  discard block
 block discarded – undo
176 174
 
177 175
 		if ($return) {
178 176
 			return $returnData;
179
-		}
180
-		else {
177
+		} else {
181 178
 			echo $returnData;
182 179
 			return null;
183 180
 		}
Please login to merge, or discard this patch.
includes/statistics/StatsMonthlyStats.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -145,8 +145,7 @@
 block discarded – undo
145 145
 				$out .= '<img src="' . $baseurl . '/render/' . $i[0] . '" alt="' . $i[1] . '"/>';
146 146
 			}
147 147
 
148
-		}
149
-		else {
148
+		} else {
150 149
 			$out .= BootstrapSkin::displayAlertBox("Graph drawing is currently disabled.", "alert-info", "", false, false, true);
151 150
 		}
152 151
 
Please login to merge, or discard this patch.
includes/statistics/StatsUsers.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@
 block discarded – undo
18 18
 	{
19 19
 		if (!isset($_GET['user'])) {
20 20
 			return $this->getUserList();
21
-		}
22
-		else {
21
+		} else {
23 22
 			return $this->getUserDetail($_GET['user']);
24 23
 		}
25 24
 	}
Please login to merge, or discard this patch.
includes/DataObjects/GeoLocation.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,12 +47,10 @@
 block discarded – undo
47 47
 			if ($statement->execute()) {
48 48
 				$this->isNew = false;
49 49
 				$this->id = $this->dbObject->lastInsertId();
50
-			}
51
-			else {
50
+			} else {
52 51
 				throw new Exception($statement->errorInfo());
53 52
 			}
54
-		}
55
-		else {
53
+		} else {
56 54
 // update
57 55
 			$statement = $this->dbObject->prepare("UPDATE `geolocation` SET address = :address, data = :data WHERE id = :id;");
58 56
 			$statement->bindValue(":address", $this->address);
Please login to merge, or discard this patch.
includes/DataObjects/RDnsCache.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,12 +41,10 @@
 block discarded – undo
41 41
 			if ($statement->execute()) {
42 42
 				$this->isNew = false;
43 43
 				$this->id = $this->dbObject->lastInsertId();
44
-			}
45
-			else {
44
+			} else {
46 45
 				throw new Exception($statement->errorInfo());
47 46
 			}
48
-		}
49
-		else {
47
+		} else {
50 48
 // update
51 49
 			$statement = $this->dbObject->prepare("UPDATE `rdnscache` SET address = :address, data = :data WHERE id = :id;");
52 50
 			$statement->bindValue(":address", $this->address);
Please login to merge, or discard this patch.
includes/DataObjects/Comment.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
 		if (User::getCurrent()->isAdmin() || User::getCurrent()->isCheckuser()) {
27 27
 			// current user is an admin or checkuser, so retrieve everything.
28 28
 			$statement = $database->prepare("SELECT * FROM comment WHERE request = :target;");
29
-		}
30
-		else {
29
+		} else {
31 30
 			// current user isn't an admin, so limit to only those which are visible to users, and private comments
32 31
 			// the user has posted themselves.
33 32
 			$statement = $database->prepare(<<<SQL
@@ -70,12 +69,10 @@  discard block
 block discarded – undo
70 69
 			if ($statement->execute()) {
71 70
 				$this->isNew = false;
72 71
 				$this->id = $this->dbObject->lastInsertId();
73
-			}
74
-			else {
72
+			} else {
75 73
 				throw new Exception($statement->errorInfo());
76 74
 			}
77
-		}
78
-		else {
75
+		} else {
79 76
 			// update
80 77
 			$statement = $this->dbObject->prepare(<<<SQL
81 78
 UPDATE comment
Please login to merge, or discard this patch.