mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
chore: add return types to methods
This commit is contained in:
@@ -14,7 +14,8 @@ require_once JPATH_SITE . '/components/com_sportsmanager/util/image.php';
|
||||
|
||||
class HTML_sportsmanager_admin
|
||||
{
|
||||
static function formatTimediff( $timestamp1, $timestamp2, $verbose ) {
|
||||
static function formatTimediff( $timestamp1, $timestamp2, $verbose ): string
|
||||
{
|
||||
if (empty($timestamp1) || empty($timestamp2)) {
|
||||
return "";
|
||||
} 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) {
|
||||
return "<b><i>" . htmlentities_utf8($team_name) . "</i></b>";
|
||||
} else {
|
||||
@@ -37,8 +39,8 @@ class HTML_sportsmanager_admin
|
||||
}
|
||||
}
|
||||
|
||||
static function checkZeilenumbruch($Spalte_Nr, $max_Spalten)
|
||||
{
|
||||
static function checkZeilenumbruch($Spalte_Nr, $max_Spalten): int
|
||||
{
|
||||
$Spalte_Nr++;
|
||||
if ($Spalte_Nr >= $max_Spalten){
|
||||
echo "</tr>\n<tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user