Make all constructor signatures multiline

[MAILPOET-3732]
This commit is contained in:
Pavel Dohnal
2021-09-16 13:15:19 +02:00
committed by Jan Lysý
parent 150862d986
commit cdda3480ca
200 changed files with 751 additions and 200 deletions

View File

@@ -19,7 +19,9 @@ class MailChimp {
/** @var MailChimpDataMapper */
private $mapper;
public function __construct($apiKey) {
public function __construct(
$apiKey
) {
$this->apiKey = $this->getAPIKey($apiKey);
$this->maxPostSize = (int)Helpers::getMaxPostSize('bytes');
$this->dataCenter = $this->getDataCenter($this->apiKey);

View File

@@ -18,7 +18,9 @@ class ImportExportFactory {
/** @var SegmentsSimpleListRepository */
private $segmentsListRepository;
public function __construct($action = null) {
public function __construct(
$action = null
) {
$this->action = $action;
$this->segmentsListRepository = ContainerWrapper::getInstance()->get(SegmentsSimpleListRepository::class);
}

View File

@@ -49,7 +49,10 @@ class ImportExportRepository {
/** @var FilterHandler */
private $filterHandler;
public function __construct(EntityManager $entityManager, FilterHandler $filterHandler) {
public function __construct(
EntityManager $entityManager,
FilterHandler $filterHandler
) {
$this->entityManager = $entityManager;
$this->filterHandler = $filterHandler;
}

View File

@@ -14,7 +14,9 @@ abstract class NewsletterStatsBaseExporter {
protected $subscriberRepository;
public function __construct(SubscribersRepository $subscribersRepository) {
public function __construct(
SubscribersRepository $subscribersRepository
) {
$this->subscriberRepository = $subscribersRepository;
}

View File

@@ -15,7 +15,9 @@ class NewslettersExporter {
/** @var NewsletterUrl */
private $newsletterUrl;
public function __construct(NewsletterUrl $newsletterUrl) {
public function __construct(
NewsletterUrl $newsletterUrl
) {
$this->newsletterUrl = $newsletterUrl;
}