| Conditions | 5 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 7 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | static public function __bootstrap() |
||
| 13 | { |
||
| 14 | if (($user = Ajde_User::getLoggedIn()) && $user->getDebug()) { |
||
|
|
|||
| 15 | Config::set("app.debug", true); |
||
| 16 | |||
| 17 | $htmlProcessors = config("layout.filters.documentProcessors.html"); |
||
| 18 | if (is_array($htmlProcessors) && !in_array('Debugger', $htmlProcessors)) { |
||
| 19 | $htmlProcessors[] = "Debugger"; |
||
| 20 | Config::set("layout.filters.documentProcessors.html", $htmlProcessors); |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | return true; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: