Issues (41)

app/Providers/AppServiceProvider.php (2 issues)

Severity
1
<?php
2
3
namespace TaskManager\Providers;
4
5
6
use Illuminate\Support\ServiceProvider;
7
8
class AppServiceProvider extends ServiceProvider
9
{
10
11
    /**
12
     *
13
     * Bootstrap any application services.
14
     *
15
     * @return void
16
     */
17
    public function boot()
18
    {
19
20
        \Validator::extend('match', function ($attribute, $value, $parameters, $validator) {
0 ignored issues
show
The parameter $parameters is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
        \Validator::extend('match', function ($attribute, $value, /** @scrutinizer ignore-unused */ $parameters, $validator) {

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

Loading history...
The parameter $validator is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
        \Validator::extend('match', function ($attribute, $value, $parameters, /** @scrutinizer ignore-unused */ $validator) {

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

Loading history...
21
           if($value == session()->get('code')){
22
               return true;
23
           }
24
           return false;
25
        });
26
27
        \Schema::defaultStringLength(300);
28
29
    }
30
    /**
31
     * Register any application services.
32
     *
33
     * @return void
34
     */
35
    public function register()
36
    {
37
        //
38
    }
39
}
40