Bug 8739 follow-up fixing perlcritic error
authorPaul Poulain <paul.poulain@biblibre.com>
Wed, 3 Oct 2012 16:02:38 +0000 (18:02 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 3 Oct 2012 16:02:38 +0000 (18:02 +0200)
This patch is not related nor introduced by bug 8739, but while qa-ing it, I found those 2 perlcritic violation

this patch fixes it !

I also fixed a tiny indentation problem

C4/Accounts.pm

index f76ae01..8a0212f 100644 (file)
@@ -243,13 +243,13 @@ borrower number.
 
 #'
 # FIXME - Okay, so what does the above actually _mean_?
-sub getnextacctno ($) {
-    my ($borrowernumber) = shift or return undef;
+sub getnextacctno {
+    my ($borrowernumber) = shift or return;
     my $sth = C4::Context->dbh->prepare(
         "SELECT accountno+1 FROM accountlines
-         WHERE    (borrowernumber = ?)
-         ORDER BY accountno DESC
-                LIMIT 1"
+            WHERE    (borrowernumber = ?)
+            ORDER BY accountno DESC
+            LIMIT 1"
     );
     $sth->execute($borrowernumber);
     return ($sth->fetchrow || 1);