From 8ec8da0491ad89604700b3e29a227966f6d84ba1 Mon Sep 17 00:00:00 2001 From: Perl Tidy Date: Wed, 5 Dec 2018 15:38:52 -0500 Subject: no bug - reformat all the code using the new perltidy rules --- xt/lib/Bugzilla/Test/Search/NotTest.pm | 37 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'xt/lib/Bugzilla/Test/Search/NotTest.pm') diff --git a/xt/lib/Bugzilla/Test/Search/NotTest.pm b/xt/lib/Bugzilla/Test/Search/NotTest.pm index 86da4c644..7d11a3652 100644 --- a/xt/lib/Bugzilla/Test/Search/NotTest.pm +++ b/xt/lib/Bugzilla/Test/Search/NotTest.pm @@ -34,9 +34,9 @@ use Bugzilla::Test::Search::Constants; # We just clone a FieldTest because that's the best for performance, # overall--that way we don't have to translate the value again. sub new { - my ($class, $field_test) = @_; - my $self = { %$field_test }; - return bless $self, $class; + my ($class, $field_test) = @_; + my $self = {%$field_test}; + return bless $self, $class; } ############# @@ -44,32 +44,33 @@ sub new { ############# sub name { - my ($self) = @_; - return "NOT(" . $self->SUPER::name . ")"; + my ($self) = @_; + return "NOT(" . $self->SUPER::name . ")"; } # True if this test is supposed to contain the numbered bug. Reversed for # NOT tests. sub bug_is_contained { - my $self = shift; - my ($number) = @_; - # No search ever returns bug 6, because it's protected by security groups - # that the searcher isn't a member of. - return 0 if $number == 6; - return $self->SUPER::bug_is_contained(@_) ? 0 : 1; + my $self = shift; + my ($number) = @_; + + # No search ever returns bug 6, because it's protected by security groups + # that the searcher isn't a member of. + return 0 if $number == 6; + return $self->SUPER::bug_is_contained(@_) ? 0 : 1; } # NOT tests have their own constant for tracking broken-ness. sub _known_broken { - my ($self) = @_; - return $self->SUPER::_known_broken(BROKEN_NOT, 'skip pg check'); + my ($self) = @_; + return $self->SUPER::_known_broken(BROKEN_NOT, 'skip pg check'); } sub search_params { - my ($self) = @_; - my %params = %{ $self->SUPER::search_params() }; - $params{negate0} = 1; - return \%params; + my ($self) = @_; + my %params = %{$self->SUPER::search_params()}; + $params{negate0} = 1; + return \%params; } -1; \ No newline at end of file +1; -- cgit v1.2.3-24-g4f1b