Passed
Push — master ( 6bb14b...dc86bc )
by Nils
02:20
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/Package/Dpkg/DpkgPackageCollector.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,9 @@
 block discarded – undo
44 44
         $packages = [];
45 45
 
46 46
         foreach ($lines as $line) {
47
-            if (trim($line) === '') continue;
47
+            if (trim($line) === '') {
48
+                continue;
49
+            }
48 50
 
49 51
             if (preg_match('/^([^\s\/]+)\/[^\s]+\s+([^\s]+).*upgradable from: ([^\]]+)/', $line, $matches)) {
50 52
                 $packages[$matches[1]] = [
Please login to merge, or discard this patch.
src/Collector/Application/Monitoring/WebProsMonitoringCollector.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,14 +23,18 @@
 block discarded – undo
23 23
      */
24 24
     public function collect(): array
25 25
     {
26
-        if (!file_exists(self::INI_FILE)) return [];
26
+        if (!file_exists(self::INI_FILE)) {
27
+            return [];
28
+        }
27 29
 
28 30
         $config = file(self::INI_FILE);
29 31
 
30 32
         $configArray = [];
31 33
 
32 34
         foreach ($config as $line) {
33
-            if (str_starts_with($line, '[')) continue;
35
+            if (str_starts_with($line, '[')) {
36
+                continue;
37
+            }
34 38
             $element = explode('=', $line);
35 39
             $configArray[$element[0]] = trim($element[1]);
36 40
         }
Please login to merge, or discard this patch.
src/Command/CollectCommand.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
         $inventory = [];
53 53
 
54 54
         foreach ($this->collectors as $collector) {
55
-            if($collector instanceof  InventoryAwareCollector) {
55
+            if ($collector instanceof  InventoryAwareCollector) {
56 56
                 $collector->setInventory($inventory);
57 57
             }
58 58
             $collected = $collector->collect();
Please login to merge, or discard this patch.
src/Collector/Website/WordPress/WordPressCollector.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,9 @@
 block discarded – undo
17 17
 
18 18
     public function collect(): array
19 19
     {
20
-        if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $this->inventory)) return [];
20
+        if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $this->inventory)) {
21
+            return [];
22
+        }
21 23
 
22 24
         $configs = $this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER];
23 25
 
Please login to merge, or discard this patch.