From 7eedd5149fdd01c55dc768db6ded831cb35108d8 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 30 Jan 2024 21:07:57 +0100 Subject: [PATCH] perltidy --- lib/Travelynx/Controller/Profile.pm | 6 +++--- lib/Travelynx/Controller/Static.pm | 8 ++++---- lib/Travelynx/Controller/Traewelling.pm | 2 +- lib/Travelynx/Controller/Traveling.pm | 22 ++++++++++++++-------- 4 files changed, 22 insertions(+), 16 deletions(-) diff --git a/lib/Travelynx/Controller/Profile.pm b/lib/Travelynx/Controller/Profile.pm index f14ea97..a063c10 100755 --- a/lib/Travelynx/Controller/Profile.pm +++ b/lib/Travelynx/Controller/Profile.pm @@ -154,7 +154,7 @@ sub profile { $self->render( 'profile', - title => "travelynx: $name", + title => "travelynx: $name", name => $name, uid => $user->{id}, privacy => $user, @@ -314,7 +314,7 @@ sub journey_details { } $self->render( 'journey', - title => "travelynx: $title", + title => "travelynx: $title", error => undef, journey => $journey, with_map => 1, @@ -472,7 +472,7 @@ sub user_status { any => { template => 'user_status', name => $name, - title => "travelynx: $tw_data{title}", + title => "travelynx: $tw_data{title}", privacy => $user, journey => $status, twitter => \%tw_data, diff --git a/lib/Travelynx/Controller/Static.pm b/lib/Travelynx/Controller/Static.pm index 1be444f..04c2d0f 100644 --- a/lib/Travelynx/Controller/Static.pm +++ b/lib/Travelynx/Controller/Static.pm @@ -8,25 +8,25 @@ use Mojo::Base 'Mojolicious::Controller'; sub about { my ($self) = @_; - $self->render('about', title => 'Über travelynx'); + $self->render( 'about', title => 'Über travelynx' ); } sub changelog { my ($self) = @_; - $self->render('changelog', title => 'travelynx: Changelog'); + $self->render( 'changelog', title => 'travelynx: Changelog' ); } sub imprint { my ($self) = @_; - $self->render('imprint', title => 'travelynx: Impressum'); + $self->render( 'imprint', title => 'travelynx: Impressum' ); } sub legend { my ($self) = @_; - $self->render('legend', title => 'travelynx: Legende' ); + $self->render( 'legend', title => 'travelynx: Legende' ); } sub offline { diff --git a/lib/Travelynx/Controller/Traewelling.pm b/lib/Travelynx/Controller/Traewelling.pm index c9e89bb..3cdeff8 100644 --- a/lib/Travelynx/Controller/Traewelling.pm +++ b/lib/Travelynx/Controller/Traewelling.pm @@ -144,7 +144,7 @@ sub settings { $self->param( tweet => 1 ); } - $self->stash ( title => 'travelynx × träwelling' ); + $self->stash( title => 'travelynx × träwelling' ); $self->render( 'traewelling', traewelling => $traewelling, diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 78a7c78..7b25e9f 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -1185,7 +1185,10 @@ sub cancelled { sub history { my ($self) = @_; - $self->render( template => 'history', title => 'travelynx: History' ); + $self->render( + template => 'history', + title => 'travelynx: History' + ); } sub commute { @@ -1293,7 +1296,7 @@ sub commute { journeys_by_month => \%journeys_by_month, count_by_month => \%count_by_month, total_journeys => $total, - title => 'travelynx: Reisen nach Station', + title => 'travelynx: Reisen nach Station', months => [ qw(Januar Februar März April Mai Juni Juli August September Oktober November Dezember) ], @@ -1391,7 +1394,7 @@ sub map_history { template => 'history_map', year => $year, with_map => 1, - title => 'travelynx: Karte', + title => 'travelynx: Karte', %{$res} ); } @@ -1588,7 +1591,7 @@ sub yearly_history { }, any => { template => 'history_by_year', - title => "travelynx: $year", + title => "travelynx: $year", journeys => [@journeys], year => $year, have_review => $with_review, @@ -1663,7 +1666,7 @@ sub monthly_history { }, any => { template => 'history_by_month', - title => "travelynx: $month_name $year", + title => "travelynx: $month_name $year", journeys => [@journeys], year => $year, month => $month, @@ -1742,9 +1745,12 @@ sub journey_details { $self->render( 'journey', - title => sprintf( 'travelynx: Fahrt %s %s %s am %s', - $journey->{type}, $journey->{line} // '', $journey->{no}, - $journey->{sched_departure}->strftime('%d.%m.%Y um %H:%M') ), + title => sprintf( + 'travelynx: Fahrt %s %s %s am %s', + $journey->{type}, $journey->{line} // '', + $journey->{no}, + $journey->{sched_departure}->strftime('%d.%m.%Y um %H:%M') + ), error => undef, journey => $journey, journey_visibility => $visibility,