VtuServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 1
dl 0
loc 9
ccs 7
cts 7
cp 1
crap 2
rs 9.9666
c 0
b 0
f 0
1
<?php
2
3
namespace Djunehor\Vtu;
4
5
use Illuminate\Filesystem\Filesystem;
6
use Illuminate\Support\ServiceProvider;
7
8
class VtuServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     *
13
     * @param Filesystem $filesystem
14
     * @return void
15
     */
16 6
    public function boot(Filesystem $filesystem)
0 ignored issues
show
Unused Code introduced by
The parameter $filesystem 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...
17
    {
18 6
        $publishTag = 'laravel-vtu';
19 6
        if (app() instanceof \Illuminate\Foundation\Application) {
20 6
            $this->publishes([
21 6
                __DIR__.'/config/laravel-vtu.php' => config_path('laravel-vtu.php'),
22 6
            ], $publishTag);
23
        }
24 6
    }
25
}
26