for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TaskManager\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
*
* Bootstrap any application services.
* @return void
*/
public function boot()
\Validator::extend('match', function ($attribute, $value, $parameters, $validator) {
$parameters
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
\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.
$validator
\Validator::extend('match', function ($attribute, $value, $parameters, /** @scrutinizer ignore-unused */ $validator) {
if($value == session()->get('code')){
return true;
}
return false;
});
\Schema::defaultStringLength(300);
* Register any application services.
public function register()
//
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.