Skip to content

Commit

Permalink
clean(ZMS-3253): formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fink authored and Thomas Fink committed Feb 17, 2025
1 parent 4ebc9cc commit 393edf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions zmsadmin/src/Zmsadmin/AvailabilityConflicts.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected static function getAvailabilityData($input)
$originId
);

return self::filterAndSortConflicts($conflictList, $selectedDateTime);
return self::filterAndSortConflicts($conflictList);
}

private static function validateInput($input)
Expand Down Expand Up @@ -137,7 +137,7 @@ private static function getFilteredAvailabilityList(
return $filteredAvailabilityList;
}

private static function filterAndSortConflicts(ProcessList $conflictList, DateTimeImmutable $selectedDateTime)
private static function filterAndSortConflicts(ProcessList $conflictList)
{
$filteredConflictList = new ProcessList();
$conflictedList = [];
Expand Down Expand Up @@ -220,6 +220,7 @@ private static function addToConflictedList(&$conflictedList, $availability1, $a
}
}

/** @SuppressWarnings(PHPMD.UnusedPrivateMethod) */
private static function sortConflictedList($a, $b)
{
$aIsTemp = strpos($a, '__temp__') === 0;
Expand Down
5 changes: 4 additions & 1 deletion zmsadmin/templates/page/availabilityday.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
{% set tabs = [
{name: "%s"|format("Graph-Ansicht")|trans, component: "graph"},
{name: "%s"|format("Tabellen-Ansicht")|trans, component: "table"},
{name: "%s"|format("Alle Öffnungszeiten")|trans, component: "scope"}
] %}

{# Temporarily disabled:
{name: "%s"|format("Alle Öffnungszeiten")|trans, component: "scope"}
#}

{% block headline %}
{{ headline1('Öffnungszeiten für den Standort ' ~ scope.name ~ ' ' ~ scope.shortName ) }}
{% endblock %}
Expand Down

0 comments on commit 393edf5

Please sign in to comment.