for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ApiChef\Obfuscate;
use Illuminate\Support\ServiceProvider;
use Jenssegers\Optimus\Optimus;
class ObfuscateServiceProvider extends ServiceProvider
{
public function boot()
$this->publishes([
__DIR__.'/../config/obfuscate.php' => config_path('obfuscate.php'),
], 'config');
}
public function register()
$this->mergeConfigFrom(
__DIR__.'/../config/obfuscate.php',
'obfuscate'
);
$this->app->singleton(Optimus::class, function ($app) {
$app
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
$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.
return new Optimus(
config('obfuscate.prime'),
config('obfuscate.inverse'),
config('obfuscate.xor')
});
$this->app->bind('obfuscate', function ($app) {
return $app->make(Obfuscate::class);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.