summaryrefslogtreecommitdiffstats
path: root/extensions/Push/lib/Option.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 /extensions/Push/lib/Option.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 'extensions/Push/lib/Option.pm')
-rw-r--r--extensions/Push/lib/Option.pm32
1 files changed, 15 insertions, 17 deletions
diff --git a/extensions/Push/lib/Option.pm b/extensions/Push/lib/Option.pm
index a08e4c11d..a8e67714c 100644
--- a/extensions/Push/lib/Option.pm
+++ b/extensions/Push/lib/Option.pm
@@ -21,27 +21,25 @@ use Bugzilla::Util;
# initialisation
#
-use constant DB_TABLE => 'push_options';
+use constant DB_TABLE => 'push_options';
use constant DB_COLUMNS => qw(
- id
- connector
- option_name
- option_value
+ id
+ connector
+ option_name
+ option_value
);
use constant UPDATE_COLUMNS => qw(
- option_value
+ option_value
);
-use constant VALIDATORS => {
- connector => \&_check_connector,
-};
+use constant VALIDATORS => {connector => \&_check_connector,};
use constant LIST_ORDER => 'connector';
#
# accessors
#
-sub connector { return $_[0]->{'connector'}; }
-sub name { return $_[0]->{'option_name'}; }
+sub connector { return $_[0]->{'connector'}; }
+sub name { return $_[0]->{'option_name'}; }
sub value { return $_[0]->{'option_value'}; }
#
@@ -55,12 +53,12 @@ sub set_value { $_[0]->{'option_value'} = $_[1]; }
#
sub _check_connector {
- my ($invocant, $value) = @_;
- $value eq '*'
- || $value eq 'global'
- || Bugzilla->push_ext->connectors->exists($value)
- || ThrowCodeError('push_invalid_connector');
- return $value;
+ my ($invocant, $value) = @_;
+ $value eq '*'
+ || $value eq 'global'
+ || Bugzilla->push_ext->connectors->exists($value)
+ || ThrowCodeError('push_invalid_connector');
+ return $value;
}
1;