diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-12-18 23:44:36 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-12-18 23:44:36 +0100 |
commit | b654987f0be125c0d09db68337e7be4ac0c04124 (patch) | |
tree | 611038a557ce9905571b00b1dc0fd328b0f61d5d /index.pl | |
parent | a2057ce13df79272f54a52147282741a684c1dc3 (diff) |
perltidy
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -322,28 +322,28 @@ sub handle_request { if ($info) { $info =~ s{ (?: ca\. \s* )? \+ (\d+) }{Verspätung ca $1 Min.}x; } - if ($backend eq 'iris') { + if ( $backend eq 'iris' ) { push( @departures, { - time => $time, - train => $result->train, - via => [ $result->route_interesting(3) ], + time => $time, + train => $result->train, + via => [ $result->route_interesting(3) ], scheduled_route => [ $result->sched_route ], - destination => $result->destination, - platform => $platform, - info => $info, - is_cancelled => $result->can('is_cancelled') + destination => $result->destination, + platform => $platform, + info => $info, + is_cancelled => $result->can('is_cancelled') ? $result->is_cancelled : undef, messages => { delay => [ map { { timestamp => $_->[0], text => $_->[1] } } - $result->delay_messages + $result->delay_messages ], qos => [ map { { timestamp => $_->[0], text => $_->[1] } } - $result->qos_messages + $result->qos_messages ], }, moreinfo => $moreinfo, @@ -367,13 +367,13 @@ sub handle_request { ? $result->is_cancelled : undef, messages => { - delay => [ ], - qos => [ ], + delay => [], + qos => [], }, moreinfo => $moreinfo, delay => $delay, - additional_stops => [ ], - canceled_stops => [ ], + additional_stops => [], + canceled_stops => [], } ); } |