]> git.mxchange.org Git - friendica.git/commitdiff
Change code style
authorArt4 <art4@wlabs.de>
Wed, 29 Jan 2025 08:53:49 +0000 (08:53 +0000)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 4 Feb 2025 18:22:55 +0000 (13:22 -0500)
src/App/Page.php

index b5a00859f1cd1c3f8087ead95af362e97881f07e..6937a6924059936e4fe5c1660d5e62177c809edd 100644 (file)
@@ -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