From 89d0040cc0ed886c586e7472f944b0d95adab76d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 28 Nov 2011 21:14:59 +0100 Subject: cleanup --- bin/efa | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'bin') 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 ) { -- cgit v1.2.3