Make PHPCS happy
This commit is contained in:
parent
a6b09529fd
commit
a81708091f
|
@ -228,8 +228,8 @@ class API extends BaseModule
|
|||
}
|
||||
} else {
|
||||
$strAclContactAllow = $aclFormatter->toString($self);
|
||||
$strAclGroupAllow = '';
|
||||
$strContactDeny = '';
|
||||
$strAclGroupAllow = '';
|
||||
$strContactDeny = '';
|
||||
$strGroupDeny = '';
|
||||
}
|
||||
|
||||
|
|
|
@ -109,7 +109,8 @@ class Form extends BaseModule
|
|||
$this->page->registerFooterScript('view/asset/moment/min/moment-with-locales.min.js');
|
||||
$this->page->registerFooterScript('view/asset/fullcalendar/dist/fullcalendar.min.js');
|
||||
|
||||
$htpl = Renderer::getMarkupTemplate('calendar/calendar_head.tpl');
|
||||
$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,9 +122,9 @@ 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']);;
|
||||
} elseif ($orig_event['allow_cid'] !== '<' . $this->session->getLocalUserId() . '>'
|
||||
$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']
|
||||
|| $orig_event['deny_gid']) {
|
||||
|
|
|
@ -73,7 +73,8 @@ class Show extends BaseModule
|
|||
$this->page->registerFooterScript('view/asset/moment/min/moment-with-locales.min.js');
|
||||
$this->page->registerFooterScript('view/asset/fullcalendar/dist/fullcalendar.min.js');
|
||||
|
||||
$htpl = Renderer::getMarkupTemplate('calendar/calendar_head.tpl');
|
||||
$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'] : ''),
|
||||
|
|
Loading…
Reference in a new issue