chore: add return types to methods

This commit is contained in:
Marvin Flock
2025-08-28 20:01:58 +02:00
parent 1aa9b924d7
commit f27b87a0d8
@@ -14,7 +14,8 @@ require_once JPATH_SITE . '/components/com_sportsmanager/util/image.php';
class HTML_sportsmanager_admin class HTML_sportsmanager_admin
{ {
static function formatTimediff( $timestamp1, $timestamp2, $verbose ) { static function formatTimediff( $timestamp1, $timestamp2, $verbose ): string
{
if (empty($timestamp1) || empty($timestamp2)) { if (empty($timestamp1) || empty($timestamp2)) {
return ""; return "";
} else { } else {
@@ -29,7 +30,8 @@ class HTML_sportsmanager_admin
} }
} }
static function formatTeamName( $team_name, $team_id, $highlight_team_id ) { static function formatTeamName( $team_name, $team_id, $highlight_team_id ): string
{
if ($team_id == $highlight_team_id) { if ($team_id == $highlight_team_id) {
return "<b><i>" . htmlentities_utf8($team_name) . "</i></b>"; return "<b><i>" . htmlentities_utf8($team_name) . "</i></b>";
} else { } else {
@@ -37,7 +39,7 @@ class HTML_sportsmanager_admin
} }
} }
static function checkZeilenumbruch($Spalte_Nr, $max_Spalten) static function checkZeilenumbruch($Spalte_Nr, $max_Spalten): int
{ {
$Spalte_Nr++; $Spalte_Nr++;
if ($Spalte_Nr >= $max_Spalten){ if ($Spalte_Nr >= $max_Spalten){