From b410176e634559bda0ff5d1628d45dc6ed3df5e3 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 4 Sep 2023 17:08:17 +0200 Subject: perltidy --- lib/Travelynx/Command/work.pm | 3 ++- lib/Travelynx/Helper/IRIS.pm | 12 ++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 71faa3a..09649a3 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -55,7 +55,8 @@ sub run { } } if ( not $found_dep ) { - $self->app->log->debug("Did not find $dep within journey $train_id"); + $self->app->log->debug( + "Did not find $dep within journey $train_id"); return; } diff --git a/lib/Travelynx/Helper/IRIS.pm b/lib/Travelynx/Helper/IRIS.pm index a529e28..2014003 100644 --- a/lib/Travelynx/Helper/IRIS.pm +++ b/lib/Travelynx/Helper/IRIS.pm @@ -192,27 +192,23 @@ sub route_diff { # this branch is inefficient, but won't be taken frequently elsif ( not( grep { $_ eq $route[$route_idx] } @sched_route ) ) { push( @json_route, - [ $route[$route_idx], undef, { isAdditional => 1 } ], - ); + [ $route[$route_idx], undef, { isAdditional => 1 } ], ); $route_idx++; } else { push( @json_route, - [ $sched_route[$sched_idx], undef, { isCancelled => 1 } ], - ); + [ $sched_route[$sched_idx], undef, { isCancelled => 1 } ], ); $sched_idx++; } } while ( $route_idx <= $#route ) { push( @json_route, - [ $route[$route_idx], undef, { isAdditional => 1 } ], - ); + [ $route[$route_idx], undef, { isAdditional => 1 } ], ); $route_idx++; } while ( $sched_idx <= $#sched_route ) { push( @json_route, - [ $sched_route[$sched_idx], undef, { isCancelled => 1 } ], - ); + [ $sched_route[$sched_idx], undef, { isCancelled => 1 } ], ); $sched_idx++; } return @json_route; -- cgit v1.2.3