Passed
Push — master ( 9626d7...993b38 )
by Nils
02:52
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/Collector/System/Security/AuthorizedKeysCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             }
29 29
 
30 30
             // Extract username, UID, and home directory
31
-            [$username, , $uid, , , $homeDirectory] = array_slice($parts, 0, 6);
31
+            [$username,, $uid,,, $homeDirectory] = array_slice($parts, 0, 6);
32 32
 
33 33
             // Only consider regular users (UID >= 1000) with a valid home directory
34 34
             if (!$file->isDir($homeDirectory)) {
Please login to merge, or discard this patch.
src/Exec/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             $cmd = 'stat -c%s ' . $escaped;
51 51
         }
52 52
 
53
-        $output =trim(Runner::getInstance()->run($cmd)->getOutput());
53
+        $output = trim(Runner::getInstance()->run($cmd)->getOutput());
54 54
         return is_numeric($output) ? (int)$output : 0;
55 55
     }
56 56
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         return trim(Runner::getInstance()->run($cmd)->getOutput()) === '1';
61 61
     }
62 62
 
63
-    public function getContents(string $path, bool $asArray = false): string|false|array
63
+    public function getContents(string $path, bool $asArray = false): string | false | array
64 64
     {
65 65
         $cmd = 'cat ' . escapeshellarg($path) . ' 2>/dev/null';
66 66
         $output = Runner::getInstance()->run($cmd)->getOutput();
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
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
         return explode("\n", trim($output));
81 81
     }
82 82
 
83
-    public function getFileContents(string $path, bool $asArray = false): string|false|array
83
+    public function getFileContents(string $path, bool $asArray = false): string | false | array
84 84
     {
85 85
         return File::getInstance()->getContents($path, $asArray);
86 86
     }
Please login to merge, or discard this patch.