for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gewaer\Traits;
use Gewaer\Models\Users;
use Phalcon\Di;
/**
* Trait EmailTrait
*
* @package Gewaer\Traits
* @property Users $user
* @property AppsPlans $appPlan
* @property CompanyBranches $branches
* @property Companies $company
* @property UserCompanyApps $app
* @property \Phalcon\Di $di
*/
trait EmailTrait
{
* Send webhook related emails to user
* @param Users $user
* @param array $payload
* @return void
public static function sendWebhookEmail(Users $user, array $payload): void
$user
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function sendWebhookEmail(/** @scrutinizer ignore-unused */ Users $user, array $payload): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$payload
public static function sendWebhookEmail(Users $user, /** @scrutinizer ignore-unused */ array $payload): void
Di::getDefault()->getMail()
->to($email)
$email
->subject($subject)
$subject
->content($content)
$content
->sendNow();
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.