From 1262962a7d22b9c9b712025c5220033356c857e0 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 18 Aug 2017 04:45:41 +0000 Subject: [PATCH] Bug 18996 [QA Followup] - Fix some minor whitespace issues Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- C4/SIP/ILS/Item.pm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/C4/SIP/ILS/Item.pm b/C4/SIP/ILS/Item.pm index 4e5441f449..84e7411ef2 100644 --- a/C4/SIP/ILS/Item.pm +++ b/C4/SIP/ILS/Item.pm @@ -72,14 +72,14 @@ use Koha::Items; =cut sub new { - my ($class, $item_id) = @_; - my $type = ref($class) || $class; + my ($class, $item_id) = @_; + my $type = ref($class) || $class; my $item = Koha::Items->find( { barcode => $item_id } ); unless ( $item ) { - syslog("LOG_DEBUG", "new ILS::Item('%s'): not found", $item_id); - warn "new ILS::Item($item_id) : No item '$item_id'."; + syslog("LOG_DEBUG", "new ILS::Item('%s'): not found", $item_id); + warn "new ILS::Item($item_id) : No item '$item_id'."; return; - } + } my $self = $item->unblessed; $self->{ 'id' } = $item->barcode; # to SIP, the barcode IS the id. $self->{permanent_location}= $item->homebranch; @@ -90,7 +90,7 @@ sub new { my $itemtype = Koha::Database->new()->schema()->resultset('Itemtype')->find( $it ); $self->{sip_media_type} = $itemtype->sip_media_type() if $itemtype; - # check if its on issue and if so get the borrower + # check if its on issue and if so get the borrower my $issue = Koha::Checkouts->find( { itemnumber => $item->itemnumber } ); if ($issue) { $self->{due_date} = dt_from_string( $issue->date_due, 'sql' )->truncate( to => 'minute' ); @@ -102,10 +102,10 @@ sub new { $self->{hold_queue} = $holds; $self->{hold_shelf} = [( grep { defined $_->{found} and $_->{found} eq 'W' } @{$self->{hold_queue}} )]; $self->{pending_queue} = [( grep {(! defined $_->{found}) or $_->{found} ne 'W' } @{$self->{hold_queue}} )]; - bless $self, $type; + bless $self, $type; - syslog("LOG_DEBUG", "new ILS::Item('%s'): found with title '%s'", - $item_id, $self->{title}//'' ); + syslog( "LOG_DEBUG", "new ILS::Item('%s'): found with title '%s'", + $item_id, $self->{title} // '' ); return $self; } -- 2.20.1