diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-11-28 21:14:59 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-11-28 21:14:59 +0100 |
commit | 89d0040cc0ed886c586e7472f944b0d95adab76d (patch) | |
tree | 64da20cc1332a01229e5759a5545a0a692401999 /bin | |
parent | 107ca44298c6f65ebfc269646e2184d2adba7810 (diff) |
cleanup
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -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 ) { |