@@ -46,7 +46,7 @@ |
||
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 | } |
@@ -52,7 +52,7 @@ |
||
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 | } |