| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function findDefaultTenant() { |
||
|
|
|||
| 15 | if (!$this->default_tenant) { |
||
| 16 | $this->default_tenant = $this->findOneBy([ |
||
| 17 | 'code' => 'DEF' |
||
| 18 | ]); |
||
| 19 | if (!$this->default_tenant) { |
||
| 20 | $this->default_tenant = new Tenant('DEF', 'Default tenant'); |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | |||
| 25 | return $this->default_tenant; |
||
| 26 | } |
||
| 27 | } |
||
| 30 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.