Passed
Push — master ( 79b18a...ffcc8f )
by Nils
02:37
created
src/Collector/Network/NetworkTrafficCollector.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,9 @@  discard block
 block discarded – undo
25 25
 
26 26
         $file = new File();
27 27
 
28
-        if (!$file->fileExists('/proc/net/dev')) return 0;
28
+        if (!$file->fileExists('/proc/net/dev')) {
29
+            return 0;
30
+        }
29 31
 
30 32
         $lines = $file->getContents('/proc/net/dev', true);
31 33
         foreach ($lines as $line) {
@@ -38,7 +40,9 @@  discard block
 block discarded – undo
38 40
             }
39 41
         }
40 42
 
41
-        if (!isset($total)) return 0;
43
+        if (!isset($total)) {
44
+            return 0;
45
+        }
42 46
 
43 47
         $history = $memory->getData(self::MEMORY_KEY) ?? [];
44 48
         $lastTotal = end($history);
Please login to merge, or discard this patch.