Skip to content
Permalink
Browse files

Fix PHPCS error and adding missing cast.

  • Loading branch information...
markstory committed Jun 28, 2015
1 parent 8db3292 commit 247c4a04f687d711f4191923b2fa178d772b615e
@@ -113,7 +113,7 @@ protected function _pagingSubquery($original, $limit, $offset)
->from(['_cake_paging_' => $query]);
if ($offset) {
$outer->where(["$field > $offset"]);
$outer->where(["$field > " . (int)$offset]);
}
if ($limit) {
$value = (int)$offset + (int)$limit;
@@ -826,7 +826,7 @@ public function testPaginateCustomFind()
$result = $this->Paginator->paginate($table);
$this->assertCount(4, $result, '4 rows should come back');
$this->assertEquals(['First Post', 'Second Post', 'Third Post', 'Fourth Post'] , $titleExtractor($result));
$this->assertEquals(['First Post', 'Second Post', 'Third Post', 'Fourth Post'], $titleExtractor($result));
$result = $this->request->params['paging']['PaginatorPosts'];
$this->assertEquals(4, $result['current']);

0 comments on commit 247c4a0

Please sign in to comment.
You can’t perform that action at this time.