Permalink
Browse files

Strict function declarations defined by webtrees abstracttheme.

  • Loading branch information...
JustCarmen committed Sep 9, 2018
1 parent bcc9a2f commit 1d1708d89a268b89b08329275c5cf1cb041e9c2f
Showing with 5 additions and 5 deletions.
  1. +2 −2 app/Theme/JustBaseTheme.php
  2. +3 −3 app/Theme/JustLightTheme.php
@@ -92,7 +92,7 @@ public function getThemeGlobalClass() {
*
* @return string
*/
public function individualBox(Individual $individual) {
public function individualBox(Individual $individual): string {
$personBoxClass = array_search($individual->getSex(), ['person_box' => 'M', 'person_boxF' => 'F', 'person_boxNN' => 'U']);
if ($individual->canShow() && $individual->getTree()->getPreference('SHOW_HIGHLIGHT_IMAGES')) {
$thumbnail = $individual->displayImage(40, 50, 'crop', []);
@@ -131,7 +131,7 @@ public function individualBox(Individual $individual) {
}
/** {@inheritdoc} */
public function logoPoweredBy() {
public function logoPoweredBy():string {
return '<a href="' . WT_WEBTREES_URL . '" class="wt-powered-by-webtrees" title="' . WT_WEBTREES_URL . '" dir="ltr"></a>';
}
@@ -36,7 +36,7 @@ public function menuMyPages() {
}
/** (@inheritdoc) */
public function secondaryMenu() {
public function secondaryMenu():array {
return array_filter([
$this->menuMyPages(),
$this->menuFavorites(),
@@ -52,7 +52,7 @@ public function secondaryMenu() {
*
* @return string
*/
public function secondaryMenuContainer(array $menus) {
public function secondaryMenuContainer(array $menus):string {
$html = '';
foreach ($menus as $menu) {
if ($menu->getSubmenus()) {
@@ -111,7 +111,7 @@ public function setFluidClass() {
}
/** {@inheritdoc} */
public function themeName() {
public function themeName():string {
return /* I18N: Name of a theme. */ I18N::translate(self::THEME_NAME);
}
}

0 comments on commit 1d1708d

Please sign in to comment.