From 7ca71327ab2848993d733d4cc68c521497d6f0d3 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 26 Sep 2023 09:42:27 +0000 Subject: [PATCH] Bug 34838: Tidy Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- Koha/Illbackend.pm | 4 ++-- Koha/Illrequest.pm | 24 ++++++++++++++---------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/Koha/Illbackend.pm b/Koha/Illbackend.pm index 6d95b5e2a7..4b1c2ed784 100644 --- a/Koha/Illbackend.pm +++ b/Koha/Illbackend.pm @@ -35,7 +35,7 @@ New illbackend sub new { my $class = shift; - my $self = {}; + my $self = {}; return bless $self, $class; } @@ -117,7 +117,7 @@ sub embed { foreach my $embed_req ( split /\s*,\s*/, $embed_header ) { if ( $embed_req eq 'statuses+strings' ) { - $return_embed->{statuses} = $self->existing_statuses( $backend_id ); + $return_embed->{statuses} = $self->existing_statuses($backend_id); } } return $return_embed; diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm index f7ed9854d8..15b4f6d5c7 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -1972,21 +1972,25 @@ sub strings_map { } my $status_string = - ( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{name} ) - ? $status_graph_union->{ $self->status }->{name} - : $self->status; + ( $self->status + && exists $status_graph_union->{ $self->status } + && defined $status_graph_union->{ $self->status }->{name} ) + ? $status_graph_union->{ $self->status }->{name} + : $self->status; my $status_code = - ( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{id} ) - ? $status_graph_union->{ $self->status }->{id} - : $self->status; + ( $self->status + && exists $status_graph_union->{ $self->status } + && defined $status_graph_union->{ $self->status }->{id} ) + ? $status_graph_union->{ $self->status }->{id} + : $self->status; my $strings = { status => { - backend => $self->backend, # the backend identifier - str => $status_string, # the status description, taken from the status graph - code => $status_code, # the status id, taken from the status graph - type => 'ill_status', # fixed type + backend => $self->backend, # the backend identifier + str => $status_string, # the status description, taken from the status graph + code => $status_code, # the status id, taken from the status graph + type => 'ill_status', # fixed type } }; -- 2.39.5