@@ -241,7 +241,7 @@ discard block  | 
                                                    ||
| 241 | 241 | $curlDisableSSLVerifyPeer = false;  | 
                                                        
| 242 | 242 | |
| 243 | 243 | // Change this to be outside the web directory.  | 
                                                        
| 244 | -$curlCookieJar = __DIR__ . '/../cookies.txt';  | 
                                                        |
| 244 | +$curlCookieJar = __DIR__.'/../cookies.txt';  | 
                                                        |
| 245 | 245 | |
| 246 | 246 | $yubicoApiId = 0;  | 
                                                        
| 247 | 247 | $yubicoApiKey = "";  | 
                                                        
@@ -260,19 +260,19 @@ discard block  | 
                                                    ||
| 260 | 260 | |
| 261 | 261 | $cDatabaseConfig = array(  | 
                                                        
| 262 | 262 | "acc" => array(  | 
                                                        
| 263 | - "dsrcname" => "mysql:host=" . $toolserver_host . ";dbname=" . $toolserver_database,  | 
                                                        |
| 263 | + "dsrcname" => "mysql:host=".$toolserver_host.";dbname=".$toolserver_database,  | 
                                                        |
| 264 | 264 | "username" => $toolserver_username,  | 
                                                        
| 265 | 265 | "password" => $toolserver_password,  | 
                                                        
| 266 | 266 | "options" => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4'),  | 
                                                        
| 267 | 267 | ),  | 
                                                        
| 268 | 268 | "wikipedia" => array(  | 
                                                        
| 269 | - "dsrcname" => "mysql:host=" . $antispoof_host . ";dbname=" . $antispoof_db,  | 
                                                        |
| 269 | + "dsrcname" => "mysql:host=".$antispoof_host.";dbname=".$antispoof_db,  | 
                                                        |
| 270 | 270 | "username" => $toolserver_username,  | 
                                                        
| 271 | 271 | "password" => $toolserver_password,  | 
                                                        
| 272 | 272 | "options" => array(),  | 
                                                        
| 273 | 273 | ),  | 
                                                        
| 274 | 274 | "notifications" => array(  | 
                                                        
| 275 | - "dsrcname" => "mysql:host=" . $toolserver_notification_dbhost . ";dbname=" . $toolserver_notification_database,  | 
                                                        |
| 275 | + "dsrcname" => "mysql:host=".$toolserver_notification_dbhost.";dbname=".$toolserver_notification_database,  | 
                                                        |
| 276 | 276 | "username" => $notifications_username,  | 
                                                        
| 277 | 277 | "password" => $notifications_password,  | 
                                                        
| 278 | 278 | "options" => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4'),  | 
                                                        
@@ -303,9 +303,9 @@ discard block  | 
                                                    ||
| 303 | 303 | }  | 
                                                        
| 304 | 304 | |
| 305 | 305 | // Set up the AutoLoader  | 
                                                        
| 306 | -require_once(__DIR__ . "/includes/AutoLoader.php");  | 
                                                        |
| 306 | +require_once(__DIR__."/includes/AutoLoader.php");  | 
                                                        |
| 307 | 307 |  spl_autoload_register('Waca\\AutoLoader::load'); | 
                                                        
| 308 | -require_once(__DIR__ . '/vendor/autoload.php');  | 
                                                        |
| 308 | +require_once(__DIR__.'/vendor/autoload.php');  | 
                                                        |
| 309 | 309 | |
| 310 | 310 | // Crap that's needed for libraries. >:(  | 
                                                        
| 311 | 311 | /**  | 
                                                        
@@ -90,7 +90,7 @@ discard block  | 
                                                    ||
| 90 | 90 | |
| 91 | 91 | $apiParams['format'] = 'json';  | 
                                                        
| 92 | 92 | |
| 93 | -        if ($apiParams === null || ! is_array($apiParams)) { | 
                                                        |
| 93 | +        if ($apiParams === null || !is_array($apiParams)) { | 
                                                        |
| 94 | 94 |              throw new CurlException("Invalid API call"); | 
                                                        
| 95 | 95 | }  | 
                                                        
| 96 | 96 | |
@@ -99,7 +99,7 @@ discard block  | 
                                                    ||
| 99 | 99 | |
| 100 | 100 |          if ($method === 'GET') { | 
                                                        
| 101 | 101 | $query = http_build_query($apiParams);  | 
                                                        
| 102 | - $url .= '?' . $query;  | 
                                                        |
| 102 | + $url .= '?'.$query;  | 
                                                        |
| 103 | 103 | $apiParams = null;  | 
                                                        
| 104 | 104 | }  | 
                                                        
| 105 | 105 | |
@@ -592,7 +592,7 @@  | 
                                                    ||
| 592 | 592 |      { | 
                                                        
| 593 | 593 | $cookie = &self::$globalStateProvider->getCookieSuperGlobal();  | 
                                                        
| 594 | 594 | |
| 595 | -        if(isset($cookie['sitenotice'])) { | 
                                                        |
| 595 | +        if (isset($cookie['sitenotice'])) { | 
                                                        |
| 596 | 596 | return $cookie['sitenotice'] === $expectedHash;  | 
                                                        
| 597 | 597 | }  | 
                                                        
| 598 | 598 | |