@@ -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; |
@@ -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) { |