Commit 8711b287 authored by zYne's avatar zYne

fixed code formatting

parent 18fc6b4a
......@@ -184,8 +184,7 @@ class Doctrine_Pager
{
$this->lastPage = $page;
if ($this->getPage() > $page)
{
if ($this->getPage() > $page) {
$this->_setPage($page);
}
}
......@@ -346,7 +345,7 @@ class Doctrine_Pager
protected function setQuery($query)
{
if (is_string($query)) {
$query = Doctrine_Query::create()->from($query);
$query = Doctrine_Query::create()->parseQuery($query);
}
$this->query = $query;
......
......@@ -102,7 +102,7 @@ class Doctrine_Pager_Range_Jumping extends Doctrine_Pager_Range
$endPage = ($startPage + $this->getChunkLength()) - 1;
// Check for EndPage out-range
if ( $endPage > $pager->getLastPage() ) {
if ($endPage > $pager->getLastPage()) {
$endPage = $pager->getLastPage();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment