@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -require __DIR__ . '/../vendor/autoload.php'; |
|
2 | +require __DIR__.'/../vendor/autoload.php'; |
|
3 | 3 | |
4 | 4 | use BretRZaun\StatusPage\Check\PhpExtensionCheck; |
5 | 5 | use BretRZaun\StatusPage\Check\PhpMemoryLimitCheck; |
@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | |
30 | 30 | // determine if the user is allowed to see the details (based on their IP) |
31 | 31 | $whitelistPattern = '.*'; // this intentionally matches everything |
32 | -$showDetails = (bool)preg_match('|(?mi-Us)' . $whitelistPattern . '|', $_SERVER['REMOTE_ADDR']); |
|
32 | +$showDetails = (bool) preg_match('|(?mi-Us)'.$whitelistPattern.'|', $_SERVER['REMOTE_ADDR']); |
|
33 | 33 | |
34 | 34 | // use the built-in Twig template |
35 | -$loader = new Twig_Loader_Filesystem(__DIR__ . '/../resources/views/'); |
|
35 | +$loader = new Twig_Loader_Filesystem(__DIR__.'/../resources/views/'); |
|
36 | 36 | $twig = new Twig_Environment($loader, ['autoescape' => false]); |
37 | 37 | |
38 | 38 | $content = $twig->render( |