summaryrefslogtreecommitdiffstats
path: root/extensions/GoogleAnalytics
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/GoogleAnalytics
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/GoogleAnalytics')
-rw-r--r--extensions/GoogleAnalytics/Extension.pm6
-rw-r--r--extensions/GoogleAnalytics/lib/Config.pm41
2 files changed, 22 insertions, 25 deletions
diff --git a/extensions/GoogleAnalytics/Extension.pm b/extensions/GoogleAnalytics/Extension.pm
index e9b144da4..fb7e8adae 100644
--- a/extensions/GoogleAnalytics/Extension.pm
+++ b/extensions/GoogleAnalytics/Extension.pm
@@ -15,9 +15,9 @@ use parent qw(Bugzilla::Extension);
our $VERSION = '0.1';
sub config_add_panels {
- my ($self, $args) = @_;
- my $modules = $args->{panel_modules};
- $modules->{GoogleAnalytics} = "Bugzilla::Extension::GoogleAnalytics::Config";
+ my ($self, $args) = @_;
+ my $modules = $args->{panel_modules};
+ $modules->{GoogleAnalytics} = "Bugzilla::Extension::GoogleAnalytics::Config";
}
__PACKAGE__->NAME;
diff --git a/extensions/GoogleAnalytics/lib/Config.pm b/extensions/GoogleAnalytics/lib/Config.pm
index f9e003ce0..1c453ff74 100644
--- a/extensions/GoogleAnalytics/lib/Config.pm
+++ b/extensions/GoogleAnalytics/lib/Config.pm
@@ -14,28 +14,25 @@ use warnings;
use Bugzilla::Config::Common;
sub get_param_list {
- my ($class) = @_;
-
- my @params = (
- {
- name => 'google_analytics_tracking_id',
- type => 't',
- default => '',
- checker => sub {
- my ($tracking_id) = (@_);
-
- return 'must be like UA-XXXXXX-X' unless $tracking_id =~ m{^(UA-[[:xdigit:]]+-[[:xdigit:]]+)?$};
- return '';
- }
- },
- {
- name => 'google_analytics_debug',
- type => 'b',
- default => 0
- },
- );
-
- return @params;
+ my ($class) = @_;
+
+ my @params = (
+ {
+ name => 'google_analytics_tracking_id',
+ type => 't',
+ default => '',
+ checker => sub {
+ my ($tracking_id) = (@_);
+
+ return 'must be like UA-XXXXXX-X'
+ unless $tracking_id =~ m{^(UA-[[:xdigit:]]+-[[:xdigit:]]+)?$};
+ return '';
+ }
+ },
+ {name => 'google_analytics_debug', type => 'b', default => 0},
+ );
+
+ return @params;
}
1;