From: Art4 Date: Wed, 29 Jan 2025 08:53:49 +0000 (+0000) Subject: Change code style X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70a6c6ed013105fe2e6e78b936420359665021da;p=friendica.git Change code style --- diff --git a/src/App/Page.php b/src/App/Page.php index b5a00859f1..6937a69240 100644 --- a/src/App/Page.php +++ b/src/App/Page.php @@ -233,10 +233,9 @@ class Page implements ArrayAccess $touch_icon = 'images/friendica-192.png'; } - $this->page['htmlhead'] = $this->eventDispatcher->dispatch(new HtmlFilterEvent( - HtmlFilterEvent::HEAD, - $this->page['htmlhead'] - ))->getHtml(); + $this->page['htmlhead'] = $this->eventDispatcher->dispatch( + new HtmlFilterEvent(HtmlFilterEvent::HEAD, $this->page['htmlhead']) + )->getHtml(); $tpl = Renderer::getMarkupTemplate('head.tpl'); /* put the head template at the beginning of page['htmlhead'] @@ -358,10 +357,9 @@ class Page implements ArrayAccess ]); } - $this->page['footer'] = $this->eventDispatcher->dispatch(new HtmlFilterEvent( - HtmlFilterEvent::FOOTER, - $this->page['footer'] - ))->getHtml(); + $this->page['footer'] = $this->eventDispatcher->dispatch( + new HtmlFilterEvent(HtmlFilterEvent::FOOTER, $this->page['footer']) + )->getHtml(); $tpl = Renderer::getMarkupTemplate('footer.tpl'); $this->page['footer'] = Renderer::replaceMacros($tpl, [ @@ -386,10 +384,9 @@ class Page implements ArrayAccess { // initialise content region if ($mode->isNormal()) { - $this->page['content'] = $this->eventDispatcher->dispatch(new HtmlFilterEvent( - HtmlFilterEvent::PAGE_CONTENT_TOP, - $this->page['content'] - ))->getHtml(); + $this->page['content'] = $this->eventDispatcher->dispatch( + new HtmlFilterEvent(HtmlFilterEvent::PAGE_CONTENT_TOP, $this->page['content']) + )->getHtml(); } $this->page['content'] .= (string)$response->getBody(); @@ -487,10 +484,9 @@ class Page implements ArrayAccess $profiler->set(microtime(true) - $timestamp, 'aftermath'); if (!$mode->isAjax()) { - $this->page['content'] = $this->eventDispatcher->dispatch(new HtmlFilterEvent( - HtmlFilterEvent::PAGE_END, - $this->page['content'] - ))->getHtml(); + $this->page['content'] = $this->eventDispatcher->dispatch( + new HtmlFilterEvent(HtmlFilterEvent::PAGE_END, $this->page['content']) + )->getHtml(); } // Add the navigation (menu) template