@@ -24,8 +24,7 @@ |
||
| 24 | 24 | $dateString = $date->format('Y-m-d H:i:s'); |
| 25 | 25 | |
| 26 | 26 | return $dateString; |
| 27 | - } |
|
| 28 | - else { |
|
| 27 | + } else { |
|
| 29 | 28 | return $input; |
| 30 | 29 | } |
| 31 | 30 | } |
| 32 | 31 | \ No newline at end of file |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | ob_end_clean(); |
| 76 | 76 | |
| 77 | 77 | $message = str_replace('$2$', $textErrorData, $message); |
| 78 | - } |
|
| 79 | - else { |
|
| 78 | + } else { |
|
| 80 | 79 | $message = str_replace('$2$', "", $message); |
| 81 | 80 | } |
| 82 | 81 | |
@@ -295,8 +295,7 @@ |
||
| 295 | 295 | if (!$proxyIsInPrivateRange) { |
| 296 | 296 | $proxyReverseDns = $this->getRdnsProvider()->getReverseDNS($proxyAddress); |
| 297 | 297 | $proxyLocation = $this->getLocationProvider()->getIpLocation($proxyAddress); |
| 298 | - } |
|
| 299 | - else { |
|
| 298 | + } else { |
|
| 300 | 299 | // this is going to fail, so why bother trying? |
| 301 | 300 | $proxyReverseDns = false; |
| 302 | 301 | $proxyLocation = false; |
@@ -66,8 +66,7 @@ |
||
| 66 | 66 | $this->cache[$username] = false; |
| 67 | 67 | |
| 68 | 68 | return false; |
| 69 | - } |
|
| 70 | - else { |
|
| 69 | + } else { |
|
| 71 | 70 | $this->cache[$username] = $result; |
| 72 | 71 | |
| 73 | 72 | return $result['line']; |
@@ -196,18 +196,17 @@ |
||
| 196 | 196 | if ($this->roleConfiguration->roleNeedsIdentification($v)) { |
| 197 | 197 | if ($identified) { |
| 198 | 198 | $activeRoles[] = $v; |
| 199 | - } |
|
| 200 | - else { |
|
| 199 | + } else { |
|
| 201 | 200 | $inactiveRoles[] = $v; |
| 202 | 201 | } |
| 203 | - } |
|
| 204 | - else { |
|
| 202 | + } else { |
|
| 205 | 203 | $activeRoles[] = $v; |
| 206 | 204 | } |
| 207 | 205 | } |
| 208 | 206 | } |
| 209 | 207 | |
| 210 | - public function getRoleConfiguration(){ |
|
| 208 | + public function getRoleConfiguration() |
|
| 209 | + { |
|
| 211 | 210 | return $this->roleConfiguration; |
| 212 | 211 | } |
| 213 | 212 | } |
@@ -83,8 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | if ($siteConfiguration->getTitleBlacklistEnabled()) { |
| 85 | 85 | $page->setBlacklistHelper(new FakeBlacklistHelper()); |
| 86 | - } |
|
| 87 | - else { |
|
| 86 | + } else { |
|
| 88 | 87 | $page->setBlacklistHelper(new BlacklistHelper($page->getHttpHelper(), |
| 89 | 88 | $siteConfiguration->getMediawikiWebServiceEndpoint())); |
| 90 | 89 | } |
@@ -178,8 +177,7 @@ discard block |
||
| 178 | 177 | |
| 179 | 178 | if ($siteConfiguration->getIrcNotificationsEnabled()) { |
| 180 | 179 | $notificationsDatabase = PdoDatabase::getDatabaseConnection('notifications'); |
| 181 | - } |
|
| 182 | - else { |
|
| 180 | + } else { |
|
| 183 | 181 | // @todo federated table here? |
| 184 | 182 | $notificationsDatabase = $database; |
| 185 | 183 | } |
@@ -48,8 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | if ($username !== null) { |
| 50 | 50 | $user = User::getByUsername($username, $this->getDatabase()); |
| 51 | - } |
|
| 52 | - else { |
|
| 51 | + } else { |
|
| 53 | 52 | $user = User::getByOnWikiUsername($wikiusername, $this->getDatabase()); |
| 54 | 53 | } |
| 55 | 54 | |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | if ($this->getConfiguration()->getIrcNotificationsEnabled()) { |
| 59 | 59 | $notificationsDatabase = PdoDatabase::getDatabaseConnection('notifications'); |
| 60 | - } |
|
| 61 | - else { |
|
| 60 | + } else { |
|
| 62 | 61 | // pass through null |
| 63 | 62 | $notificationsDatabase = null; |
| 64 | 63 | } |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | { |
| 79 | 79 | if (ord($string) < 128) { |
| 80 | 80 | return ucfirst($string); |
| 81 | - } |
|
| 82 | - else { |
|
| 81 | + } else { |
|
| 83 | 82 | return mb_strtoupper(mb_substr($string, 0, 1)) . mb_substr($string, 1); |
| 84 | 83 | } |
| 85 | 84 | } |