for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helick\Mail;
/**
* Get the mail host.
*
* @return string
*/
function host(): string
{
return defined('MAIL_HOST') ? MAIL_HOST : '';
Helick\Mail\MAIL_HOST
}
* Get the mail port.
* @return int
function port(): int
return defined('MAIL_PORT') ? MAIL_PORT : 587;
Helick\Mail\MAIL_PORT
* Get the mail user.
function user(): string
return defined('MAIL_USER') ? MAIL_USER : '';
Helick\Mail\MAIL_USER
* Get the mail password.
function password(): string
return defined('MAIL_PASSWORD') ? MAIL_PASSWORD : '';
Helick\Mail\MAIL_PASSWORD
* Get the mail "From Name" header.
function from_name(): string
return defined('MAIL_FROM_NAME')
? MAIL_FROM_NAME
Helick\Mail\MAIL_FROM_NAME
: get_bloginfo('blogname', 'raw');
get_bloginfo
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
: /** @scrutinizer ignore-call */ get_bloginfo('blogname', 'raw');
* Get the mail "From Address" header.
function from_address(): string
return defined('MAIL_FROM_ADDRESS')
? MAIL_FROM_ADDRESS
Helick\Mail\MAIL_FROM_ADDRESS
: get_bloginfo('admin_email', 'raw');
: /** @scrutinizer ignore-call */ get_bloginfo('admin_email', 'raw');