From fff166679b43db5baab8ee9112f77164f4d42c87 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 Signed-off-by: Martin Renvoize --- Koha/ILL/Request.pm | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm index e929105ed2..cc9f59bdff 100644 --- a/Koha/ILL/Request.pm +++ b/Koha/ILL/Request.pm @@ -2073,21 +2073,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