Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortflidd <tflidd@aspekte.net>2021-01-28 01:20:01 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-03-31 18:26:49 +0300
commitcc3e4e1c850fad154533a17556951159855f590a (patch)
treef778b5863cb9f93ce6f651f754b597c7b02614cc
parent0e4a39ac8ab99da2f1d078e643eca2e9fbc3cdc8 (diff)
Update FreeBSD.phptflidd-patch-1
fix syntax
-rw-r--r--lib/OperatingSystems/FreeBSD.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/OperatingSystems/FreeBSD.php b/lib/OperatingSystems/FreeBSD.php
index 570511c..bb492ba 100644
--- a/lib/OperatingSystems/FreeBSD.php
+++ b/lib/OperatingSystems/FreeBSD.php
@@ -137,8 +137,8 @@ class FreeBSD implements IOperatingSystem {
$result['dns'] = $alldns;
$netstat = $this->executeCommand('netstat -rn');
preg_match_all("/(?<=^default)\s*[0-9a-fA-f\.:]+/m", $netstat, $gw);
- if (count($gw[0]) > 0){
- $result['gateway'] = implode(array_map("trim", $gw[0]), ", ");
+ if (count($gw[0]) > 0) {
+ $result['gateway'] = implode(", ", array_map("trim", $gw[0]));
}
} catch (\RuntimeException $e) {
return $result;