Bug 6679 - [SIGNED-OFF] fix 2 perlcritic violations in C4/Utils.pm
authorMason James <mtj@kohaaloha.com>
Tue, 26 Jun 2012 16:57:58 +0000 (04:57 +1200)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 20 Sep 2012 10:01:39 +0000 (12:01 +0200)
Subroutine prototypes used at line 38, column 1.  See page 194 of PBP.  (Severity: 5)

Subroutine prototypes used at line 43, column 1.  See page 194 of PBP.  (Severity: 5)

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Utils.pm

index 31d50eb..dac9423 100644 (file)
@@ -35,12 +35,12 @@ BEGIN {
 }
 
 
-sub maxwidth (@) {
+sub maxwidth {
        (@_) or return 0;
        return (sort {$a <=> $b} map {length} @_)[-1];
 }
 
-sub hashdump ($$) {
+sub hashdump {
        my $pre = shift;
        my $val  = shift;
        if (ref($val) =~ /HASH/) {