SanitizerServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * File copied from Waavi/Sanitizer https://github.com/waavi/sanitizer
4
 * Sanitization functionality to be customized within this project before a 1.0 release.
5
 */
6
7
namespace PerfectOblivion\Valid\Sanitizer\Laravel;
8
9
use Illuminate\Support\ServiceProvider;
10
11
class SanitizerServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Register the service provider.
15
     */
16
    public function register()
17
    {
18
        $this->app->singleton('sanitizer', 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...
19
            return new Factory;
20
        });
21
    }
22
}
23