@@ -29,7 +29,7 @@ discard block  | 
                                                    ||
| 29 | 29 | *  | 
                                                        
| 30 | 30 | * @return PhpIniCheck  | 
                                                        
| 31 | 31 | */  | 
                                                        
| 32 | - public function __construct(string $label, string $varName, string $varType, $varValue, $maxValue=null)  | 
                                                        |
| 32 | + public function __construct(string $label, string $varName, string $varType, $varValue, $maxValue = null)  | 
                                                        |
| 33 | 33 |      { | 
                                                        
| 34 | 34 | parent::__construct($label);  | 
                                                        
| 35 | 35 | $this->varName = $varName;  | 
                                                        
@@ -45,14 +45,14 @@ discard block  | 
                                                    ||
| 45 | 45 | */  | 
                                                        
| 46 | 46 | protected function stringToMegabyte(string $size)  | 
                                                        
| 47 | 47 |      { | 
                                                        
| 48 | -        $value = preg_replace('~[^0-9]*~','', $size); | 
                                                        |
| 48 | +        $value = preg_replace('~[^0-9]*~', '', $size); | 
                                                        |
| 49 | 49 |          switch (substr(strtolower($size), -1)) { | 
                                                        
| 50 | 50 | case 'm':  | 
                                                        
| 51 | - return (int)$value;  | 
                                                        |
| 51 | + return (int) $value;  | 
                                                        |
| 52 | 52 | case 'k':  | 
                                                        
| 53 | - return round((int)$value / 1024);  | 
                                                        |
| 53 | + return round((int) $value / 1024);  | 
                                                        |
| 54 | 54 | case 'g':  | 
                                                        
| 55 | - return ((int)$value * 1024);  | 
                                                        |
| 55 | + return ((int) $value * 1024);  | 
                                                        |
| 56 | 56 | default:  | 
                                                        
| 57 | 57 | return false;  | 
                                                        
| 58 | 58 | }  | 
                                                        
@@ -78,7 +78,7 @@ discard block  | 
                                                    ||
| 78 | 78 | default:  | 
                                                        
| 79 | 79 | $result = new Result($this->label);  | 
                                                        
| 80 | 80 | $result->setSuccess(false);  | 
                                                        
| 81 | -                $result->setError("Invalid Type: " . $this->varType); | 
                                                        |
| 81 | +                $result->setError("Invalid Type: ".$this->varType); | 
                                                        |
| 82 | 82 | return $result;  | 
                                                        
| 83 | 83 | }  | 
                                                        
| 84 | 84 | }  | 
                                                        
@@ -88,7 +88,7 @@ discard block  | 
                                                    ||
| 88 | 88 | */  | 
                                                        
| 89 | 89 |      protected function checkBoolean() { | 
                                                        
| 90 | 90 | $result = new Result($this->label);  | 
                                                        
| 91 | - $result->setSuccess( boolval($this->iniValue) === boolval($this->varValue) );  | 
                                                        |
| 91 | + $result->setSuccess(boolval($this->iniValue) === boolval($this->varValue));  | 
                                                        |
| 92 | 92 |          $result->setError("php.ini value of '".$this->varName."' is set to '".strval(boolval($this->iniValue))."' instead of expected '".strval(boolval($this->varValue))."'"); | 
                                                        
| 93 | 93 | return $result;  | 
                                                        
| 94 | 94 | }  | 
                                                        
@@ -100,7 +100,7 @@ discard block  | 
                                                    ||
| 100 | 100 | $result = new Result($this->label);  | 
                                                        
| 101 | 101 |          if ($this->iniValue != -1) { | 
                                                        
| 102 | 102 | $value = $this->stringToMegabyte($this->iniValue);  | 
                                                        
| 103 | - $result->setSuccess( $value >= $this->varValue );  | 
                                                        |
| 103 | + $result->setSuccess($value >= $this->varValue);  | 
                                                        |
| 104 | 104 |              $result->setError("php.ini value of '".$this->varName."' is set to '".strval($this->iniValue)."', minimum expected is '".strval($this->varValue)."'"); | 
                                                        
| 105 | 105 | }  | 
                                                        
| 106 | 106 | return $result;  | 
                                                        
@@ -144,7 +144,7 @@ discard block  | 
                                                    ||
| 144 | 144 | */  | 
                                                        
| 145 | 145 |      protected function checkString() { | 
                                                        
| 146 | 146 | $result = new Result($this->label);  | 
                                                        
| 147 | - $result->setSuccess( strval($this->iniValue) == strval($this->varValue) );  | 
                                                        |
| 147 | + $result->setSuccess(strval($this->iniValue) == strval($this->varValue));  | 
                                                        |
| 148 | 148 |          $result->setError("php.ini value of '".$this->varName."' is set to '".strval($this->iniValue)."', expected is '".strval($this->varValue)."'"); | 
                                                        
| 149 | 149 | return $result;  | 
                                                        
| 150 | 150 | }  | 
                                                        
@@ -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\PhpIniCheck;  | 
                                                        
@@ -44,10 +44,10 @@ discard block  | 
                                                    ||
| 44 | 44 | |
| 45 | 45 | // determine if the user is allowed to see the details (based on their IP)  | 
                                                        
| 46 | 46 | $whitelistPattern = '.*'; // this intentionally matches everything  | 
                                                        
| 47 | -$showDetails = (bool)preg_match('|(?mi-Us)' . $whitelistPattern . '|', $_SERVER['REMOTE_ADDR']); | 
                                                        |
| 47 | +$showDetails = (bool) preg_match('|(?mi-Us)'.$whitelistPattern.'|', $_SERVER['REMOTE_ADDR']); | 
                                                        |
| 48 | 48 | |
| 49 | 49 | // use the built-in Twig template  | 
                                                        
| 50 | -$loader = new Twig_Loader_Filesystem(__DIR__ . '/../resources/views/');  | 
                                                        |
| 50 | +$loader = new Twig_Loader_Filesystem(__DIR__.'/../resources/views/');  | 
                                                        |
| 51 | 51 | $twig = new Twig_Environment($loader, ['autoescape' => false]);  | 
                                                        
| 52 | 52 | |
| 53 | 53 | $content = $twig->render(  |