Passed
Push — master ( 0050d3...ec838d )
by Nils
02:47
created
src/Metrics/Collector/Collector.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,9 @@  discard block
 block discarded – undo
49 49
 
50 50
         $file = new File();
51 51
 
52
-        if (!$file->fileExists('/proc/net/dev')) return 0;
52
+        if (!$file->fileExists('/proc/net/dev')) {
53
+            return 0;
54
+        }
53 55
 
54 56
         $lines = $file->getContents('/proc/net/dev', true);
55 57
         foreach ($lines as $line) {
@@ -62,7 +64,9 @@  discard block
 block discarded – undo
62 64
             }
63 65
         }
64 66
 
65
-        if (!isset($total)) return 0;
67
+        if (!isset($total)) {
68
+            return 0;
69
+        }
66 70
 
67 71
         $history = $memory->getData(self::MEMORY_KEY) ?? [];
68 72
 
Please login to merge, or discard this patch.