| @@ -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 | 
| @@ -48,8 +48,8 @@ | ||
| 48 | 48 | } | 
| 49 | 49 | |
| 50 | 50 | //Look for and detect IPv4/IPv6 addresses in comment text, and warn the commenter. | 
| 51 | - $ipv4Regex = '/\b' . RegexConstants::IPV4 . '\b/'; | |
| 52 | - $ipv6Regex = '/\b' . RegexConstants::IPV6 . '\b/'; | |
| 51 | + $ipv4Regex = '/\b'.RegexConstants::IPV4.'\b/'; | |
| 52 | + $ipv6Regex = '/\b'.RegexConstants::IPV6.'\b/'; | |
| 53 | 53 | |
| 54 | 54 |          $overridePolicy = WebRequest::postBoolean('privpol-check-override'); | 
| 55 | 55 | |
| @@ -50,7 +50,7 @@ | ||
| 50 | 50 | } | 
| 51 | 51 |              catch (PDOException $ex) { | 
| 52 | 52 | // wrap around any potential stack traces which may include passwords | 
| 53 | -                throw new EnvironmentException("Error connecting to database '$connectionName': " . $ex->getMessage()); | |
| 53 | +                throw new EnvironmentException("Error connecting to database '$connectionName': ".$ex->getMessage()); | |
| 54 | 54 | } | 
| 55 | 55 | |
| 56 | 56 | $databaseObject->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | 
| @@ -58,7 +58,7 @@ | ||
| 58 | 58 | $errorId = sha1($state); | 
| 59 | 59 | |
| 60 | 60 | // Save the error for later analysis | 
| 61 | - file_put_contents($siteConfiguration->getErrorLog() . '/' . $errorId . '.log', $state); | |
| 61 | + file_put_contents($siteConfiguration->getErrorLog().'/'.$errorId.'.log', $state); | |
| 62 | 62 | |
| 63 | 63 | // clear and discard any content that's been saved to the output buffer | 
| 64 | 64 |          if (ob_get_level() > 0) { | 
| @@ -120,7 +120,7 @@ | ||
| 120 | 120 | } | 
| 121 | 121 | |
| 122 | 122 |          // username can't contain #@/<>[]|{} | 
| 123 | -        if (preg_match("/[" . preg_quote("#@/<>[]|{}", "/") . "]/", $this->request->getName()) === 1) { | |
| 123 | +        if (preg_match("/[".preg_quote("#@/<>[]|{}", "/")."]/", $this->request->getName()) === 1) { | |
| 124 | 124 | $errorList[ValidationError::NAME_INVALIDCHAR] = new ValidationError(ValidationError::NAME_INVALIDCHAR); | 
| 125 | 125 | } | 
| 126 | 126 | |
| @@ -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; | 
| @@ -25,14 +25,14 @@ | ||
| 25 | 25 | } | 
| 26 | 26 | |
| 27 | 27 | $paths = array( | 
| 28 | - __DIR__ . '/' . $class . ".php", | |
| 29 | - __DIR__ . '/DataObjects/' . $class . ".php", | |
| 30 | - __DIR__ . '/Providers/' . $class . ".php", | |
| 31 | - __DIR__ . '/Providers/Interfaces/' . $class . ".php", | |
| 32 | - __DIR__ . '/Validation/' . $class . ".php", | |
| 33 | - __DIR__ . '/Helpers/' . $class . ".php", | |
| 34 | - __DIR__ . '/Helpers/Interfaces/' . $class . ".php", | |
| 35 | - __DIR__ . '/' . $class . ".php", | |
| 28 | + __DIR__.'/'.$class.".php", | |
| 29 | + __DIR__.'/DataObjects/'.$class.".php", | |
| 30 | + __DIR__.'/Providers/'.$class.".php", | |
| 31 | + __DIR__.'/Providers/Interfaces/'.$class.".php", | |
| 32 | + __DIR__.'/Validation/'.$class.".php", | |
| 33 | + __DIR__.'/Helpers/'.$class.".php", | |
| 34 | + __DIR__.'/Helpers/Interfaces/'.$class.".php", | |
| 35 | + __DIR__.'/'.$class.".php", | |
| 36 | 36 | ); | 
| 37 | 37 | |
| 38 | 38 |          foreach ($paths as $file) { |