From 0c7b6d244eb830eca65860f17575daa18862954b Mon Sep 17 00:00:00 2001 From: Jan Wennrich <jan.wennrich@pcsg.de> Date: Tue, 6 Aug 2024 16:27:25 +0200 Subject: [PATCH] style: fix PSR-12 code style violations --- src/QUI/Timeline/Controls/Timeline.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/QUI/Timeline/Controls/Timeline.php b/src/QUI/Timeline/Controls/Timeline.php index ac1764e..1d67604 100644 --- a/src/QUI/Timeline/Controls/Timeline.php +++ b/src/QUI/Timeline/Controls/Timeline.php @@ -94,10 +94,12 @@ public function getBody() )); // load custom template (if set) - if ($this->getAttribute('displayTemplate') + if ( + $this->getAttribute('displayTemplate') && file_exists($this->getAttribute('displayTemplate')) ) { - if ($this->getAttribute('displayCss') + if ( + $this->getAttribute('displayCss') && file_exists($this->getAttribute('displayCss')) ) { $this->addCSSFile($this->getAttribute('displayCss')); -- GitLab