Issues (4)

src/ObfuscateServiceProvider.php (1 issue)

1
<?php
2
3
namespace ApiChef\Obfuscate;
4
5
use Illuminate\Support\ServiceProvider;
6
use Jenssegers\Optimus\Optimus;
7
8
class ObfuscateServiceProvider extends ServiceProvider
9
{
10 33
    public function boot()
11
    {
12 33
        $this->publishes([
13 33
            __DIR__.'/../config/obfuscate.php' => config_path('obfuscate.php'),
14 33
        ], 'config');
15 33
    }
16
17 33
    public function register()
18
    {
19 33
        $this->mergeConfigFrom(
20 33
            __DIR__.'/../config/obfuscate.php',
21 33
            'obfuscate'
22
        );
23
24 33
        $this->app->singleton(Optimus::class, function ($app) {
0 ignored issues
show
The parameter $app 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

24
        $this->app->singleton(Optimus::class, function (/** @scrutinizer ignore-unused */ $app) {

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...
25 33
            return new Optimus(
26 33
                config('obfuscate.prime'),
27 33
                config('obfuscate.inverse'),
28 33
                config('obfuscate.xor')
29
            );
30 33
        });
31
32 33
        $this->app->bind('obfuscate', function ($app) {
33 12
            return $app->make(Obfuscate::class);
34 33
        });
35 33
    }
36
}
37