summaryrefslogtreecommitdiff
path: root/bin/efa
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-11-28 21:14:59 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-11-28 21:14:59 +0100
commit89d0040cc0ed886c586e7472f944b0d95adab76d (patch)
tree64da20cc1332a01229e5759a5545a0a692401999 /bin/efa
parent107ca44298c6f65ebfc269646e2184d2adba7810 (diff)
cleanup
Diffstat (limited to 'bin/efa')
-rwxr-xr-xbin/efa19
1 files changed, 7 insertions, 12 deletions
diff --git a/bin/efa b/bin/efa
index 892ba93..a4972e4 100755
--- a/bin/efa
+++ b/bin/efa
@@ -194,13 +194,11 @@ for my $i ( 0 .. $#routes ) {
my $route = $routes[$i];
- if ($opt->{'extended-info'}) {
+ if ( $opt->{'extended-info'} ) {
print '# ' . $route->duration;
- if ($route->ticket_type) {
- printf(", class %s (%s€ / %s€)\n\n",
- $route->ticket_type,
- $route->fare_adult, $route->fare_child,
- );
+ if ( $route->ticket_type ) {
+ printf( ", class %s (%s€ / %s€)\n\n",
+ $route->ticket_type, $route->fare_adult, $route->fare_child, );
}
else {
print "\n\n";
@@ -218,12 +216,9 @@ for my $i ( 0 .. $#routes ) {
printf(
"%-5s ab %-30s %-20s %s\n%-5s an %s\n\n",
- $c->departure_time,
- $c->departure_stop_and_platform,
- $c->train_line,
- $c->train_destination,
- $c->arrival_time,
- $c->arrival_stop_and_platform,
+ $c->departure_time, $c->departure_stop_and_platform,
+ $c->train_line, $c->train_destination,
+ $c->arrival_time, $c->arrival_stop_and_platform,
);
}
if ( $i != $#routes ) {