ARCANEDEV /
LogViewer
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | use Arcanedev\LogViewer\Contracts; |
||
| 4 | |||
| 5 | if ( ! function_exists('log_viewer')) { |
||
| 6 | /** |
||
| 7 | * Get the LogViewer instance. |
||
| 8 | * |
||
| 9 | * @return Arcanedev\LogViewer\Contracts\LogViewer |
||
| 10 | */ |
||
| 11 | function log_viewer() |
||
| 12 | { |
||
| 13 | return app(Contracts\LogViewer::class); |
||
| 14 | } |
||
| 15 | } |
||
| 16 | |||
| 17 | if ( ! function_exists('log_levels')) { |
||
| 18 | /** |
||
| 19 | * Get the LogLevels instance. |
||
| 20 | * |
||
| 21 | * @return Arcanedev\LogViewer\Contracts\Utilities\LogLevels |
||
| 22 | */ |
||
| 23 | function log_levels() |
||
|
0 ignored issues
–
show
|
|||
| 24 | { |
||
| 25 | return app(Contracts\Utilities\LogLevels::class); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | if ( ! function_exists('log_menu')) { |
||
| 30 | /** |
||
| 31 | * Get the LogMenu instance. |
||
| 32 | * |
||
| 33 | * @return Arcanedev\LogViewer\Contracts\Utilities\LogMenu |
||
| 34 | */ |
||
| 35 | function log_menu() |
||
|
0 ignored issues
–
show
|
|||
| 36 | { |
||
| 37 | return app(Contracts\Utilities\LogMenu::class); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | if ( ! function_exists('log_styler')) { |
||
| 42 | /** |
||
| 43 | * Get the LogStyler instance. |
||
| 44 | * |
||
| 45 | * @return Arcanedev\LogViewer\Contracts\Utilities\LogStyler |
||
| 46 | */ |
||
| 47 | function log_styler() |
||
|
0 ignored issues
–
show
|
|||
| 48 | { |
||
| 49 | return app(Contracts\Utilities\LogStyler::class); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.