Skip to content

Commit cf4ab64

Browse files
committed
refactor bootstrap getter
1 parent 61d4474 commit cf4ab64

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Mapper.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ public function findRepository(Entity $instance)
5959

6060
public function getBootstrap()
6161
{
62-
if(!$this->bootstrap) {
63-
$this->bootstrap = new Bootstrap($this);
64-
}
65-
66-
return $this->bootstrap;
62+
return $this->bootstrap ?: $this->bootstrap = new Bootstrap($this);
6763
}
6864

6965
public function getClient()

0 commit comments

Comments
 (0)