From 37722eca39874bb6abdcd120e3e458bd62dea62b Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 5 Jul 2017 11:43:18 -0700 Subject: Bug 1377933 - Remove trailing whitespace from all perl files --- Bugzilla/Field/Choice.pm | 16 ++++++++-------- Bugzilla/Field/ChoiceInterface.pm | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'Bugzilla/Field') diff --git a/Bugzilla/Field/Choice.pm b/Bugzilla/Field/Choice.pm index b35006501..10f8f38e6 100644 --- a/Bugzilla/Field/Choice.pm +++ b/Bugzilla/Field/Choice.pm @@ -108,7 +108,7 @@ EOC # Constructors # ################ -# We just make new() enforce this, which should give developers +# We just make new() enforce this, which should give developers # the understanding that you can't use Bugzilla::Field::Choice # without calling type(). sub new { @@ -177,7 +177,7 @@ sub remove_from_db { }); } if ($self->is_static) { - ThrowUserError('fieldvalue_not_deletable', + ThrowUserError('fieldvalue_not_deletable', { field => $self->field, value => $self }); } if ($self->bug_count) { @@ -211,7 +211,7 @@ sub _check_isactive { if (!$value and ref $invocant) { if ($invocant->is_default) { my $field = $invocant->field; - ThrowUserError('fieldvalue_is_default', + ThrowUserError('fieldvalue_is_default', { value => $invocant, field => $field, param_name => $invocant->DEFAULT_MAP->{$field->name} }); @@ -232,8 +232,8 @@ sub _check_value { $value = trim($value); # Make sure people don't rename static values - if (blessed($invocant) && $value ne $invocant->name - && $invocant->is_static) + if (blessed($invocant) && $value ne $invocant->name + && $invocant->is_static) { ThrowUserError('fieldvalue_not_editable', { field => $field, old_value => $invocant }); @@ -245,7 +245,7 @@ sub _check_value { my $exists = $invocant->type($field)->new({ name => $value }); if ($exists && (!blessed($invocant) || $invocant->id != $exists->id)) { - ThrowUserError('fieldvalue_already_exists', + ThrowUserError('fieldvalue_already_exists', { field => $field, value => $exists }); } @@ -291,12 +291,12 @@ Bugzilla::Field::Choice - A legal value for a