Conditions | 4 |
Paths | 8 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 1 |
1 | <?php namespace Rap2hpoutre\LaravelLogViewer; |
||
19 | public function boot() |
||
20 | { |
||
21 | if (method_exists($this, 'package')) { |
||
22 | $this->package('rap2hpoutre/laravel-log-viewer', 'laravel-log-viewer', __DIR__ . '/../../'); |
||
|
|||
23 | } |
||
24 | |||
25 | if (method_exists($this, 'loadViewsFrom')) { |
||
26 | $this->loadViewsFrom(__DIR__.'/../../views', 'laravel-log-viewer'); |
||
27 | } |
||
28 | |||
29 | $configPath = $this->getConfigPath(); |
||
30 | if (function_exists('config_path')) { |
||
31 | $this->publishes([$configPath => config_path('logviewer.php')], 'config'); |
||
32 | } |
||
33 | } |
||
34 | |||
67 |
If you implement
__call
and 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
__call
is implemented by a parent class and only the child class knows which methods exist: