[Catalyst-commits] r9518 - Catalyst-Controller-DBIC-API/1.001/trunk/lib/Catalyst/Controller/DBIC/API

lukes at dev.catalyst.perl.org lukes at dev.catalyst.perl.org
Wed Mar 18 12:56:02 GMT 2009


Author: lukes
Date: 2009-03-18 12:56:01 +0000 (Wed, 18 Mar 2009)
New Revision: 9518

Modified:
   Catalyst-Controller-DBIC-API/1.001/trunk/lib/Catalyst/Controller/DBIC/API/Base.pm
Log:
fixed spacing

Modified: Catalyst-Controller-DBIC-API/1.001/trunk/lib/Catalyst/Controller/DBIC/API/Base.pm
===================================================================
--- Catalyst-Controller-DBIC-API/1.001/trunk/lib/Catalyst/Controller/DBIC/API/Base.pm	2009-03-18 12:53:51 UTC (rev 9517)
+++ Catalyst-Controller-DBIC-API/1.001/trunk/lib/Catalyst/Controller/DBIC/API/Base.pm	2009-03-18 12:56:01 UTC (rev 9518)
@@ -37,7 +37,7 @@
   my ($self, $c) = @_;
 
   my ($params, $args) = @{$c->forward('generate_dbic_search_args')};
-	return if $self->get_errors($c);
+  return if $self->get_errors($c);
 
   $c->stash->{$self->rs_stash_key} = $c->stash->{$self->rs_stash_key}->search($params, $args);
   $c->forward('format_list');
@@ -72,16 +72,16 @@
   $args->{order_by} = $req_params->{list_ordered_by} || ((scalar(@{$self->list_ordered_by})) ? $self->list_ordered_by : undef);
   $args->{rows} = $req_params->{list_count} || $self->list_count;
   $args->{page} = $req_params->{list_page};
-	if ($args->{page}) {
-		unless ($args->{page} =~ /^\d+$/xms) {
-			$self->push_error($c, { message => "list_page must be numeric" });
-		}
-	}
-	if ($args->{rows}) {
-		unless ($args->{rows} =~ /^\d+$/xms) {
-			$self->push_error($c, { message => "list_count must be numeric" });
-		}
-	}
+  if ($args->{page}) {
+    unless ($args->{page} =~ /^\d+$/xms) {
+      $self->push_error($c, { message => "list_page must be numeric" });
+    }
+  }
+  if ($args->{rows}) {
+    unless ($args->{rows} =~ /^\d+$/xms) {
+      $self->push_error($c, { message => "list_count must be numeric" });
+    }
+  }
   if ($args->{page} && !$args->{rows}) {
     $self->push_error($c, { message => "list_page can only be used with list_count" });
   }




More information about the Catalyst-commits mailing list