make PHP CS happy?

This commit is contained in:
Philipp 2022-11-07 20:28:08 +01:00
parent 78a8ed6fe7
commit 2da2ac6826
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432
3 changed files with 19 additions and 17 deletions

View File

@ -220,7 +220,7 @@ class API extends BaseModule
if ($visibility === 'public') {
// The ACL selector introduced in version 2019.12 sends ACL input data even when the Public visibility is selected
$strAclContactAllow = $strAclGroupAllow = $strContactDeny = $strGroupDeny = '';
} else if ($visibility === 'custom') {
} elseif ($visibility === 'custom') {
// Since we know from the visibility parameter the item should be private, we have to prevent the empty ACL
// case that would make it public. So we always append the author's contact id to the allowed contacts.
// See https://github.com/friendica/friendica/issues/9672
@ -228,7 +228,9 @@ class API extends BaseModule
}
} else {
$strAclContactAllow = $aclFormatter->toString($self);
$strAclGroupAllow = $strContactDeny = $strGroupDeny = '';
$strAclGroupAllow = '';
$strContactDeny = '';
$strGroupDeny = '';
}
$datarray = [

View File

@ -123,7 +123,7 @@ class Form extends BaseModule
if (empty($orig_event)) {
$orig_event = User::getById($this->session->getLocalUserId(), ['allow_cid', 'allow_gid', 'deny_cid',
'deny_gid']);;
} else if ($orig_event['allow_cid'] !== '<' . $this->session->getLocalUserId() . '>'
} elseif ($orig_event['allow_cid'] !== '<' . $this->session->getLocalUserId() . '>'
|| $orig_event['allow_gid']
|| $orig_event['deny_cid']
|| $orig_event['deny_gid']) {
@ -218,6 +218,7 @@ class Form extends BaseModule
'',
true
),
'$n_text' => $this->t('Finish date/time is not known or not relevant'),
'$n_checked' => $n_checked,
'$f_text' => $this->t('Event Finishes:'),
@ -252,4 +253,3 @@ class Form extends BaseModule
]);
}
}