@@ -32,7 +32,7 @@ |
||
| 32 | 32 | ->where('page.category = :category') |
| 33 | 33 | ->orderBy('page.'.$orderBy, $order) |
| 34 | 34 | ->setMaxResults($limit) |
| 35 | - ->setFirstResult($limit*($page-1)) |
|
| 35 | + ->setFirstResult($limit * ($page-1)) |
|
| 36 | 36 | ->setParameter('category', $category) |
| 37 | 37 | ; |
| 38 | 38 | |
@@ -61,9 +61,9 @@ |
||
| 61 | 61 | throw $this->createNotFoundException(($element instanceof Page |
| 62 | 62 | ? 'Page' |
| 63 | 63 | : ($element |
| 64 | - instanceof |
|
| 65 | - Category ? 'Category' : 'Elements')) |
|
| 66 | - .' hierarchy not found.'); |
|
| 64 | + instanceof |
|
| 65 | + Category ? 'Category' : 'Elements')) |
|
| 66 | + .' hierarchy not found.'); |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |