From 266b1b435fcb2600a7850b88c0ed88479b0ba2ab Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sun, 5 Jun 2011 12:01:12 -0400 Subject: Whitespace --- models/Anime.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'models') diff --git a/models/Anime.php b/models/Anime.php index 0877619..5a2cf00 100644 --- a/models/Anime.php +++ b/models/Anime.php @@ -5,12 +5,11 @@ namespace app\models; class Anime extends \lithium\data\Model { protected $_meta = array('key' => '_id', 'source' => 'anime'); - public static function search($query, $page = 1, $by = 'title') - { + public static function search($query, $page = 1, $by = 'title') + { $defaults = array( 'limit' => 20 ); - $limit = 20; $content = self::find('all', @@ -21,6 +20,7 @@ class Anime extends \lithium\data\Model { 'limit' => $limit, 'page' => $page )); + $total = Anime::count(array('title' => array('like' => $query))); return compact('content', 'by', 'limit', 'total', 'page'); } -- cgit v1.2.3