Make all constructor signatures multiline
[MAILPOET-3732]
This commit is contained in:
@@ -8,7 +8,9 @@ class BlacklistCheck {
|
||||
/** @var Blacklist */
|
||||
private $blacklist;
|
||||
|
||||
public function __construct(Blacklist $blacklist = null) {
|
||||
public function __construct(
|
||||
Blacklist $blacklist = null
|
||||
) {
|
||||
if (is_null($blacklist)) {
|
||||
$blacklist = new Blacklist();
|
||||
}
|
||||
|
@@ -26,7 +26,13 @@ class MailPoet {
|
||||
/** @var BlacklistCheck */
|
||||
private $blacklist;
|
||||
|
||||
public function __construct($apiKey, $sender, $replyTo, MailPoetMapper $errorMapper, AuthorizedEmailsController $authorizedEmailsController) {
|
||||
public function __construct(
|
||||
$apiKey,
|
||||
$sender,
|
||||
$replyTo,
|
||||
MailPoetMapper $errorMapper,
|
||||
AuthorizedEmailsController $authorizedEmailsController
|
||||
) {
|
||||
$this->api = new API($apiKey);
|
||||
$this->sender = $sender;
|
||||
$this->replyTo = $replyTo;
|
||||
|
@@ -21,7 +21,12 @@ class PHPMail {
|
||||
/** @var BlacklistCheck */
|
||||
private $blacklist;
|
||||
|
||||
public function __construct($sender, $replyTo, $returnPath, PHPMailMapper $errorMapper) {
|
||||
public function __construct(
|
||||
$sender,
|
||||
$replyTo,
|
||||
$returnPath,
|
||||
PHPMailMapper $errorMapper
|
||||
) {
|
||||
$this->sender = $sender;
|
||||
$this->replyTo = $replyTo;
|
||||
$this->returnPath = ($returnPath) ?
|
||||
|
@@ -21,7 +21,12 @@ class SendGrid {
|
||||
|
||||
private $wp;
|
||||
|
||||
public function __construct($apiKey, $sender, $replyTo, SendGridMapper $errorMapper) {
|
||||
public function __construct(
|
||||
$apiKey,
|
||||
$sender,
|
||||
$replyTo,
|
||||
SendGridMapper $errorMapper
|
||||
) {
|
||||
$this->apiKey = $apiKey;
|
||||
$this->sender = $sender;
|
||||
$this->replyTo = $replyTo;
|
||||
|
Reference in New Issue
Block a user