@@ -129,7 +129,7 @@ |
||
129 | 129 | /** |
130 | 130 | * Assigns a Smarty variable |
131 | 131 | * |
132 | - * @param array|string $name the template variable name(s) |
|
132 | + * @param string $name the template variable name(s) |
|
133 | 133 | * @param mixed $value the value to assign |
134 | 134 | */ |
135 | 135 | abstract protected function assign($name, $value); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | /** |
48 | 48 | * Gets the default route if no explicit route is requested. |
49 | 49 | * |
50 | - * @return callable |
|
50 | + * @return string[] |
|
51 | 51 | */ |
52 | 52 | protected function getDefaultRoute() |
53 | 53 | { |
@@ -435,7 +435,7 @@ |
||
435 | 435 | } |
436 | 436 | |
437 | 437 | /** |
438 | - * @return callable |
|
438 | + * @return string[] |
|
439 | 439 | */ |
440 | 440 | protected function getDefaultRoute() |
441 | 441 | { |
@@ -358,7 +358,7 @@ |
||
358 | 358 | $routeMap = $this->routePathSegments($classSegment, $requestedAction); |
359 | 359 | |
360 | 360 | if ($routeMap[0] === Page404::class) { |
361 | - $routeMap = $this->routeSinglePathSegment($classSegment . '/' . $requestedAction); |
|
361 | + $routeMap = $this->routeSinglePathSegment($classSegment.'/'.$requestedAction); |
|
362 | 362 | } |
363 | 363 | |
364 | 364 | return $routeMap; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | $BUbasefile = "backup"; // The basefile's name. |
132 | 132 | $BUdir = "/home/project/a/c/c/acc/backups"; // The directory where backups should be stored. |
133 | -$BUmonthdir = $BUdir . "/monthly"; // The directory where monthly backups should be stored. |
|
133 | +$BUmonthdir = $BUdir."/monthly"; // The directory where monthly backups should be stored. |
|
134 | 134 | $BUdumper = "/opt/ts/mysql/5.1/bin/mysqldump --defaults-file=~/.my.cnf p_acc_live"; // Add parameters here if they are needed. |
135 | 135 | $BUgzip = "/usr/bin/gzip"; // Add the gzip parameters here if needed. |
136 | 136 | $BUtar = "/bin/tar -cvf"; // Add the tar parameters here if needed. |
@@ -253,17 +253,17 @@ discard block |
||
253 | 253 | |
254 | 254 | $cDatabaseConfig = array( |
255 | 255 | "acc" => array( |
256 | - "dsrcname" => "mysql:host=" . $toolserver_host . ";dbname=" . $toolserver_database, |
|
256 | + "dsrcname" => "mysql:host=".$toolserver_host.";dbname=".$toolserver_database, |
|
257 | 257 | "username" => $toolserver_username, |
258 | 258 | "password" => $toolserver_password, |
259 | 259 | ), |
260 | 260 | "wikipedia" => array( |
261 | - "dsrcname" => "mysql:host=" . $antispoof_host . ";dbname=" . $antispoof_db, |
|
261 | + "dsrcname" => "mysql:host=".$antispoof_host.";dbname=".$antispoof_db, |
|
262 | 262 | "username" => $toolserver_username, |
263 | 263 | "password" => $toolserver_password, |
264 | 264 | ), |
265 | 265 | "notifications" => array( |
266 | - "dsrcname" => "mysql:host=" . $toolserver_notification_dbhost . ";dbname=" . $toolserver_notification_database, |
|
266 | + "dsrcname" => "mysql:host=".$toolserver_notification_dbhost.";dbname=".$toolserver_notification_database, |
|
267 | 267 | "username" => $notifications_username, |
268 | 268 | "password" => $notifications_password, |
269 | 269 | ), |
@@ -293,13 +293,13 @@ discard block |
||
293 | 293 | } |
294 | 294 | |
295 | 295 | // Set up the AutoLoader |
296 | -require_once(__DIR__ . "/includes/AutoLoader.php"); |
|
296 | +require_once(__DIR__."/includes/AutoLoader.php"); |
|
297 | 297 | spl_autoload_register('Waca\\AutoLoader::load'); |
298 | -require_once(__DIR__ . '/vendor/autoload.php'); |
|
298 | +require_once(__DIR__.'/vendor/autoload.php'); |
|
299 | 299 | |
300 | 300 | // Extra includes which are just plain awkward wherever they are. |
301 | -require_once(__DIR__ . '/lib/mediawiki-extensions-OAuth/lib/OAuth.php'); |
|
302 | -require_once(__DIR__ . '/lib/mediawiki-extensions-OAuth/lib/JWT.php'); |
|
301 | +require_once(__DIR__.'/lib/mediawiki-extensions-OAuth/lib/OAuth.php'); |
|
302 | +require_once(__DIR__.'/lib/mediawiki-extensions-OAuth/lib/JWT.php'); |
|
303 | 303 | |
304 | 304 | // Crap that's needed for libraries. >:( |
305 | 305 | /** |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $CORSallowed = $this->getSiteConfiguration()->getCrossOriginResourceSharingHosts(); |
70 | 70 | |
71 | 71 | if (in_array($httpOrigin, $CORSallowed)) { |
72 | - header("Access-Control-Allow-Origin: " . $httpOrigin); |
|
72 | + header("Access-Control-Allow-Origin: ".$httpOrigin); |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | protected function main() |
21 | 21 | { |
22 | - $path = $this->getSiteConfiguration()->getFilePath() . '/team.json'; |
|
22 | + $path = $this->getSiteConfiguration()->getFilePath().'/team.json'; |
|
23 | 23 | $json = file_get_contents($path); |
24 | 24 | |
25 | 25 | $teamData = json_decode($json, true); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | $safeUsername = htmlentities($user->getUsername(), ENT_COMPAT, 'UTF-8'); |
65 | - $this->setHtmlTitle($safeUsername . ' :: Users :: Statistics'); |
|
65 | + $this->setHtmlTitle($safeUsername.' :: Users :: Statistics'); |
|
66 | 66 | |
67 | 67 | $activitySummary = $database->prepare(<<<SQL |
68 | 68 | SELECT COALESCE(closes.mail_desc, log.action) AS action, COUNT(*) AS count |
@@ -36,7 +36,7 @@ |
||
36 | 36 | } |
37 | 37 | else { |
38 | 38 | // This is the login form, not the request form. We need protection here. |
39 | - $this->redirectUrl('https://' . WebRequest::serverName() . WebRequest::requestUri()); |
|
39 | + $this->redirectUrl('https://'.WebRequest::serverName().WebRequest::requestUri()); |
|
40 | 40 | |
41 | 41 | return; |
42 | 42 | } |
@@ -239,11 +239,11 @@ |
||
239 | 239 | |
240 | 240 | $emailSig = $currentUser->getEmailSig(); |
241 | 241 | if ($emailSig !== '' || $emailSig !== null) { |
242 | - $emailSig = "\n\n" . $emailSig; |
|
242 | + $emailSig = "\n\n".$emailSig; |
|
243 | 243 | } |
244 | 244 | |
245 | 245 | $subject = "RE: [ACC #{$request->getId()}] English Wikipedia Account Request"; |
246 | - $content = $mailText . $emailSig; |
|
246 | + $content = $mailText.$emailSig; |
|
247 | 247 | |
248 | 248 | $helper->sendMail($request->getEmail(), $subject, $content, $headers); |
249 | 249 |