Make PHPCS happy

This commit is contained in:
Philipp 2022-11-07 20:32:55 +01:00
parent a6b09529fd
commit a81708091f
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432
3 changed files with 9 additions and 7 deletions

View File

@ -110,6 +110,7 @@ class Form extends BaseModule
$this->page->registerFooterScript('view/asset/fullcalendar/dist/fullcalendar.min.js');
$htpl = Renderer::getMarkupTemplate('calendar/calendar_head.tpl');
$this->page['htmlhead'] .= Renderer::replaceMacros($htpl, [
'$calendar_api' => $this->baseUrl . '/calendar/api/get',
'$event_api' => $this->baseUrl . '/calendar/event/show',
@ -121,8 +122,8 @@ class Form extends BaseModule
$share_disabled = '';
if (empty($orig_event)) {
$orig_event = User::getById($this->session->getLocalUserId(), ['allow_cid', 'allow_gid', 'deny_cid',
'deny_gid']);;
$orig_event = User::getById($this->session->getLocalUserId(),
['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid']);
} else if ($orig_event['allow_cid'] !== '<' . $this->session->getLocalUserId() . '>'
|| $orig_event['allow_gid']
|| $orig_event['deny_cid']

View File

@ -74,6 +74,7 @@ class Show extends BaseModule
$this->page->registerFooterScript('view/asset/fullcalendar/dist/fullcalendar.min.js');
$htpl = Renderer::getMarkupTemplate('calendar/calendar_head.tpl');
$this->page['htmlhead'] .= Renderer::replaceMacros($htpl, [
'$calendar_api' => 'calendar/api/get' . (!empty($this->parameters['nickname']) ? '/' . $this->parameters['nickname'] : ''),
'$event_api' => 'calendar/event/show' . (!empty($this->parameters['nickname']) ? '/' . $this->parameters['nickname'] : ''),