for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Giuga\LaravelMailLog\Traits;
use Illuminate\Database\Eloquent\Model;
trait Recipientable
{
public static function getRecipientKey()
return 'event.recipient';
}
public function recipient(Model $recipient = null)
$this->with(static::getRecipientKey(), $recipient);
with()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
with(static::getRecipientKey(), $recipient);
return $this;