Tidy all code
Dave Rolsky [Sat, 22 Jan 2011 16:24:40 +0000 (10:24 -0600)]
lib/CatalystX/Routes.pm

index add044b..008b087 100644 (file)
@@ -12,8 +12,8 @@ use Scalar::Util qw( blessed );
 use Moose::Exporter;
 
 Moose::Exporter->setup_import_methods(
-    with_meta => [qw( get get_html post put del )],
-    as_is     => [qw( chained args capture_args path_part action )],
+    with_meta       => [qw( get get_html post put del )],
+    as_is           => [qw( chained args capture_args path_part action )],
     class_metaroles => {
         class => ['CatalystX::Routes::Role::Class'],
     },
@@ -99,7 +99,8 @@ sub _process_args {
         unless ( $p{PathPart} ) {
             my $part = $path;
             unless ( $part =~ s{^/}{} ) {
-                $part = $meta->name()->action_namespace('FakeConfig') . q{/} . $part;
+                $part = join q{/},
+                    $meta->name()->action_namespace('FakeConfig'), . $part;
             }
 
             $p{PathPart} = [$part];
@@ -150,6 +151,7 @@ sub _STRINGLIKE0 ($) {
 }
 
 {
+
     # This is a nasty hack around some weird back compat code in
     # Catalyst::Controller->action_namespace
     package FakeConfig;