]> git.mxchange.org Git - friendica.git/commitdiff
Make PHPCS happy
authorPhilipp <admin@philipp.info>
Mon, 7 Nov 2022 19:32:55 +0000 (20:32 +0100)
committerPhilipp <admin@philipp.info>
Mon, 7 Nov 2022 19:32:55 +0000 (20:32 +0100)
src/Module/Calendar/Event/API.php
src/Module/Calendar/Event/Form.php
src/Module/Calendar/Show.php

index bd94213bc42f35b91eaa665e7824adf8b3fab4a8..174c0b3afce95d7f4c7f0c88182d2913af6758ed 100644 (file)
@@ -228,8 +228,8 @@ class API extends BaseModule
                        }
                } else {
                        $strAclContactAllow = $aclFormatter->toString($self);
-                       $strAclGroupAllow   =  '';
-                       $strContactDeny     =  '';
+                       $strAclGroupAllow   = '';
+                       $strContactDeny     = '';
                        $strGroupDeny       = '';
                }
 
index 6a7699126e33f7b13676e34e28598317463e1ce0..aca80898bc94bd5df453afdb19eec2cae26eb013 100644 (file)
@@ -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']) {
index 77b77bf58edbc854466444d2bba800247b7fa63d..9bcc004fd1868aaa0575d0580574db6d37c4d0a6 100644 (file)
@@ -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'] : ''),