Passed
Push — master ( a6f182...79b18a )
by Nils
03:03
created
src/Collector/System/Ports/PortsCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     private function parseListeningPorts(): array
52 52
     {
53
-        if(!Runner::getInstance()->commandExists("ss")) return [];
53
+        if (!Runner::getInstance()->commandExists("ss")) return [];
54 54
 
55 55
         $output = Runner::outputToArray(Runner::getInstance()->run("ss -tuln")->getOutput());
56 56
 
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.
src/Exec/Runner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         return explode("\n", trim($output));
60 60
     }
61 61
 
62
-    public function getFileContents(string $path, bool $asArray = false): string|false|array
62
+    public function getFileContents(string $path, bool $asArray = false): string | false | array
63 63
     {
64 64
         if ($asArray) {
65 65
             return file($path);
Please login to merge, or discard this patch.
src/Collector/System/Security/AuthorizedKeysCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             }
30 30
 
31 31
             // Extract username, UID, and home directory
32
-            [$username, , $uid, , , $homeDirectory] = array_slice($parts, 0, 6);
32
+            [$username,, $uid,,, $homeDirectory] = array_slice($parts, 0, 6);
33 33
 
34 34
             // Only consider regular users (UID >= 1000) with a valid home directory
35 35
             if (!File::getInstance()->isDir($homeDirectory)) {
Please login to merge, or discard this patch.
src/Exec/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         return file_exists($path);
46 46
     }
47 47
 
48
-    public function getContents(string $path, bool $asArray = false): string|false|array
48
+    public function getContents(string $path, bool $asArray = false): string | false | array
49 49
     {
50 50
         if ($asArray) {
51 51
             return file($path);
Please login to merge, or discard this patch.