for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Giuga\LaravelMailLog\Policies;
use Giuga\LaravelMailLog\Models\MailLog;
use Illuminate\Auth\Access\HandlesAuthorization;
class MailLogPolicy
{
use HandlesAuthorization;
/**
* Create a new policy instance.
*
* @return void
*/
public function __construct()
//
}
public function create($user = null, MailLog $formSubmission = null)
$formSubmission
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function create($user = null, /** @scrutinizer ignore-unused */ MailLog $formSubmission = null)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$user
public function create(/** @scrutinizer ignore-unused */ $user = null, MailLog $formSubmission = null)
return false;
public function delete()
return true;
public function view()
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.