for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace A17\Twill\Http\Requests\Admin;
use Illuminate\Validation\Rule;
class OauthRequest extends Request
{
protected $redirectRoute = 'admin.login.form';
/**
* Include route parameters for validation
*
* @return array
*/
public function all($keys = null)
$keys
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function all(/** @scrutinizer ignore-unused */ $keys = null)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$data = parent::all();
$data['provider'] = $this->input('provider', $this->route('provider'));
return $data;
}
* Gets the validation rules that apply to the request.
public function rules()
return [
'provider' => [
'required',
Rule::in(config('twill.oauth.providers', []))
],
];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.