Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | 31 | public function bootIfNotBooted() |
|
14 | { |
||
15 | 31 | if ($this->booted !== false) { |
|
16 | 1 | return; |
|
17 | } |
||
18 | // $this->fireModelEvent('booting', false); |
||
19 | |||
20 | 31 | $this->booting(); |
|
21 | 31 | $this->boot(); |
|
22 | 31 | $this->booted(); |
|
23 | |||
24 | // $this->fireModelEvent('booted', false); |
||
25 | 31 | $this->booted = true; |
|
26 | 31 | } |
|
57 | } |