summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-07-30 10:45:18 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-07-30 10:45:18 +0200
commitde73024f1bac7cfce5f4b0882a04a27923dcb158 (patch)
tree29ca9102e1d706ab2122228f7a53da59999e8bcd /lib/Travelynx/Controller
parentaa19f4b00ca1b88fb86ec116a717b6f7549ab359 (diff)
Passengerrights: section headers; perltidy
Diffstat (limited to 'lib/Travelynx/Controller')
-rw-r--r--lib/Travelynx/Controller/Passengerrights.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Passengerrights.pm b/lib/Travelynx/Controller/Passengerrights.pm
index 1503483..a4ae8d8 100644
--- a/lib/Travelynx/Controller/Passengerrights.pm
+++ b/lib/Travelynx/Controller/Passengerrights.pm
@@ -1,4 +1,5 @@
package Travelynx::Controller::Passengerrights;
+
# Copyright (C) 2020 Daniel Friesel
#
# SPDX-License-Identifier: AGPL-3.0-or-later
@@ -7,12 +8,15 @@ use Mojo::Base 'Mojolicious::Controller';
use DateTime;
use CAM::PDF;
+# Internal Helpers
+
sub mark_if_missed_connection {
my ( $self, $journey, $next_journey ) = @_;
my $possible_delay
= ( $next_journey->{rt_departure}->epoch
- - $journey->{sched_arrival}->epoch ) / 60;
+ - $journey->{sched_arrival}->epoch )
+ / 60;
my $wait_time
= ( $next_journey->{rt_departure}->epoch - $journey->{rt_arrival}->epoch )
/ 60;
@@ -85,6 +89,8 @@ sub mark_substitute_connection {
}
}
+# Controllers
+
sub list_candidates {
my ($self) = @_;