src: style sweep

This commit is contained in:
Franco Fichtner 2021-10-27 10:55:34 +02:00
parent 2fc0287c2f
commit 2230a95553

View File

@ -219,23 +219,23 @@ class TunnelController extends ApiControllerBase
foreach (['localid', 'remoteid'] as $id) {
$content = (string)$p2->$id->type;
switch ((string)$p2->$id->type) {
case "address":
$content = "{$p2->$id->address}";
break;
case "network":
$content = "{$p2->$id->address}/{$p2->$id->netbits}";
break;
case "mobile":
$content = gettext("Mobile Client");
break;
case "none":
$content = gettext("None");
break;
default:
if (!empty($ifs[(string)$p2->$id->type])) {
$content = $ifs[(string)$p2->$id->type];
}
break;
case "address":
$content = "{$p2->$id->address}";
break;
case "network":
$content = "{$p2->$id->address}/{$p2->$id->netbits}";
break;
case "mobile":
$content = gettext("Mobile Client");
break;
case "none":
$content = gettext("None");
break;
default:
if (!empty($ifs[(string)$p2->$id->type])) {
$content = $ifs[(string)$p2->$id->type];
}
break;
}
if ($id == 'localid') {
$local_subnet = $content;