summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/lib
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-06-15 19:10:21 +0200
committerDylan William Hardison <dylan@hardison.net>2017-06-15 19:10:21 +0200
commit44af2d396f1f7da55ab78a6bf74be92e9d82e751 (patch)
tree94a46202e976aa006a92b3f58b717f00513dd928 /extensions/BugModal/lib
parent9e71dcae1e1bf233f655ced691f5798cbe430f68 (diff)
downloadbugzilla-44af2d396f1f7da55ab78a6bf74be92e9d82e751.tar.gz
bugzilla-44af2d396f1f7da55ab78a6bf74be92e9d82e751.tar.xz
perltidy cleanup
Diffstat (limited to 'extensions/BugModal/lib')
-rw-r--r--extensions/BugModal/lib/WebService.pm17
1 files changed, 9 insertions, 8 deletions
diff --git a/extensions/BugModal/lib/WebService.pm b/extensions/BugModal/lib/WebService.pm
index 33fec6bab..a7026288c 100644
--- a/extensions/BugModal/lib/WebService.pm
+++ b/extensions/BugModal/lib/WebService.pm
@@ -84,20 +84,21 @@ sub rest_resources {
sub products {
my $user = Bugzilla->user;
- return { products => _name($user->get_enterable_products) }
+ return { products => _name($user->get_enterable_products) };
}
sub components {
- my ($self, $params) = @_;
- if (!ref $params->{product_name}) {
- untaint($params->{product_name});
+ my ( $self, $params ) = @_;
+ if ( !ref $params->{product_name} ) {
+ untaint( $params->{product_name} );
}
else {
- ThrowCodeError('params_required',{ function => 'BugModal.components', params => ['product'] });
+ ThrowCodeError( 'params_required',
+ { function => 'BugModal.components', params => ['product'] } );
}
- my $product = Bugzilla::Product->check({ name => $params->{product_name}, cache => 1 });
- $product = Bugzilla->user->can_enter_product($product, 1);
- return { components => _name($product->components) }
+ my $product = Bugzilla::Product->check( { name => $params->{product_name}, cache => 1 } );
+ $product = Bugzilla->user->can_enter_product( $product, 1 );
+ return { components => _name( $product->components ) };
}
# everything we need for edit mode in a single call, returning just the fields