Completed
Push — master ( 6c6dd7...a2efe6 )
by Bret R.
11s
created
src/Check/PhpVersionCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
         $phpVersion = $this->getPhpVersion();
42 42
         if (null !== $this->greaterEquals && !version_compare($this->greaterEquals, $phpVersion, '<=')) {
43 43
             $result->setSuccess(false);
44
-            $result->setError("PHP version must be >= {$this->greaterEquals}; is " . $phpVersion);
44
+            $result->setError("PHP version must be >= {$this->greaterEquals}; is ".$phpVersion);
45 45
         }
46 46
 
47 47
         if (null !== $this->lessThan && !version_compare($this->lessThan, $phpVersion, '>')) {
48 48
             $result->setSuccess(false);
49
-            $result->setError("PHP version must be < {$this->lessThan}; is " . $phpVersion);
49
+            $result->setError("PHP version must be < {$this->lessThan}; is ".$phpVersion);
50 50
         }
51 51
 
52 52
         return $result;
Please login to merge, or discard this patch.
src/Check/PhpMemoryLimitCheck.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,15 +33,15 @@
 block discarded – undo
33 33
         switch (substr($sizeStr, -1)) {
34 34
             case 'M':
35 35
             case 'm':
36
-                return (int)$sizeStr;
36
+                return (int) $sizeStr;
37 37
 
38 38
             case 'K':
39 39
             case 'k':
40
-                return (int)$sizeStr / 1024;
40
+                return (int) $sizeStr / 1024;
41 41
 
42 42
             case 'G':
43 43
             case 'g':
44
-                return (int)$sizeStr * 1024;
44
+                return (int) $sizeStr * 1024;
45 45
 
46 46
             default:
47 47
                 return $sizeStr;
Please login to merge, or discard this patch.
src/StatusCheckerGroup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function check()
49 49
     {
50
-        foreach($this->checks as $checker) {
50
+        foreach ($this->checks as $checker) {
51 51
             $this->results[] = $checker->check();
52 52
         }
53 53
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function hasErrors(): bool
71 71
     {
72 72
         $error = false;
73
-        foreach($this->results as $result) {
73
+        foreach ($this->results as $result) {
74 74
             if (!$result->getSuccess()) {
75 75
                 $error = true;
76 76
                 break;
Please login to merge, or discard this patch.
src/StatusChecker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function check()
34 34
     {
35
-        foreach($this->results as $group) {
35
+        foreach ($this->results as $group) {
36 36
             $group->check();
37 37
         }
38 38
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function hasErrors(): bool
46 46
     {
47 47
         $error = false;
48
-        foreach($this->results as $group) {
48
+        foreach ($this->results as $group) {
49 49
             if ($group->hasErrors()) {
50 50
                 $error = true;
51 51
                 break;
Please login to merge, or discard this patch.
examples/standalone.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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;
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 $checker->check();
29 29
 
30 30
 // use the built-in Twig template
31
-$loader = new Twig_Loader_Filesystem(__DIR__ . '/../resources/views/');
31
+$loader = new Twig_Loader_Filesystem(__DIR__.'/../resources/views/');
32 32
 $twig = new Twig_Environment($loader, ['autoescape' => false]);
33 33
 
34 34
 $content = $twig->render(
Please login to merge, or discard this patch.