[Catalyst-commits] r8771 - trunk/Catalyst-View-XSLT/t/lib
janus at dev.catalyst.perl.org
janus at dev.catalyst.perl.org
Sat Dec 6 21:08:16 GMT 2008
Author: janus
Date: 2008-12-06 21:08:16 +0000 (Sat, 06 Dec 2008)
New Revision: 8771
Modified:
trunk/Catalyst-View-XSLT/t/lib/TestApp.pm
Log:
unify indentation of TestApp
Modified: trunk/Catalyst-View-XSLT/t/lib/TestApp.pm
===================================================================
--- trunk/Catalyst-View-XSLT/t/lib/TestApp.pm 2008-12-06 21:05:52 UTC (rev 8770)
+++ trunk/Catalyst-View-XSLT/t/lib/TestApp.pm 2008-12-06 21:08:16 UTC (rev 8771)
@@ -25,39 +25,37 @@
}
sub testRegisterFunction : Local {
+ my ($self, $c) = @_;
- my ($self, $c) = @_;
-
- $c->stash->{additional_register_function} = [
- {
- uri => 'urn:catalyst',
- name => 'test',
- subref => sub { return $default_message },
- },
- ];
-
- $c->stash->{xml} = '<dummy-root/>';
- $c->stash->{template} = $c->request->param('template');
-
+ $c->stash->{additional_register_function} = [
+ {
+ uri => 'urn:catalyst',
+ name => 'test',
+ subref => sub { return $default_message },
+ },
+ ];
+
+ $c->stash->{xml} = '<dummy-root/>';
+ $c->stash->{template} = $c->request->param('template');
}
sub testParams : Local {
my ($self, $c) = @_;
- $c->stash->{xml} = '<dummy-root/>';
+ $c->stash->{xml} = '<dummy-root/>';
$c->stash->{template} = $c->request->param('template');
- my $message = $c->request->param('message') || $c->config->{default_message};
+ my $message = $c->request->param('message') || $c->config->{default_message};
$c->stash->{message} = $message;
}
sub testIncludePath : Local {
my ($self, $c) = @_;
- $c->stash->{xml} = '<dummy-root/>';
+ $c->stash->{xml} = '<dummy-root/>';
$c->stash->{template} = $c->request->param('template');
- my $message = $c->request->param('message') || $c->config->{default_message};
+ my $message = $c->request->param('message') || $c->config->{default_message};
$c->stash->{message} = $message;
-
+
if ( $c->request->param('additionalpath') ){
my $additionalpath = Path::Class::dir($c->config->{root}, $c->request->param('additionalpath'));
$c->stash->{additional_template_paths} = ["$additionalpath"];
@@ -67,8 +65,8 @@
sub testNoXSLT : Local {
my ($self, $c) = @_;
- $c->stash->{xml} = '<dummy-root/>';
- my $message = $c->request->param('message') || $c->config->{default_message};
+ $c->stash->{xml} = '<dummy-root/>';
+ my $message = $c->request->param('message') || $c->config->{default_message};
$c->stash->{message} = $message;
}
More information about the Catalyst-commits
mailing list