Simplify controllers

This commit is contained in:
James Cole
2017-07-30 13:42:30 +02:00
parent 8fcdb91ba3
commit c39c5492ea
9 changed files with 27 additions and 25 deletions

View File

@@ -399,6 +399,10 @@ class JournalCollector implements JournalCollectorInterface
*/
public function setPage(int $page): JournalCollectorInterface
{
if ($page < 1) {
$page = 1;
}
$this->page = $page;
if ($page > 0) {