IncludeManagerProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace PHPHub\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use PHPHub\Transformers\IncludeManager\IncludeManager;
7
8
class IncludeManagerProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        app()->singleton(IncludeManager::class, function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
            return new IncludeManager();
17
        });
18
    }
19
20
    /**
21
     * Register the application services.
22
     */
23
    public function register()
24
    {
25
        //
26
    }
27
}
28