| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function boot() |
||
| 22 | { |
||
| 23 | if (method_exists($this, 'package')) { |
||
| 24 | $this->package('rap2hpoutre/laravel-log-viewer', 'laravel-log-viewer', __DIR__.'/../../'); |
||
|
|
|||
| 25 | } |
||
| 26 | |||
| 27 | $view_path = app_path().DIRECTORY_SEPARATOR.'FaveoLog'.DIRECTORY_SEPARATOR.'views'; |
||
| 28 | $this->loadViewsFrom($view_path, 'log'); |
||
| 29 | |||
| 30 | $lang_path = app_path().DIRECTORY_SEPARATOR.'FaveoLog'.DIRECTORY_SEPARATOR.'lang'; |
||
| 31 | $this->loadTranslationsFrom($lang_path, 'log'); |
||
| 32 | } |
||
| 33 | |||
| 58 |
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: