From b1116d072125142bc676008b3a2190a637f663ce Mon Sep 17 00:00:00 2001 From: OlivierRaginel Date: Fri, 4 May 2012 13:27:49 +0000 Subject: [PATCH] Item11808: perltidy them all, so people are not accidentally impacted by the new enforced rule -- Sorry Micha, could not find a way to define specific values within the file git-svn-id: http://svn.foswiki.org/trunk/PublishPlugin@14686 0b4bb1d4-4e5a-0410-9cc4-b2b747904278 --- lib/Foswiki/Plugins/PublishPlugin.pm | 27 +++---- lib/Foswiki/Plugins/PublishPlugin/BackEnd.pm | 17 ++--- .../Plugins/PublishPlugin/PageAssembler.pm | 66 ++++++++--------- .../Plugins/PublishPlugin/Publisher.pm | 8 +-- lib/Foswiki/Plugins/PublishPlugin/file.pm | 70 ++++++++++--------- lib/Foswiki/Plugins/PublishPlugin/ftp.pm | 60 +++++++++------- lib/Foswiki/Plugins/PublishPlugin/pdf.pm | 13 ++-- lib/Foswiki/Plugins/PublishPlugin/pdffiles.pm | 2 +- lib/Foswiki/Plugins/PublishPlugin/tgz.pm | 13 ++-- lib/Foswiki/Plugins/PublishPlugin/zip.pm | 15 ++-- 10 files changed, 153 insertions(+), 138 deletions(-) diff --git a/lib/Foswiki/Plugins/PublishPlugin.pm b/lib/Foswiki/Plugins/PublishPlugin.pm index 5310c61..de67443 100644 --- a/lib/Foswiki/Plugins/PublishPlugin.pm +++ b/lib/Foswiki/Plugins/PublishPlugin.pm @@ -7,7 +7,7 @@ package Foswiki::Plugins::PublishPlugin; use strict; use warnings; -use Foswiki (); +use Foswiki (); use Foswiki::Func (); use Error qw( :try ); use Assert; @@ -70,7 +70,7 @@ sub _publishRESTHandler { $query->delete('web'); $webs =~ m#([\w/.,\s]*)#; # clean up and untaint - $publisher->publish(split(/[,\s]+/, $1)); + $publisher->publish( split( /[,\s]+/, $1 ) ); } $publisher->finish(); } @@ -89,7 +89,7 @@ sub _display { # Allow manipulation of $Foswiki::cfg{PublishPlugin}{Dir} sub _publishControlCentre { - my ($session, $params, $topic, $web, $topicObject) = @_; + my ( $session, $params, $topic, $web, $topicObject ) = @_; my $query = Foswiki::Func::getCgiQuery(); @@ -98,6 +98,7 @@ sub _publishControlCentre { return CGI::span( { class => 'foswikiAlert' }, "Only admins can access the control interface" ); } + # Old code doesn't have isAnAdmin so will allow access to # the control UI for everyone. Caveat emptor. @@ -115,12 +116,13 @@ HERE if ( $action eq 'delete' ) { $file =~ m#([\w./\\]+)#; # untaint - if (-e "$Foswiki::cfg{PublishPlugin}{Dir}/$1") { - File::Path::rmtree("$Foswiki::cfg{PublishPlugin}{Dir}/$1"); - $output .= CGI::p("$1 deleted"); - } else { - $output .= CGI::p("Cannot delete $1 - no such file"); - } + if ( -e "$Foswiki::cfg{PublishPlugin}{Dir}/$1" ) { + File::Path::rmtree("$Foswiki::cfg{PublishPlugin}{Dir}/$1"); + $output .= CGI::p("$1 deleted"); + } + else { + $output .= CGI::p("Cannot delete $1 - no such file"); + } } if ( opendir( D, $Foswiki::cfg{PublishPlugin}{Dir} ) ) { my @files = grep( !/^\./, readdir(D) ); @@ -132,8 +134,8 @@ HERE my @cols = ( CGI::th($link) ); my $delcol = CGI::start_form( { - action => Foswiki::Func::getScriptUrl( - $web, $topic, 'view'), + action => + Foswiki::Func::getScriptUrl( $web, $topic, 'view' ), method => 'POST', name => $file } @@ -145,7 +147,8 @@ HERE } ); $delcol .= ""; - $delcol .= ""; + $delcol .= + ""; $delcol .= ""; $delcol .= CGI::end_form(); push( @cols, $delcol ); diff --git a/lib/Foswiki/Plugins/PublishPlugin/BackEnd.pm b/lib/Foswiki/Plugins/PublishPlugin/BackEnd.pm index a75822f..5af2247 100644 --- a/lib/Foswiki/Plugins/PublishPlugin/BackEnd.pm +++ b/lib/Foswiki/Plugins/PublishPlugin/BackEnd.pm @@ -38,11 +38,14 @@ Construct a new back end. sub new { my ( $class, $params, $path, $logger ) = @_; $path .= '/' unless $path =~ m#/$#; - my $this = bless( { - path => $path, - params => $params, - logger => $logger - }, $class ); + my $this = bless( + { + path => $path, + params => $params, + logger => $logger + }, + $class + ); return $this; } @@ -54,9 +57,7 @@ Get schema of query parameters, in the same format as Publisher.pm =cut sub param_schema { - return { - relativeurl => { default => '/' }, - }; + return { relativeurl => { default => '/' }, }; } =begin TML diff --git a/lib/Foswiki/Plugins/PublishPlugin/PageAssembler.pm b/lib/Foswiki/Plugins/PublishPlugin/PageAssembler.pm index 65c7d4e..37caca0 100644 --- a/lib/Foswiki/Plugins/PublishPlugin/PageAssembler.pm +++ b/lib/Foswiki/Plugins/PublishPlugin/PageAssembler.pm @@ -6,27 +6,25 @@ use strict; use Foswiki; use Foswiki::Plugins; - # This module assembles a page from the text and the template, # and does similar processing to that found in # Foswiki::writeCompletePage - i.e. rendering the "head" and -# "script" zones and inserting them into the right place in +# "script" zones and inserting them into the right place in # the page. Later versions of Foswiki also render other zones # at the same time. # # The challenge is that the Foswiki core has changed over time. # Different versions of Foswiki do it differently, and the -# ZonePlugin patches the Foswiki core to do it in another +# ZonePlugin patches the Foswiki core to do it in another # slightly differently way. # # Therefore, this module contains code for each incarnation # of the core, and chooses the right approach at runtime. - my $Assembler; -sub assemblePage -{ +sub assemblePage { + #my $publisher = shift; #my $tmpl = shift; #my $text = shift; @@ -36,36 +34,35 @@ sub assemblePage return $Assembler->(@_); } -sub _chooseMethod -{ - if (not $Foswiki::Plugins::VERSION or $Foswiki::Plugins::VERSION < 2.0) - { - # Ancient, or else not Foswiki - use something that is guaranteed to work. +sub _chooseMethod { + if ( not $Foswiki::Plugins::VERSION or $Foswiki::Plugins::VERSION < 2.0 ) { + + # Ancient, or else not Foswiki - use something that is guaranteed to work. return \&_noHeadOrScriptZones; } - elsif ($Foswiki::Plugins::VERSION < 2.1) - { + elsif ( $Foswiki::Plugins::VERSION < 2.1 ) { + # Foswiki 1.0.x - need to check if ZonePlugin is installed or not # - # Cannot use the contexts because PublishPlugin "leaves" the - # contexts for disabled plugins, but "leaving" the + # Cannot use the contexts because PublishPlugin "leaves" the + # contexts for disabled plugins, but "leaving" the # ZonePluginEnabled context does not undo ZonePlugin's # monkey-patching. - if ($Foswiki::cfg{Plugins}{ZonePlugin}{Enabled}) - { + if ( $Foswiki::cfg{Plugins}{ZonePlugin}{Enabled} ) { + # 1.0 with ZonePlugin - use a simple implementation # because ZonePlugin inserts zones in the completePageHandler return \&_noHeadOrScriptZones; } - else - { + else { + # 1.0 without ZonePlugin - mimic the behaviour of the core return \&_foswiki1x0NoZonePlugin; } } - else - { + else { + # Foswiki 1.1 or later - mimic the behaviour of the core return \&_foswiki1x1; } @@ -75,27 +72,24 @@ sub _chooseMethod } # This is the classic PublishPlugin way. The head and script zones are NOT rendered here. -sub _noHeadOrScriptZones -{ +sub _noHeadOrScriptZones { my $publisher = shift; - my $tmpl = shift; + my $tmpl = shift; return $tmpl; } # This is for use with 1.0.x, WITHOUT the ZonePlugin -sub _foswiki1x0NoZonePlugin -{ - my $publisher = shift; - my $tmpl = shift; +sub _foswiki1x0NoZonePlugin { + my $publisher = shift; + my $tmpl = shift; my $addedToHead = $Foswiki::Plugins::SESSION->RENDERHEAD(); $tmpl =~ s/(<\/head>)/$addedToHead$1/; return $tmpl; } -sub _foswiki1x1 -{ +sub _foswiki1x1 { my $publisher = shift; - my $tmpl = shift; + my $tmpl = shift; # nasty kludge. backup zone content for plugins which only call # addToZone during plugin initialization. _renderZones deletes @@ -103,12 +97,11 @@ sub _foswiki1x1 # that content my $this = $Foswiki::Plugins::SESSION; my %zones; - while( my ( $zoneName, $zone ) = each %{ $this->{_zones} } ) - { - $zones{$zoneName} = {}; + while ( my ( $zoneName, $zone ) = each %{ $this->{_zones} } ) { + $zones{$zoneName} = {}; - $zones{$zoneName}{$_} = $zone->{$_} - foreach grep { /^JQUERYPLUGIN::/ } keys %$zone; + $zones{$zoneName}{$_} = $zone->{$_} + foreach grep { /^JQUERYPLUGIN::/ } keys %$zone; } my $result = $Foswiki::Plugins::SESSION->_renderZones($tmpl); @@ -119,6 +112,7 @@ sub _foswiki1x1 } 1; + # Copyright (C) 2010 Arthur Clemens, http://visiblearea.com # Copyright (C) 2010 Michael Tempest # diff --git a/lib/Foswiki/Plugins/PublishPlugin/Publisher.pm b/lib/Foswiki/Plugins/PublishPlugin/Publisher.pm index b08327c..17a6b75 100644 --- a/lib/Foswiki/Plugins/PublishPlugin/Publisher.pm +++ b/lib/Foswiki/Plugins/PublishPlugin/Publisher.pm @@ -338,14 +338,14 @@ sub publish { ( $header, $footer ) = $this->_getPageTemplate(); } - $this->logInfo( '', "

Publishing Details

" ); + $this->logInfo( '', "

Publishing Details

" ); $this->logInfo( "Publisher", $this->{publisher} ); $this->logInfo( "Date", Foswiki::Func::formatTime( time() ) ); $this->logInfo( "Dir", "$Foswiki::cfg{PublishPlugin}{Dir}$this->{relativedir}" ); $this->logInfo( "URL", "$Foswiki::cfg{PublishPlugin}{URL}$this->{relativeurl}" ); - $this->logInfo( "Web(s)", join( ', ', @webs ) ); + $this->logInfo( "Web(s)", join( ', ', @webs ) ); $this->logInfo( "Versions topic", $this->{versions} ) if $this->{versions}; $this->logInfo( "Content Generator", $this->{format} ); @@ -394,7 +394,7 @@ TEXT $this->{history} = "$hw.$ht"; foreach my $web (@webs) { - $this->_publishWeb($web); + $this->_publishWeb($web); } my ( $meta, $text ) = Foswiki::Func::readTopic( $hw, $ht ); @@ -435,7 +435,7 @@ TEXT } sub _publishWeb { - my ($this, $web) = @_; + my ( $this, $web ) = @_; $this->{web} = $web; diff --git a/lib/Foswiki/Plugins/PublishPlugin/file.pm b/lib/Foswiki/Plugins/PublishPlugin/file.pm index 1139f37..efdd598 100644 --- a/lib/Foswiki/Plugins/PublishPlugin/file.pm +++ b/lib/Foswiki/Plugins/PublishPlugin/file.pm @@ -19,23 +19,23 @@ package Foswiki::Plugins::PublishPlugin::file; use strict; use Foswiki::Plugins::PublishPlugin::BackEnd; -our @ISA = ( 'Foswiki::Plugins::PublishPlugin::BackEnd' ); +our @ISA = ('Foswiki::Plugins::PublishPlugin::BackEnd'); use File::Copy (); use File::Path (); sub new { my $class = shift; - my $this = $class->SUPER::new(@_); + my $this = $class->SUPER::new(@_); my $oldmask = umask( oct(777) - $Foswiki::cfg{RCS}{dirPermission} ); $this->{params}->{outfile} ||= 'file'; - if (-e "$this->{path}/$this->{params}->{outfile}") { - File::Path::rmtree("$this->{path}/$this->{params}->{outfile}"); + if ( -e "$this->{path}/$this->{params}->{outfile}" ) { + File::Path::rmtree("$this->{path}/$this->{params}->{outfile}"); } - eval { File::Path::mkpath($this->{path}); }; - umask( $oldmask ); + eval { File::Path::mkpath( $this->{path} ); }; + umask($oldmask); die $@ if $@; return $this; @@ -44,16 +44,18 @@ sub new { sub param_schema { my $class = shift; return { - outfile => { - default => 'file', - validator => \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilename - }, - googlefile => { - default => '', - validator => \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilenameList + outfile => { + default => 'file', + validator => + \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilename }, - defaultpage => { default => 'WebHome' }, - %{$class->SUPER::param_schema} + googlefile => { + default => '', + validator => + \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilenameList + }, + defaultpage => { default => 'WebHome' }, + %{ $class->SUPER::param_schema } }; } @@ -63,7 +65,7 @@ sub addDirectory { my $oldmask = umask( oct(777) - $Foswiki::cfg{RCS}{dirPermission} ); eval { File::Path::mkpath("$this->{path}$this->{params}->{outfile}/$name") }; $this->{logger}->logError($@) if $@; - umask( $oldmask ); + umask($oldmask); push( @{ $this->{dirs} }, $name ); } @@ -72,8 +74,8 @@ sub addString { my $fh; my $d = $file; - if ($d =~ m#(.*)/[^/]*$#) { - File::Path::mkpath("$this->{path}$this->{params}->{outfile}/$1"); + if ( $d =~ m#(.*)/[^/]*$# ) { + File::Path::mkpath("$this->{path}$this->{params}->{outfile}/$1"); } if ( open( $fh, '>', "$this->{path}$this->{params}->{outfile}/$file" ) ) { binmode($fh); @@ -89,13 +91,14 @@ sub addString { my $topic = $1; push( @{ $this->{urls} }, $file ); - unless ( $topic eq 'default' || $topic eq 'index' ) { - # write link from index.html to actual topic - my $link = "$file
"; - $this->_catString( $link, 'default.htm' ); - $this->_catString( $link, 'index.html' ); - $this->{logger}->logInfo($topic, '(default.htm, index.html)'); - } + unless ( $topic eq 'default' || $topic eq 'index' ) { + + # write link from index.html to actual topic + my $link = "$file
"; + $this->_catString( $link, 'default.htm' ); + $this->_catString( $link, 'index.html' ); + $this->{logger}->logInfo( $topic, '(default.htm, index.html)' ); + } } } @@ -105,13 +108,14 @@ sub _catString { my $data; my $fh; if ( open( $fh, '<', "$this->{path}$this->{params}->{outfile}/$file" ) ) { - local $/ = undef; - $data = <$fh> . "\n" . $string; - close($fh); - } else { - $data = $string; + local $/ = undef; + $data = <$fh> . "\n" . $string; + close($fh); + } + else { + $data = $string; } - $this->addString($data, $file); + $this->addString( $data, $file ); } sub addFile { @@ -131,7 +135,7 @@ sub close { # write sitemap.xml my $sitemap = $this->_createSitemap( \@{ $this->{urls} } ); $this->addString( $sitemap, 'sitemap.xml' ); - $this->{logger}->logInfo('', 'Published sitemap.xml'); + $this->{logger}->logInfo( '', 'Published sitemap.xml' ); # write google verification files (comma seperated list) if ( $this->{params}->{googlefile} ) { @@ -142,7 +146,7 @@ sub close { . $file . 'just for google'; $this->addString( $simplehtml, $file ); - $this->{logger}->logInfo('', 'Published googlefile : ' . $file); + $this->{logger}->logInfo( '', 'Published googlefile : ' . $file ); } } diff --git a/lib/Foswiki/Plugins/PublishPlugin/ftp.pm b/lib/Foswiki/Plugins/PublishPlugin/ftp.pm index a2343a9..71222a1 100644 --- a/lib/Foswiki/Plugins/PublishPlugin/ftp.pm +++ b/lib/Foswiki/Plugins/PublishPlugin/ftp.pm @@ -26,21 +26,21 @@ use strict; # Inherit from file backend; we use the local copy as the cache for # uploading from use Foswiki::Plugins::PublishPlugin::file; -our @ISA = ( 'Foswiki::Plugins::PublishPlugin::file' ); +our @ISA = ('Foswiki::Plugins::PublishPlugin::file'); use File::Temp qw(:seekable); use File::Spec; sub new { my $class = shift; - my $this = $class->SUPER::new( @_ ); + my $this = $class->SUPER::new(@_); $this->{params}->{fastupload} ||= 0; if ( $this->{params}->{destinationftpserver} ) { if ( $this->{params}->{destinationftppath} =~ /^\/?(.*)$/ ) { $this->{params}->{destinationftppath} = $1; } - $this->{logger}->logInfo('', "fastUpload = $this->{fastupload}"); + $this->{logger}->logInfo( '', "fastUpload = $this->{fastupload}" ); } return $this; @@ -49,20 +49,24 @@ sub new { sub param_schema { my $class = shift; return { - destinationftpserver => { - validator => \&Foswiki::Plugins::PublishPlugin::Publisher::validateNonEmpty - }, - destinationftppath => { - validator => \&Foswiki::Plugins::PublishPlugin::Publisher::validateNonEmpty - }, - destinationftpusername => { - validator => \&Foswiki::Plugins::PublishPlugin::Publisher::validateNonEmpty - }, - destinationftppassword => { - validator => \&Foswiki::Plugins::PublishPlugin::Publisher::validateNonEmpty - }, - fastupload => { default => 1 }, - %{$class->SUPER::param_schema()} + destinationftpserver => { + validator => + \&Foswiki::Plugins::PublishPlugin::Publisher::validateNonEmpty + }, + destinationftppath => { + validator => + \&Foswiki::Plugins::PublishPlugin::Publisher::validateNonEmpty + }, + destinationftpusername => { + validator => + \&Foswiki::Plugins::PublishPlugin::Publisher::validateNonEmpty + }, + destinationftppassword => { + validator => + \&Foswiki::Plugins::PublishPlugin::Publisher::validateNonEmpty + }, + fastupload => { default => 1 }, + %{ $class->SUPER::param_schema() } }; } @@ -124,7 +128,9 @@ sub _upload { if ( $localCS eq $remoteCS ) { # Unchanged - $this->{logger}->logInfo('', "skipped uploading $to to $this->{destinationftpserver} (no changes)"); + $this->{logger}->logInfo( '', +"skipped uploading $to to $this->{destinationftpserver} (no changes)" + ); $attempts = 2; return; } @@ -143,7 +149,8 @@ sub _upload { $ftp->put( $localfilePath, $to ) or die "put failed ", $ftp->message; - $this->{logger}->logInfo("FTPed","$to to $this->{params}->{destinationftpserver}"); + $this->{logger}->logInfo( "FTPed", + "$to to $this->{params}->{destinationftpserver}" ); $attempts = 2; }; @@ -151,12 +158,12 @@ sub _upload { # Got an error; try restarting the session a couple of times # before giving up - $this->{logger}->logError("FTP ERROR: " . $@); + $this->{logger}->logError( "FTP ERROR: " . $@ ); if ( ++$attempts == 2 ) { $this->{logger}->logError("Giving up on $to"); return; } - $this->{logger}->logInfo('', "...retrying in 30s)"); + $this->{logger}->logInfo( '', "...retrying in 30s)" ); eval { $ftp->quit(); }; $this->{ftp_interface} = undef; sleep(30); @@ -174,10 +181,13 @@ sub _ftpConnect { Debug => 1, Timeout => 30, Passive => 1 - ) or die "Cannot connect to $this->{params}->{destinationftpserver}: $@"; - $ftp->login( $this->{params}->{destinationftpusername}, - $this->{params}->{destinationftppassword} ) - or die "Cannot login ", $ftp->message; + ) + or die + "Cannot connect to $this->{params}->{destinationftpserver}: $@"; + $ftp->login( + $this->{params}->{destinationftpusername}, + $this->{params}->{destinationftppassword} + ) or die "Cannot login ", $ftp->message; $ftp->binary(); diff --git a/lib/Foswiki/Plugins/PublishPlugin/pdf.pm b/lib/Foswiki/Plugins/PublishPlugin/pdf.pm index 4ae7237..f98f0c2 100644 --- a/lib/Foswiki/Plugins/PublishPlugin/pdf.pm +++ b/lib/Foswiki/Plugins/PublishPlugin/pdf.pm @@ -19,7 +19,7 @@ package Foswiki::Plugins::PublishPlugin::pdf; use strict; use Foswiki::Plugins::PublishPlugin::file; -our @ISA = ( 'Foswiki::Plugins::PublishPlugin::file' ); +our @ISA = ('Foswiki::Plugins::PublishPlugin::file'); use File::Path; @@ -34,11 +34,12 @@ sub new { sub param_schema { my $class = shift; return { - outfile => { - default => 'pdf', - validator => \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilename - }, - %{$class->SUPER::param_schema()} + outfile => { + default => 'pdf', + validator => + \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilename + }, + %{ $class->SUPER::param_schema() } }; } diff --git a/lib/Foswiki/Plugins/PublishPlugin/pdffiles.pm b/lib/Foswiki/Plugins/PublishPlugin/pdffiles.pm index 580626b..4224ade 100644 --- a/lib/Foswiki/Plugins/PublishPlugin/pdffiles.pm +++ b/lib/Foswiki/Plugins/PublishPlugin/pdffiles.pm @@ -28,7 +28,7 @@ my $debug = 1; sub new { my $class = shift; - my $this = $class->SUPER::new( @_ ); + my $this = $class->SUPER::new(@_); return $this; } diff --git a/lib/Foswiki/Plugins/PublishPlugin/tgz.pm b/lib/Foswiki/Plugins/PublishPlugin/tgz.pm index 3f721e6..a73a838 100644 --- a/lib/Foswiki/Plugins/PublishPlugin/tgz.pm +++ b/lib/Foswiki/Plugins/PublishPlugin/tgz.pm @@ -19,7 +19,7 @@ package Foswiki::Plugins::PublishPlugin::tgz; use strict; use Foswiki::Plugins::PublishPlugin::BackEnd; -our @ISA = ( 'Foswiki::Plugins::PublishPlugin::BackEnd' ); +our @ISA = ('Foswiki::Plugins::PublishPlugin::BackEnd'); use Foswiki::Func; use File::Path; @@ -40,11 +40,12 @@ sub new { sub param_schema { my $class = shift; return { - outfile => { - default => 'tgz', - validator => \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilename - }, - %{$class->SUPER::param_schema()} + outfile => { + default => 'tgz', + validator => + \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilename + }, + %{ $class->SUPER::param_schema() } }; } diff --git a/lib/Foswiki/Plugins/PublishPlugin/zip.pm b/lib/Foswiki/Plugins/PublishPlugin/zip.pm index 4b34737..4744b14 100644 --- a/lib/Foswiki/Plugins/PublishPlugin/zip.pm +++ b/lib/Foswiki/Plugins/PublishPlugin/zip.pm @@ -19,14 +19,14 @@ package Foswiki::Plugins::PublishPlugin::zip; use strict; use Foswiki::Plugins::PublishPlugin::BackEnd; -our @ISA = ( 'Foswiki::Plugins::PublishPlugin::BackEnd' ); +our @ISA = ('Foswiki::Plugins::PublishPlugin::BackEnd'); use Foswiki::Func; use File::Path; sub new { my $class = shift; - my ($params) = @_; + my ($params) = @_; $params->{outfile} ||= "zip"; my $this = $class->SUPER::new(@_); @@ -40,11 +40,12 @@ sub new { sub param_schema { my $class = shift; return { - outfile => { - default => 'zip', - validator => \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilename - }, - %{$class->SUPER::param_schema()} + outfile => { + default => 'zip', + validator => + \&Foswiki::Plugins::PublishPlugin::Publisher::validateFilename + }, + %{ $class->SUPER::param_schema() } }; }