for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MailMarketing\Models;
use Illuminate\Foundation\Bus\PendingDispatch;
use MailMarketing\Jobs\UpdateMemberInMailMarketingListJob;
trait InMailMarketing
{
public function mailMarketingMemberData(): array
return $this->only([
only()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ only([
'email',
'first_name',
'last_name',
'phone',
]);
}
public function updateMemberInMailMarketingList($listId, bool $isAdd = true, array $tags = []): PendingDispatch
return UpdateMemberInMailMarketingListJob::dispatch(
$listId,
$this->mailMarketingMemberData(),
$isAdd,
$tags
);