Skip to content
Code-Schnipsel Gruppen Projekte

fix(phpstan): correct variable type

Zusammengeführt Michael Danielczok schlägt vor, next-1.x in main zu mergen.
1 Datei
+ 7
5
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
@@ -31,11 +31,11 @@ class IntervieweeData extends QUI\Control
'template' => 'largeImageTop' // template
]);
$this->addCSSFile(dirname(__FILE__).'/IntervieweeData.css');
$this->addCSSFile(dirname(__FILE__) . '/IntervieweeData.css');
parent::__construct($attributes);
$this->setAttribute('cacheable', 0);
$this->setAttribute('cacheable', "0");
}
/**
@@ -43,13 +43,15 @@ class IntervieweeData extends QUI\Control
*
* @see \QUI\Control::create()
*/
public function getBody()
public function getBody(): string
{
$Engine = QUI::getTemplateManager()->getEngine();
$Site = $this->getSite();
if ($Site->getAttribute("type") !== 'quiqqer/blog:blog/entry' &&
$Site->getAttribute("type") !== 'quiqqer/news:news/entry') {
if (
$Site->getAttribute("type") !== 'quiqqer/blog:blog/entry' &&
$Site->getAttribute("type") !== 'quiqqer/news:news/entry'
) {
return '';
}
@@ -82,9 +84,9 @@ class IntervieweeData extends QUI\Control
'description' => $intervieweeData['description']
]);
$Engine->assign('controlTemplate', $Engine->fetch(dirname(__FILE__).$html));
$Engine->assign('controlTemplate', $Engine->fetch(dirname(__FILE__) . $html));
return $Engine->fetch(dirname(__FILE__).'/IntervieweeData.html');
return $Engine->fetch(dirname(__FILE__) . '/IntervieweeData.html');
}
/**