]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
perltidy cleanup
authorDylan William Hardison <dylan@hardison.net>
Thu, 15 Jun 2017 17:10:21 +0000 (13:10 -0400)
committerDylan William Hardison <dylan@hardison.net>
Thu, 15 Jun 2017 17:10:21 +0000 (13:10 -0400)
extensions/BugModal/lib/WebService.pm

index 33fec6bab8e73f80ce366be9d80d8f07e147be17..a7026288cd9cb20d6e586c437bec9b245c86ac5d 100644 (file)
@@ -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