whitespace cleanup
[catagits/Catalyst-Runtime.git] / lib / Catalyst / DispatchType / Chained.pm
index 3cd15f0..34faf94 100644 (file)
@@ -162,7 +162,7 @@ sub list {
             push(@rows, [ '', $name ]);
         }
 
-        my $endpoint_arg_info;
+        my $endpoint_arg_info = $endpoint;
         if($endpoint->has_args_constraints) {
           my $tc = join ',', @{$endpoint->args_constraints};
           $endpoint_arg_info .= " ($tc)";
@@ -317,12 +317,12 @@ sub recurse_match {
                     !$best_action                       ||
                     @parts < @{$best_action->{parts}}   ||
                     (
-                        !@parts && 
-                        defined($args_attr) && 
+                        !@parts &&
+                        defined($args_attr) &&
                         (
                             $args_count eq "0" &&
                             (
-                              ($c->config->{use_chained_args_0_special_case}||0) || 
+                              ($c->config->{use_chained_args_0_special_case}||0) ||
                                 (
                                   exists($best_action->{args_count}) && defined($best_action->{args_count}) ?
                                   ($best_action->{args_count} ne 0) : 1
@@ -702,7 +702,7 @@ controller. For Example:
   # in MyApp::Controller::Foo
   sub bar : Chained CaptureArgs(1) { ... }
 
-  # in MyApp::Controller::Foo::Moo
+  # in MyApp::Controller::Foo::Bar
   sub bar : ChainedParent Args(1) { ... }
 
 This builds a chain like C</bar/*/bar/*>.
@@ -715,7 +715,7 @@ parts of the path (separated by C</>) this action wants to capture as
 its arguments. If it doesn't expect any, just specify
 C<:CaptureArgs(0)>.  The captures get passed to the action's C<@_> right
 after the context, but you can also find them as array references in
-C<$c-E<gt>request-E<gt>captures-E<gt>[$level]>. The C<$level> is the
+C<< $c->request->captures->[$level] >>. The C<$level> is the
 level of the action in the chain that captured the parts of the path.
 
 An action that is part of a chain (that is, one that has a C<:Chained>
@@ -764,7 +764,7 @@ of path parts after the endpoint.
 
 Just as with C<:CaptureArgs>, the arguments get passed to the action in
 C<@_> after the context object. They can also be reached through
-C<$c-E<gt>request-E<gt>arguments>.
+C<< $c->request->arguments >>.
 
 You should see 'Args' in L<Catalyst::Controller> for more details on using
 type constraints in your Args declarations.