Passed
Push — master ( dfc848...4ef93f )
by Nils
02:39
created
src/Metrics/Memory/Memory.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,12 +47,16 @@
 block discarded – undo
47 47
 
48 48
     public function getNumberOfGreaterThan(string $key, int $threshold): int
49 49
     {
50
-        if (!array_key_exists($key, $this->data)) return 0;
50
+        if (!array_key_exists($key, $this->data)) {
51
+            return 0;
52
+        }
51 53
 
52 54
         $count = 0;
53 55
 
54 56
         foreach ($this->data[$key] as $value) {
55
-            if ($value >= $threshold) $count++;
57
+            if ($value >= $threshold) {
58
+                $count++;
59
+            }
56 60
         }
57 61
 
58 62
         return $count;
Please login to merge, or discard this patch.
src/Command/InitCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
             $serverName = $io->ask(
130 130
                 'Please provide the name of the server (default: ' . $defaultName . ')',
131 131
                 $defaultName,
132
-                function (?string $value) {
132
+                function(?string $value) {
133 133
                     if (strlen($value ?? '') < 3) {
134 134
                         throw new RuntimeException('The server name has to be at least three characters long.');
135 135
                     }
Please login to merge, or discard this patch.