Fix indentation of multiline function declarations
[MAILPOET-3732]
This commit is contained in:
@ -11,7 +11,7 @@ class ErrorHandler {
|
||||
private $defaultErrors;
|
||||
|
||||
public function __construct(
|
||||
WPFunctions $wp
|
||||
WPFunctions $wp
|
||||
) {
|
||||
$this->defaultErrors = [
|
||||
Error::UNKNOWN => $wp->__('An unknown error occurred.', 'mailpoet'),
|
||||
|
@ -8,9 +8,9 @@ class ErrorResponse extends Response {
|
||||
public $errors;
|
||||
|
||||
public function __construct(
|
||||
$errors = [],
|
||||
$meta = [],
|
||||
$status = self::STATUS_NOT_FOUND
|
||||
$errors = [],
|
||||
$meta = [],
|
||||
$status = self::STATUS_NOT_FOUND
|
||||
) {
|
||||
parent::__construct($status, $meta);
|
||||
$this->errors = $this->formatErrors($errors);
|
||||
|
@ -17,8 +17,8 @@ abstract class Response {
|
||||
public $meta;
|
||||
|
||||
public function __construct(
|
||||
$status,
|
||||
$meta = []
|
||||
$status,
|
||||
$meta = []
|
||||
) {
|
||||
$this->status = $status;
|
||||
$this->meta = $meta;
|
||||
|
@ -12,7 +12,7 @@ class FormsResponseBuilder {
|
||||
private $statisticsFormsRepository;
|
||||
|
||||
public function __construct(
|
||||
StatisticsFormsRepository $statisticsFormsRepository
|
||||
StatisticsFormsRepository $statisticsFormsRepository
|
||||
) {
|
||||
$this->statisticsFormsRepository = $statisticsFormsRepository;
|
||||
}
|
||||
|
@ -6,9 +6,9 @@ class SuccessResponse extends Response {
|
||||
public $data;
|
||||
|
||||
public function __construct(
|
||||
$data = [],
|
||||
$meta = [],
|
||||
$status = self::STATUS_OK
|
||||
$data = [],
|
||||
$meta = [],
|
||||
$status = self::STATUS_OK
|
||||
) {
|
||||
parent::__construct($status, $meta);
|
||||
$this->data = $data;
|
||||
|
@ -16,7 +16,7 @@ class Analytics extends APIEndpoint {
|
||||
];
|
||||
|
||||
public function __construct(
|
||||
Reporter $reporter
|
||||
Reporter $reporter
|
||||
) {
|
||||
$this->reporter = $reporter;
|
||||
}
|
||||
|
@ -16,8 +16,8 @@ class AutomatedLatestContent extends APIEndpoint {
|
||||
];
|
||||
|
||||
public function __construct(
|
||||
\MailPoet\Newsletter\AutomatedLatestContent $alc,
|
||||
WPFunctions $wp
|
||||
\MailPoet\Newsletter\AutomatedLatestContent $alc,
|
||||
WPFunctions $wp
|
||||
) {
|
||||
$this->ALC = $alc;
|
||||
$this->wp = $wp;
|
||||
|
@ -21,8 +21,8 @@ class FeatureFlags extends APIEndpoint {
|
||||
private $featureFlagsController;
|
||||
|
||||
public function __construct(
|
||||
FeaturesController $featuresController,
|
||||
FeatureFlagsController $featureFlags
|
||||
FeaturesController $featuresController,
|
||||
FeatureFlagsController $featureFlags
|
||||
) {
|
||||
$this->featuresController = $featuresController;
|
||||
$this->featureFlagsController = $featureFlags;
|
||||
|
@ -14,7 +14,7 @@ class MP2Migrator extends APIEndpoint {
|
||||
private $MP2Migrator;
|
||||
|
||||
public function __construct(
|
||||
\MailPoet\Config\MP2Migrator $MP2Migrator
|
||||
\MailPoet\Config\MP2Migrator $MP2Migrator
|
||||
) {
|
||||
$this->MP2Migrator = $MP2Migrator;
|
||||
}
|
||||
|
@ -31,10 +31,10 @@ class Mailer extends APIEndpoint {
|
||||
];
|
||||
|
||||
public function __construct(
|
||||
AuthorizedEmailsController $authorizedEmailsController,
|
||||
SettingsController $settings,
|
||||
Bridge $bridge,
|
||||
MetaInfo $mailerMetaInfo
|
||||
AuthorizedEmailsController $authorizedEmailsController,
|
||||
SettingsController $settings,
|
||||
Bridge $bridge,
|
||||
MetaInfo $mailerMetaInfo
|
||||
) {
|
||||
$this->authorizedEmailsController = $authorizedEmailsController;
|
||||
$this->settings = $settings;
|
||||
|
@ -16,7 +16,7 @@ class NewsletterLinks extends APIEndpoint {
|
||||
private $newsletterLinkRepository;
|
||||
|
||||
public function __construct(
|
||||
NewsletterLinkRepository $newsletterLinkRepository
|
||||
NewsletterLinkRepository $newsletterLinkRepository
|
||||
) {
|
||||
$this->newsletterLinkRepository = $newsletterLinkRepository;
|
||||
}
|
||||
|
@ -19,8 +19,8 @@ class Setup extends APIEndpoint {
|
||||
private $activator;
|
||||
|
||||
public function __construct(
|
||||
WPFunctions $wp,
|
||||
Activator $activator
|
||||
WPFunctions $wp,
|
||||
Activator $activator
|
||||
) {
|
||||
$this->wp = $wp;
|
||||
$this->activator = $activator;
|
||||
|
@ -18,7 +18,7 @@ class UserFlags extends APIEndpoint {
|
||||
];
|
||||
|
||||
public function __construct(
|
||||
UserFlagsController $userFlags
|
||||
UserFlagsController $userFlags
|
||||
) {
|
||||
$this->userFlags = $userFlags;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ class WoocommerceSettings extends APIEndpoint {
|
||||
private $wp;
|
||||
|
||||
public function __construct(
|
||||
WPFunctions $wp
|
||||
WPFunctions $wp
|
||||
) {
|
||||
$this->wp = $wp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user