summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Error
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 /Bugzilla/Error
parenta7bb5a65b71644d9efce5fed783ed545b9336548 (diff)
downloadbugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.gz
bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.xz
no bug - reformat all the code using the new perltidy rules
Diffstat (limited to 'Bugzilla/Error')
-rw-r--r--Bugzilla/Error/Base.pm6
-rw-r--r--Bugzilla/Error/Template.pm12
2 files changed, 6 insertions, 12 deletions
diff --git a/Bugzilla/Error/Base.pm b/Bugzilla/Error/Base.pm
index ea44c272a..ed3bb2cd5 100644
--- a/Bugzilla/Error/Base.pm
+++ b/Bugzilla/Error/Base.pm
@@ -13,9 +13,9 @@ use Mojo::Base 'Mojo::Exception';
has 'vars' => sub { {} };
has 'template' => sub {
- my $self = shift;
- my $type = lc( (split(/::/, ref $self))[-1] );
- return "global/$type-error";
+ my $self = shift;
+ my $type = lc((split(/::/, ref $self))[-1]);
+ return "global/$type-error";
};
1;
diff --git a/Bugzilla/Error/Template.pm b/Bugzilla/Error/Template.pm
index a3afa7e4d..5cae8f5bc 100644
--- a/Bugzilla/Error/Template.pm
+++ b/Bugzilla/Error/Template.pm
@@ -12,15 +12,9 @@ use strict;
use warnings;
use Moo;
-has 'file' => (
- is => 'ro',
- required => 1,
-);
+has 'file' => (is => 'ro', required => 1,);
-has 'vars' => (
- is => 'ro',
- default => sub { {} },
-);
+has 'vars' => (is => 'ro', default => sub { {} },);
-1; \ No newline at end of file
+1;