mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-03 13:59:06 -04:00
www/caddy: style fix
This commit is contained in:
parent
ee64ec628b
commit
4f9801f9de
1 changed files with 13 additions and 12 deletions
|
|
@ -240,23 +240,23 @@ class Caddy extends BaseModel
|
|||
),
|
||||
$key . ".FromDomain"
|
||||
));
|
||||
} elseif (
|
||||
} elseif (
|
||||
!in_array((string)$item->Matchers, ['httphost', 'tlssni']) &&
|
||||
(
|
||||
!empty((string)$item->FromDomain) &&
|
||||
(string)$item->FromDomain != '*'
|
||||
)
|
||||
) {
|
||||
$messages->appendMessage(new Message(
|
||||
sprintf(
|
||||
gettext(
|
||||
'When "%s" matcher is selected, domain must be empty or *.'
|
||||
),
|
||||
$item->Matchers
|
||||
) {
|
||||
$messages->appendMessage(new Message(
|
||||
sprintf(
|
||||
gettext(
|
||||
'When "%s" matcher is selected, domain must be empty or *.'
|
||||
),
|
||||
$key . ".FromDomain"
|
||||
));
|
||||
}
|
||||
$item->Matchers
|
||||
),
|
||||
$key . ".FromDomain"
|
||||
));
|
||||
}
|
||||
|
||||
if ((string)$item->Type === 'global' && empty((string)$item->FromPort)) {
|
||||
$messages->appendMessage(new Message(
|
||||
|
|
@ -292,7 +292,8 @@ class Caddy extends BaseModel
|
|||
));
|
||||
}
|
||||
|
||||
if ((string)$item->Type !== 'global' &&
|
||||
if (
|
||||
(string)$item->Type !== 'global' &&
|
||||
(
|
||||
(string)$item->Matchers == 'tls' ||
|
||||
(string)$item->Matchers == 'http'
|
||||
|
|
|
|||
Loading…
Reference in a new issue