Passed
Push — master ( 65a263...816e51 )
by Nils
02:44
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/Config/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@
 block discarded – undo
76 76
     {
77 77
         $logfiles = $this->getLogfiles();
78 78
 
79
-        foreach($logfiles as $key => $logfileObject) {
80
-            if($logfile === $logfileObject['file']) {
79
+        foreach ($logfiles as $key => $logfileObject) {
80
+            if ($logfile === $logfileObject['file']) {
81 81
              unset($logfiles[$key]);
82 82
             }
83 83
         }
Please login to merge, or discard this patch.
src/Command/InventorioCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         $config['remote'] = $isEnabled;
81 81
 
82
-        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT);;
82
+        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT); ;
83 83
     }
84 84
 
85 85
     protected function setLogfileEnabled(bool $isEnabled): void
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         $config['logfile'] = $isEnabled;
94 94
 
95
-        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT);;
95
+        file_put_contents($this->getConfigFile(), json_encode($config), JSON_PRETTY_PRINT); ;
96 96
     }
97 97
 
98 98
     /**
Please login to merge, or discard this patch.