Passed
Push — master ( b56886...af36fa )
by Nils
03:08
created
src/Command/InitCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             $serverName = $io->ask(
47 47
                 'Please provide the name of the server (default: ' . $defaultName . ')',
48 48
                 $defaultName,
49
-                function (?string $value) {
49
+                function(?string $value) {
50 50
                     if (strlen($value ?? '') < 3) {
51 51
                         throw new \RuntimeException('The server name has to be at least three characters long.');
52 52
                     }
Please login to merge, or discard this patch.
src/Collector/System/General/ConfigurationCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         } elseif ($os === 'Linux') {
53 53
             $memInfo = file_get_contents("/proc/meminfo");
54 54
             preg_match("/MemTotal:\s+(\d+)\skB/", $memInfo, $matches);
55
-            return isset($matches[1]) ? round((float)$matches[1] / 1024, 2) :0;
55
+            return isset($matches[1]) ? round((float)$matches[1] / 1024, 2) : 0;
56 56
         }
57 57
         return 0;
58 58
     }
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
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
             }
26 26
 
27 27
             // Extract username, UID, and home directory
28
-            [$username, , $uid, , , $homeDirectory] = array_slice($parts, 0, 6);
28
+            [$username,, $uid,,, $homeDirectory] = array_slice($parts, 0, 6);
29 29
 
30 30
             // Only consider regular users (UID >= 1000) with a valid home directory
31 31
             if (!is_dir($homeDirectory)) {
Please login to merge, or discard this patch.
src/Command/InventorioCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $config['remote'] = $isEnabled;
112 112
 
113
-        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT);;
113
+        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT); ;
114 114
     }
115 115
 
116 116
     protected function setLogfileEnabled(bool $isEnabled): void
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
         $config['logfile'] = $isEnabled;
125 125
 
126
-        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT);;
126
+        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT); ;
127 127
     }
128 128
 
129 129
     protected function setCollectEnabled(bool $isEnabled): void
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
         $config['collect'] = $isEnabled;
138 138
 
139
-        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT);;
139
+        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT); ;
140 140
     }
141 141
 
142 142
     /**
Please login to merge, or discard this patch.