summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Elastic/Search/FakeCGI.pm
diff options
context:
space:
mode:
authorPerl Tidy <perltidy@bugzilla.org>2018-12-05 21:38:52 +0100
committerDylan William Hardison <dylan@hardison.net>2018-12-05 23:49:08 +0100
commit8ec8da0491ad89604700b3e29a227966f6d84ba1 (patch)
tree9d270f173330ca19700e0ba9f2ee931300646de1 /Bugzilla/Elastic/Search/FakeCGI.pm
parenta7bb5a65b71644d9efce5fed783ed545b9336548 (diff)
downloadbugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.gz
bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.xz
no bug - reformat all the code using the new perltidy rules
Diffstat (limited to 'Bugzilla/Elastic/Search/FakeCGI.pm')
-rw-r--r--Bugzilla/Elastic/Search/FakeCGI.pm33
1 files changed, 18 insertions, 15 deletions
diff --git a/Bugzilla/Elastic/Search/FakeCGI.pm b/Bugzilla/Elastic/Search/FakeCGI.pm
index 827c96c52..9772d798c 100644
--- a/Bugzilla/Elastic/Search/FakeCGI.pm
+++ b/Bugzilla/Elastic/Search/FakeCGI.pm
@@ -13,31 +13,34 @@ has 'params' => (is => 'ro', default => sub { {} });
# we pretend to be Bugzilla::CGI at times.
sub canonicalise_query {
- return Bugzilla::CGI::canonicalise_query(@_);
+ return Bugzilla::CGI::canonicalise_query(@_);
}
sub delete {
- my ($self, $key) = @_;
- delete $self->params->{$key};
+ my ($self, $key) = @_;
+ delete $self->params->{$key};
}
sub redirect {
- my ($self, @args) = @_;
+ my ($self, @args) = @_;
- Bugzilla::Elastic::Search::Redirect->throw(redirect_args => \@args);
+ Bugzilla::Elastic::Search::Redirect->throw(redirect_args => \@args);
}
sub param {
- my ($self, $key, $val, @rest) = @_;
- if (@_ > 3) {
- $self->params->{$key} = [$val, @rest];
- } elsif (@_ == 3) {
- $self->params->{$key} = $val;
- } elsif (@_ == 2) {
- return $self->params->{$key};
- } else {
- return $self->params
- }
+ my ($self, $key, $val, @rest) = @_;
+ if (@_ > 3) {
+ $self->params->{$key} = [$val, @rest];
+ }
+ elsif (@_ == 3) {
+ $self->params->{$key} = $val;
+ }
+ elsif (@_ == 2) {
+ return $self->params->{$key};
+ }
+ else {
+ return $self->params;
+ }
}
1;