Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jvitasek committed Apr 6, 2021
1 parent 5a51d4f commit 35c1ee3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/VisualPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ private function getSessionRepository(): string
}

if ($repository === null) {
if($this->getPresenterIfExists()) {
$repository = $this->presenter->getName() ?? 'default';
$presenter = $this->getPresenterIfExists();

if ($presenter !== null) {
$repository = $presenter->getName() ?? 'default';
} else {
$repository = 'default';
}
Expand Down

0 comments on commit 35c1ee3

Please sign in to comment.