Convert property names to camel case
[MAILPOET-1796]
This commit is contained in:
@ -16,22 +16,22 @@ use Tracy\Debugger;
|
||||
use Tracy\ILogger;
|
||||
|
||||
class API {
|
||||
private $_request_api_version;
|
||||
private $_request_endpoint;
|
||||
private $_request_method;
|
||||
private $_request_token;
|
||||
private $_request_type;
|
||||
private $_request_endpoint_class;
|
||||
private $_request_data = [];
|
||||
private $_endpoint_namespaces = [];
|
||||
private $_available_api_versions = [
|
||||
private $requestApiVersion;
|
||||
private $requestEndpoint;
|
||||
private $requestMethod;
|
||||
private $requestToken;
|
||||
private $requestType;
|
||||
private $requestEndpointClass;
|
||||
private $requestData = [];
|
||||
private $endpointNamespaces = [];
|
||||
private $availableApiVersions = [
|
||||
'v1',
|
||||
];
|
||||
/** @var ContainerInterface */
|
||||
private $container;
|
||||
|
||||
/** @var AccessControl */
|
||||
private $access_control;
|
||||
private $accessControl;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -14,7 +14,7 @@ abstract class Endpoint {
|
||||
'methods' => [],
|
||||
];
|
||||
|
||||
protected static $get_methods = [];
|
||||
protected static $getMethods = [];
|
||||
|
||||
public function successResponse(
|
||||
$data = [], $meta = [], $status = Response::STATUS_OK
|
||||
|
@ -18,10 +18,10 @@ class CustomFields extends APIEndpoint {
|
||||
];
|
||||
|
||||
/** @var CustomFieldsRepository */
|
||||
private $custom_fields_repository;
|
||||
private $customFieldsRepository;
|
||||
|
||||
/** @var CustomFieldsResponseBuilder */
|
||||
private $custom_fields_response_builder;
|
||||
private $customFieldsResponseBuilder;
|
||||
|
||||
public function __construct(
|
||||
CustomFieldsRepository $customFieldsRepository,
|
||||
|
@ -31,16 +31,16 @@ class DynamicSegments extends APIEndpoint {
|
||||
private $saver;
|
||||
|
||||
/** @var SingleSegmentLoader */
|
||||
private $dynamic_segments_loader;
|
||||
private $dynamicSegmentsLoader;
|
||||
|
||||
/** @var SubscribersCount */
|
||||
private $subscribers_counts_loader;
|
||||
private $subscribersCountsLoader;
|
||||
|
||||
/** @var BulkActionController */
|
||||
private $bulk_action;
|
||||
private $bulkAction;
|
||||
|
||||
/** @var Handler */
|
||||
private $listing_handler;
|
||||
private $listingHandler;
|
||||
|
||||
public function __construct(BulkActionController $bulkAction, Handler $handler, $mapper = null, $saver = null, $dynamicSegmentsLoader = null, $subscribersCountsLoader = null) {
|
||||
$this->bulkAction = $bulkAction;
|
||||
|
@ -15,10 +15,10 @@ class FeatureFlags extends APIEndpoint {
|
||||
];
|
||||
|
||||
/** @var FeaturesController */
|
||||
private $features_controller;
|
||||
private $featuresController;
|
||||
|
||||
/** @var FeatureFlagsController */
|
||||
private $feature_flags_controller;
|
||||
private $featureFlagsController;
|
||||
|
||||
public function __construct(FeaturesController $featuresController, FeatureFlagsController $featureFlags) {
|
||||
$this->featuresController = $featuresController;
|
||||
|
@ -16,16 +16,16 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
class Forms extends APIEndpoint {
|
||||
|
||||
/** @var Listing\BulkActionController */
|
||||
private $bulk_action;
|
||||
private $bulkAction;
|
||||
|
||||
/** @var Listing\Handler */
|
||||
private $listing_handler;
|
||||
private $listingHandler;
|
||||
|
||||
/** @var FeaturesController */
|
||||
private $features_controller;
|
||||
private $featuresController;
|
||||
|
||||
/** @var Util\Styles */
|
||||
private $form_styles_utils;
|
||||
private $formStylesUtils;
|
||||
|
||||
public $permissions = [
|
||||
'global' => AccessControl::PERMISSION_MANAGE_FORMS,
|
||||
|
@ -15,7 +15,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
class Mailer extends APIEndpoint {
|
||||
|
||||
/** @var AuthorizedEmailsController */
|
||||
private $authorized_emails_controller;
|
||||
private $authorizedEmailsController;
|
||||
|
||||
/** @var Bridge */
|
||||
private $bridge;
|
||||
|
@ -13,7 +13,7 @@ class NewsletterTemplates extends APIEndpoint {
|
||||
'global' => AccessControl::PERMISSION_MANAGE_EMAILS,
|
||||
];
|
||||
|
||||
protected static $get_methods = [
|
||||
protected static $getMethods = [
|
||||
'getAll',
|
||||
];
|
||||
|
||||
|
@ -35,38 +35,38 @@ use MailPoetVendor\Carbon\Carbon;
|
||||
class Newsletters extends APIEndpoint {
|
||||
|
||||
/** @var Listing\BulkActionController */
|
||||
private $bulk_action;
|
||||
private $bulkAction;
|
||||
|
||||
/** @var Listing\Handler */
|
||||
private $listing_handler;
|
||||
private $listingHandler;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
||||
/** @var WCHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
/** @var AuthorizedEmailsController */
|
||||
private $authorized_emails_controller;
|
||||
private $authorizedEmailsController;
|
||||
|
||||
public $permissions = [
|
||||
'global' => AccessControl::PERMISSION_MANAGE_EMAILS,
|
||||
];
|
||||
|
||||
/** @var NewslettersRepository */
|
||||
private $newsletters_repository;
|
||||
private $newslettersRepository;
|
||||
|
||||
/** @var NewslettersResponseBuilder */
|
||||
private $newsletters_response_builder;
|
||||
private $newslettersResponseBuilder;
|
||||
|
||||
/** @var PostNotificationScheduler */
|
||||
private $post_notification_scheduler;
|
||||
private $postNotificationScheduler;
|
||||
|
||||
/** @var MetaInfo */
|
||||
private $mailerMetaInfo;
|
||||
@ -78,7 +78,7 @@ class Newsletters extends APIEndpoint {
|
||||
private $mailer;
|
||||
|
||||
/** @var SubscribersFeature */
|
||||
private $subscribers_feature;
|
||||
private $subscribersFeature;
|
||||
|
||||
public function __construct(
|
||||
Listing\BulkActionController $bulkAction,
|
||||
|
@ -17,13 +17,13 @@ class Segments extends APIEndpoint {
|
||||
];
|
||||
|
||||
/** @var Listing\BulkActionController */
|
||||
private $bulk_action;
|
||||
private $bulkAction;
|
||||
|
||||
/** @var Listing\Handler */
|
||||
private $listing_handler;
|
||||
private $listingHandler;
|
||||
|
||||
/** @var WooCommerce */
|
||||
private $woo_commerce_sync;
|
||||
private $wooCommerceSync;
|
||||
|
||||
public function __construct(
|
||||
Listing\BulkActionController $bulkAction,
|
||||
|
@ -21,7 +21,7 @@ class SendingQueue extends APIEndpoint {
|
||||
];
|
||||
|
||||
/** @var SubscribersFeature */
|
||||
private $subscribers_feature;
|
||||
private $subscribersFeature;
|
||||
|
||||
public function __construct(SubscribersFeature $subscribersFeature) {
|
||||
$this->subscribersFeature = $subscribersFeature;
|
||||
|
@ -20,13 +20,13 @@ class SendingTaskSubscribers extends APIEndpoint {
|
||||
];
|
||||
|
||||
/** @var Listing\Handler */
|
||||
private $listing_handler;
|
||||
private $listingHandler;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -26,16 +26,16 @@ class Services extends APIEndpoint {
|
||||
private $analytics;
|
||||
|
||||
/** @var SPFCheck */
|
||||
private $spf_check;
|
||||
private $spfCheck;
|
||||
|
||||
/** @var DateTime */
|
||||
public $date_time;
|
||||
public $dateTime;
|
||||
|
||||
/** @var SendingServiceKeyCheck */
|
||||
private $mss_worker;
|
||||
private $mssWorker;
|
||||
|
||||
/** @var PremiumKeyCheck */
|
||||
private $premium_worker;
|
||||
private $premiumWorker;
|
||||
|
||||
public $permissions = [
|
||||
'global' => AccessControl::PERMISSION_MANAGE_SETTINGS,
|
||||
|
@ -25,10 +25,10 @@ class Settings extends APIEndpoint {
|
||||
private $bridge;
|
||||
|
||||
/** @var AuthorizedEmailsController */
|
||||
private $authorized_emails_controller;
|
||||
private $authorizedEmailsController;
|
||||
|
||||
/** @var TransactionalEmails */
|
||||
private $wc_transactional_emails;
|
||||
private $wcTransactionalEmails;
|
||||
|
||||
public $permissions = [
|
||||
'global' => AccessControl::PERMISSION_MANAGE_SETTINGS,
|
||||
|
@ -36,22 +36,22 @@ class Subscribers extends APIEndpoint {
|
||||
];
|
||||
|
||||
/** @var Listing\BulkActionController */
|
||||
private $bulk_action_controller;
|
||||
private $bulkActionController;
|
||||
|
||||
/** @var SubscribersListings */
|
||||
private $subscribers_listings;
|
||||
private $subscribersListings;
|
||||
|
||||
/** @var SubscriberActions */
|
||||
private $subscriber_actions;
|
||||
private $subscriberActions;
|
||||
|
||||
/** @var RequiredCustomFieldValidator */
|
||||
private $required_custom_field_validator;
|
||||
private $requiredCustomFieldValidator;
|
||||
|
||||
/** @var Listing\Handler */
|
||||
private $listing_handler;
|
||||
private $listingHandler;
|
||||
|
||||
/** @var Captcha */
|
||||
private $subscription_captcha;
|
||||
private $subscriptionCaptcha;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
@ -60,13 +60,13 @@ class Subscribers extends APIEndpoint {
|
||||
private $settings;
|
||||
|
||||
/** @var CaptchaSession */
|
||||
private $captcha_session;
|
||||
private $captchaSession;
|
||||
|
||||
/** @var ConfirmationEmailMailer; */
|
||||
private $confirmation_email_mailer;
|
||||
private $confirmationEmailMailer;
|
||||
|
||||
/** @var SubscriptionUrlFactory */
|
||||
private $subscription_url_factory;
|
||||
private $subscriptionUrlFactory;
|
||||
|
||||
public function __construct(
|
||||
Listing\BulkActionController $bulkActionController,
|
||||
|
@ -11,7 +11,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
class UserFlags extends APIEndpoint {
|
||||
|
||||
/** @var UserFlagsController */
|
||||
private $user_flags;
|
||||
private $userFlags;
|
||||
|
||||
public $permissions = [
|
||||
'global' => AccessControl::ALL_ROLES_ACCESS,
|
||||
|
@ -11,7 +11,7 @@ class WoocommerceSettings extends APIEndpoint {
|
||||
'global' => AccessControl::PERMISSION_MANAGE_EMAILS,
|
||||
];
|
||||
|
||||
private $allowed_settings = [
|
||||
private $allowedSettings = [
|
||||
'woocommerce_email_base_color',
|
||||
];
|
||||
|
||||
|
@ -19,19 +19,19 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
class API {
|
||||
|
||||
/** @var NewSubscriberNotificationMailer */
|
||||
private $new_subscriber_notification_mailer;
|
||||
private $newSubscriberNotificationMailer;
|
||||
|
||||
/** @var ConfirmationEmailMailer */
|
||||
private $confirmation_email_mailer;
|
||||
private $confirmationEmailMailer;
|
||||
|
||||
/** @var RequiredCustomFieldValidator */
|
||||
private $required_custom_field_validator;
|
||||
private $requiredCustomFieldValidator;
|
||||
|
||||
/** @var ApiDataSanitizer */
|
||||
private $custom_fields_data_sanitizer;
|
||||
private $customFieldsDataSanitizer;
|
||||
|
||||
/** @var WelcomeScheduler */
|
||||
private $welcome_scheduler;
|
||||
private $welcomeScheduler;
|
||||
|
||||
public function __construct(
|
||||
NewSubscriberNotificationMailer $newSubscriberNotificationMailer,
|
||||
|
@ -15,7 +15,7 @@ class PageRenderer {
|
||||
private $renderer;
|
||||
|
||||
/** @var FeaturesController */
|
||||
private $features_controller;
|
||||
private $featuresController;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
@ -10,16 +10,16 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class DynamicSegments {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var PageLimit */
|
||||
private $listing_page_limit;
|
||||
private $listingPageLimit;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
public function __construct(
|
||||
PageRenderer $pageRenderer,
|
||||
|
@ -6,7 +6,7 @@ use MailPoet\AdminPages\PageRenderer;
|
||||
|
||||
class ExperimentalFeatures {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
public function __construct(PageRenderer $pageRenderer) {
|
||||
$this->pageRenderer = $pageRenderer;
|
||||
|
@ -16,16 +16,16 @@ use MailPoet\Settings\Pages;
|
||||
|
||||
class FormEditor {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var FeaturesController */
|
||||
private $features_controller;
|
||||
private $featuresController;
|
||||
|
||||
/** @var CustomFieldsRepository */
|
||||
private $custom_fields_repository;
|
||||
private $customFieldsRepository;
|
||||
|
||||
/** @var CustomFieldsResponseBuilder */
|
||||
private $custom_fields_response_builder;
|
||||
private $customFieldsResponseBuilder;
|
||||
|
||||
public function __construct(
|
||||
PageRenderer $pageRenderer,
|
||||
|
@ -9,10 +9,10 @@ use MailPoet\Util\Installation;
|
||||
|
||||
class Forms {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var PageLimit */
|
||||
private $listing_page_limit;
|
||||
private $listingPageLimit;
|
||||
|
||||
/** @var Installation */
|
||||
private $installation;
|
||||
|
@ -13,16 +13,16 @@ use MailPoet\Tasks\State;
|
||||
|
||||
class Help {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var State */
|
||||
private $tasks_state;
|
||||
private $tasksState;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
/** @var Beacon */
|
||||
private $helpscout_beacon;
|
||||
private $helpscoutBeacon;
|
||||
|
||||
public function __construct(PageRenderer $pageRenderer, State $tasksState, CronHelper $cronHelper, Beacon $helpscoutBeacon) {
|
||||
$this->pageRenderer = $pageRenderer;
|
||||
|
@ -7,10 +7,10 @@ use MailPoet\Config\MP2Migrator;
|
||||
|
||||
class MP2Migration {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var MP2Migrator */
|
||||
private $mp2_migrator;
|
||||
private $mp2Migrator;
|
||||
|
||||
public function __construct(PageRenderer $pageRenderer, MP2Migrator $mp2Migrator) {
|
||||
$this->pageRenderer = $pageRenderer;
|
||||
|
@ -15,22 +15,22 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class NewsletterEditor {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
||||
/** @var UserFlagsController */
|
||||
private $user_flags;
|
||||
private $userFlags;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
||||
/** @var TransactionalEmails */
|
||||
private $wc_transactional_emails;
|
||||
private $wcTransactionalEmails;
|
||||
|
||||
public function __construct(
|
||||
PageRenderer $pageRenderer,
|
||||
|
@ -24,10 +24,10 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Newsletters {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var PageLimit */
|
||||
private $listing_page_limit;
|
||||
private $listingPageLimit;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
@ -36,19 +36,19 @@ class Newsletters {
|
||||
private $settings;
|
||||
|
||||
/** @var UserFlagsController */
|
||||
private $user_flags;
|
||||
private $userFlags;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
/** @var Installation */
|
||||
private $installation;
|
||||
|
||||
/** @var FeaturesController */
|
||||
private $features_controller;
|
||||
private $featuresController;
|
||||
|
||||
/** @var SubscribersFeature */
|
||||
private $subscribers_feature;
|
||||
private $subscribersFeature;
|
||||
|
||||
public function __construct(
|
||||
PageRenderer $pageRenderer,
|
||||
|
@ -8,7 +8,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Premium {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -8,7 +8,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class RevenueTrackingPermission {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -7,10 +7,10 @@ use MailPoet\Listing\PageLimit;
|
||||
|
||||
class Segments {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var PageLimit */
|
||||
private $listing_page_limit;
|
||||
private $listingPageLimit;
|
||||
|
||||
public function __construct(PageRenderer $pageRenderer, PageLimit $listingPageLimit) {
|
||||
$this->pageRenderer = $pageRenderer;
|
||||
|
@ -21,19 +21,19 @@ use MailPoet\WP\Notice as WPNotice;
|
||||
|
||||
class Settings {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
||||
/** @var ServicesChecker */
|
||||
private $services_checker;
|
||||
private $servicesChecker;
|
||||
|
||||
/** @var Captcha */
|
||||
private $captcha;
|
||||
|
@ -14,10 +14,10 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Subscribers {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var PageLimit */
|
||||
private $listing_page_limit;
|
||||
private $listingPageLimit;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -8,7 +8,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class SubscribersAPIKeyInvalid {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -7,7 +7,7 @@ use MailPoet\Subscribers\ImportExport\ImportExportFactory;
|
||||
|
||||
class SubscribersExport {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
public function __construct(PageRenderer $pageRenderer) {
|
||||
$this->pageRenderer = $pageRenderer;
|
||||
|
@ -10,7 +10,7 @@ use MailPoet\Util\Installation;
|
||||
|
||||
class SubscribersImport {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var Installation */
|
||||
private $installation;
|
||||
|
@ -12,7 +12,7 @@ use MailPoetVendor\Carbon\Carbon;
|
||||
|
||||
class Update {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -14,19 +14,19 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class WelcomeWizard {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
||||
/** @var FeaturesController */
|
||||
private $features_controller;
|
||||
private $featuresController;
|
||||
|
||||
public function __construct(
|
||||
PageRenderer $pageRenderer,
|
||||
|
@ -8,7 +8,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class WooCommerceListImport {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
private $pageRenderer;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -19,7 +19,7 @@ class Reporter {
|
||||
private $settings;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
public function __construct(SettingsController $settings, WooCommerceHelper $woocommerceHelper) {
|
||||
$this->settings = $settings;
|
||||
|
@ -12,7 +12,7 @@ class AutomaticEmails {
|
||||
|
||||
private $wp;
|
||||
|
||||
public $available_groups = [
|
||||
public $availableGroups = [
|
||||
'WooCommerce',
|
||||
];
|
||||
|
||||
|
@ -18,13 +18,13 @@ class AbandonedCart {
|
||||
private $wp;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woo_commerce_helper;
|
||||
private $wooCommerceHelper;
|
||||
|
||||
/** @var Cookies */
|
||||
private $cookies;
|
||||
|
||||
/** @var AbandonedCartPageVisitTracker */
|
||||
private $page_visit_tracker;
|
||||
private $pageVisitTracker;
|
||||
|
||||
/** @var AutomaticEmailScheduler */
|
||||
private $scheduler;
|
||||
|
@ -15,7 +15,7 @@ class AbandonedCartPageVisitTracker {
|
||||
private $wp;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woo_commerce_helper;
|
||||
private $wooCommerceHelper;
|
||||
|
||||
/** @var Cookies */
|
||||
private $cookies;
|
||||
|
@ -24,7 +24,7 @@ class FirstPurchase {
|
||||
private $scheduler;
|
||||
|
||||
/** @var LoggerFactory */
|
||||
private $logger_factory;
|
||||
private $loggerFactory;
|
||||
|
||||
public function __construct(WCHelper $helper = null) {
|
||||
if ($helper === null) {
|
||||
|
@ -15,13 +15,13 @@ class PurchasedInCategory {
|
||||
const SLUG = 'woocommerce_product_purchased_in_category';
|
||||
|
||||
/** @var WCHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
/** @var AutomaticEmailScheduler */
|
||||
private $scheduler;
|
||||
|
||||
/** @var LoggerFactory */
|
||||
private $logger_factory;
|
||||
private $loggerFactory;
|
||||
|
||||
public function __construct(WCHelper $woocommerceHelper = null) {
|
||||
if ($woocommerceHelper === null) {
|
||||
|
@ -22,7 +22,7 @@ class PurchasedProduct {
|
||||
private $scheduler;
|
||||
|
||||
/** @var LoggerFactory */
|
||||
private $logger_factory;
|
||||
private $loggerFactory;
|
||||
|
||||
public function __construct(WCHelper $helper = null) {
|
||||
if ($helper === null) {
|
||||
|
@ -12,15 +12,15 @@ class WooCommerce {
|
||||
const EVENTS_FILTER = 'mailpoet_woocommerce_events';
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
public $available_events = [
|
||||
public $availableEvents = [
|
||||
'AbandonedCart',
|
||||
'FirstPurchase',
|
||||
'PurchasedInCategory',
|
||||
'PurchasedProduct',
|
||||
];
|
||||
private $_woocommerce_enabled;
|
||||
private $woocommerceEnabled;
|
||||
private $wp;
|
||||
|
||||
public function __construct() {
|
||||
|
@ -12,7 +12,7 @@ class Capabilities {
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
/** @var AccessControl */
|
||||
private $access_control;
|
||||
private $accessControl;
|
||||
|
||||
public function __construct($renderer = null, WPFunctions $wp = null) {
|
||||
if ($renderer !== null) {
|
||||
|
@ -18,10 +18,10 @@ class Changelog {
|
||||
private $wooCommerceHelper;
|
||||
|
||||
/** @var Url */
|
||||
private $url_helper;
|
||||
private $urlHelper;
|
||||
|
||||
/** @var MP2Migrator */
|
||||
private $mp2_migrator;
|
||||
private $mp2Migrator;
|
||||
|
||||
public function __construct(
|
||||
SettingsController $settings,
|
||||
|
@ -6,7 +6,7 @@ use MailPoetVendor\Doctrine\DBAL\Connection;
|
||||
use MailPoetVendor\Psr\Container\ContainerInterface;
|
||||
|
||||
class DatabaseInitializer {
|
||||
private $di_container;
|
||||
private $diContainer;
|
||||
|
||||
public function __construct(ContainerInterface $diContainer) {
|
||||
$this->diContainer = $diContainer;
|
||||
|
@ -8,33 +8,33 @@ class Env {
|
||||
const NEWSLETTER_CONTENT_WIDTH = 1320;
|
||||
|
||||
static $version;
|
||||
static $plugin_name;
|
||||
static $plugin_path;
|
||||
static $base_url;
|
||||
static $pluginName;
|
||||
static $pluginPath;
|
||||
static $baseUrl;
|
||||
static $file;
|
||||
static $path;
|
||||
static $views_path;
|
||||
static $assets_path;
|
||||
static $assets_url;
|
||||
static $util_path;
|
||||
static $temp_path;
|
||||
static $cache_path;
|
||||
static $temp_url;
|
||||
static $languages_path;
|
||||
static $lib_path;
|
||||
static $plugin_prefix;
|
||||
static $db_prefix;
|
||||
static $db_host;
|
||||
static $db_is_ipv6;
|
||||
static $db_socket;
|
||||
static $db_port;
|
||||
static $db_name;
|
||||
static $db_username;
|
||||
static $db_password;
|
||||
static $db_charset;
|
||||
static $db_collation;
|
||||
static $db_charset_collate;
|
||||
static $db_timezone_offset;
|
||||
static $viewsPath;
|
||||
static $assetsPath;
|
||||
static $assetsUrl;
|
||||
static $utilPath;
|
||||
static $tempPath;
|
||||
static $cachePath;
|
||||
static $tempUrl;
|
||||
static $languagesPath;
|
||||
static $libPath;
|
||||
static $pluginPrefix;
|
||||
static $dbPrefix;
|
||||
static $dbHost;
|
||||
static $dbIsIpv6;
|
||||
static $dbSocket;
|
||||
static $dbPort;
|
||||
static $dbName;
|
||||
static $dbUsername;
|
||||
static $dbPassword;
|
||||
static $dbCharset;
|
||||
static $dbCollation;
|
||||
static $dbCharsetCollate;
|
||||
static $dbTimezoneOffset;
|
||||
|
||||
public static function init($file, $version, $dbHost, $dbUser, $dbPassword, $dbName) {
|
||||
self::$version = $version;
|
||||
|
@ -20,16 +20,16 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
class Hooks {
|
||||
|
||||
/** @var Form */
|
||||
private $subscription_form;
|
||||
private $subscriptionForm;
|
||||
|
||||
/** @var Comment */
|
||||
private $subscription_comment;
|
||||
private $subscriptionComment;
|
||||
|
||||
/** @var Manage */
|
||||
private $subscription_manage;
|
||||
private $subscriptionManage;
|
||||
|
||||
/** @var Registration */
|
||||
private $subscription_registration;
|
||||
private $subscriptionRegistration;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
@ -38,25 +38,25 @@ class Hooks {
|
||||
private $wp;
|
||||
|
||||
/** @var WooCommerceSubscription */
|
||||
private $woocommerce_subscription;
|
||||
private $woocommerceSubscription;
|
||||
|
||||
/** @var WooCommerceSegment */
|
||||
private $woocommerce_segment;
|
||||
private $woocommerceSegment;
|
||||
|
||||
/** @var WooCommerceSettings */
|
||||
private $woocommerce_settings;
|
||||
private $woocommerceSettings;
|
||||
|
||||
/** @var WooCommercePurchases */
|
||||
private $woocommerce_purchases;
|
||||
private $woocommercePurchases;
|
||||
|
||||
/** @var PostNotificationScheduler */
|
||||
private $post_notification_scheduler;
|
||||
private $postNotificationScheduler;
|
||||
|
||||
/** @var WordpressMailerReplacer */
|
||||
private $wordpress_mailer_replacer;
|
||||
private $wordpressMailerReplacer;
|
||||
|
||||
/** @var DynamicSegmentHooks */
|
||||
private $dynamic_segment_hooks;
|
||||
private $dynamicSegmentHooks;
|
||||
|
||||
public function __construct(
|
||||
Form $subscriptionForm,
|
||||
|
@ -18,16 +18,16 @@ use MailPoet\WP\Notice as WPNotice;
|
||||
require_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
||||
|
||||
class Initializer {
|
||||
public $automatic_emails;
|
||||
public $automaticEmails;
|
||||
|
||||
/** @var AccessControl */
|
||||
private $access_control;
|
||||
private $accessControl;
|
||||
|
||||
/** @var Renderer */
|
||||
private $renderer;
|
||||
|
||||
/** @var RendererFactory */
|
||||
private $renderer_factory;
|
||||
private $rendererFactory;
|
||||
|
||||
/** @var API */
|
||||
private $api;
|
||||
@ -51,22 +51,22 @@ class Initializer {
|
||||
private $menu;
|
||||
|
||||
/** @var CronTrigger */
|
||||
private $cron_trigger;
|
||||
private $cronTrigger;
|
||||
|
||||
/** @var PermanentNotices */
|
||||
private $permanent_notices;
|
||||
private $permanentNotices;
|
||||
|
||||
/** @var Shortcodes */
|
||||
private $shortcodes;
|
||||
|
||||
/** @var DatabaseInitializer */
|
||||
private $database_initializer;
|
||||
private $databaseInitializer;
|
||||
|
||||
/** @var WCTransactionalEmails */
|
||||
private $wc_transactional_emails;
|
||||
private $wcTransactionalEmails;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $wc_helper;
|
||||
private $wcHelper;
|
||||
|
||||
const INITIALIZED = 'MAILPOET_INITIALIZED';
|
||||
|
||||
|
@ -30,19 +30,19 @@ class MP2Migrator {
|
||||
/** @var Activator */
|
||||
private $activator;
|
||||
|
||||
private $log_file;
|
||||
public $log_file_url;
|
||||
private $logFile;
|
||||
public $logFileUrl;
|
||||
public $progressbar;
|
||||
private $segments_mapping = []; // Mapping between old and new segment IDs
|
||||
private $wp_users_segment;
|
||||
private $double_optin_enabled = true;
|
||||
private $mp2_campaign_table;
|
||||
private $mp2_custom_field_table;
|
||||
private $mp2_email_table;
|
||||
private $mp2_form_table;
|
||||
private $mp2_list_table;
|
||||
private $mp2_user_table;
|
||||
private $mp2_user_list_table;
|
||||
private $segmentsMapping = []; // Mapping between old and new segment IDs
|
||||
private $wpUsersSegment;
|
||||
private $doubleOptinEnabled = true;
|
||||
private $mp2CampaignTable;
|
||||
private $mp2CustomFieldTable;
|
||||
private $mp2EmailTable;
|
||||
private $mp2FormTable;
|
||||
private $mp2ListTable;
|
||||
private $mp2UserTable;
|
||||
private $mp2UserListTable;
|
||||
|
||||
|
||||
public function __construct(SettingsController $settings, Activator $activator) {
|
||||
|
@ -29,23 +29,23 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
class Menu {
|
||||
const MAIN_PAGE_SLUG = 'mailpoet-newsletters';
|
||||
|
||||
public $mp_api_key_valid;
|
||||
public $premium_key_valid;
|
||||
public $mpApiKeyValid;
|
||||
public $premiumKeyValid;
|
||||
|
||||
/** @var AccessControl */
|
||||
private $access_control;
|
||||
private $accessControl;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
||||
/** @var ServicesChecker */
|
||||
private $services_checker;
|
||||
private $servicesChecker;
|
||||
|
||||
/** @var ContainerWrapper */
|
||||
private $container;
|
||||
|
||||
/** @var FeaturesController */
|
||||
private $features_controller;
|
||||
private $featuresController;
|
||||
|
||||
public function __construct(
|
||||
AccessControl $accessControl,
|
||||
|
@ -14,7 +14,7 @@ require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
||||
class Migrator {
|
||||
|
||||
public $prefix;
|
||||
private $charset_collate;
|
||||
private $charsetCollate;
|
||||
private $models;
|
||||
|
||||
public function __construct() {
|
||||
|
@ -5,7 +5,7 @@ namespace MailPoet\Config;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class PluginActivatedHook {
|
||||
private $deferred_admin_notices;
|
||||
private $deferredAdminNotices;
|
||||
|
||||
public function __construct(DeferredAdminNotices $deferredAdminNotices) {
|
||||
$this->deferredAdminNotices = $deferredAdminNotices;
|
||||
|
@ -48,7 +48,7 @@ class Populator {
|
||||
private $referralDetector;
|
||||
const TEMPLATES_NAMESPACE = '\MailPoet\Config\PopulatorData\Templates\\';
|
||||
/** @var FeaturesController */
|
||||
private $flags_controller;
|
||||
private $flagsController;
|
||||
|
||||
public function __construct(
|
||||
SettingsController $settings,
|
||||
|
@ -9,7 +9,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class DefaultForm {
|
||||
/** @var Styles */
|
||||
private $form_styles;
|
||||
private $formStyles;
|
||||
|
||||
public function __construct(Styles $formStyles) {
|
||||
$this->formStyles = $formStyles;
|
||||
|
@ -10,12 +10,12 @@ use MailPoetVendor\Twig\Lexer as TwigLexer;
|
||||
use MailPoetVendor\Twig\Loader\FilesystemLoader as TwigFileSystem;
|
||||
|
||||
class Renderer {
|
||||
protected $cache_path;
|
||||
protected $caching_enabled;
|
||||
protected $debugging_enabled;
|
||||
protected $cachePath;
|
||||
protected $cachingEnabled;
|
||||
protected $debuggingEnabled;
|
||||
protected $renderer;
|
||||
public $assets_manifest_js;
|
||||
public $assets_manifest_css;
|
||||
public $assetsManifestJs;
|
||||
public $assetsManifestCss;
|
||||
|
||||
public function __construct($cachingEnabled = false, $debuggingEnabled = false) {
|
||||
$this->cachingEnabled = $cachingEnabled;
|
||||
|
@ -13,8 +13,8 @@ class RequirementsChecker {
|
||||
const TEST_XML_EXTENSION = 'XmlExtension';
|
||||
const TEST_VENDOR_SOURCE = 'VendorSource';
|
||||
|
||||
public $display_error_notice;
|
||||
public $vendor_classes = [
|
||||
public $displayErrorNotice;
|
||||
public $vendorClasses = [
|
||||
'\pQuery',
|
||||
'\Cron\CronExpression',
|
||||
'\Html2Text\Html2Text',
|
||||
|
@ -12,7 +12,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Shortcodes {
|
||||
/** @var Pages */
|
||||
private $subscription_pages;
|
||||
private $subscriptionPages;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -22,10 +22,10 @@ class CronTrigger {
|
||||
const SETTING_NAME = 'cron_trigger';
|
||||
|
||||
/** @var MailPoet */
|
||||
private $mailpoet_trigger;
|
||||
private $mailpoetTrigger;
|
||||
|
||||
/** @var WordPress */
|
||||
private $wordpress_trigger;
|
||||
private $wordpressTrigger;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
@ -15,10 +15,10 @@ class CronWorkerRunner {
|
||||
private $timer;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
/** @var CronWorkerScheduler */
|
||||
private $cron_worker_scheduler;
|
||||
private $cronWorkerScheduler;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
@ -8,13 +8,13 @@ class Daemon {
|
||||
public $timer;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
/** @var CronWorkerRunner */
|
||||
private $cron_worker_runner;
|
||||
private $cronWorkerRunner;
|
||||
|
||||
/** @var WorkersFactory */
|
||||
private $workers_factory;
|
||||
private $workersFactory;
|
||||
|
||||
public function __construct(
|
||||
CronHelper $cronHelper,
|
||||
|
@ -8,7 +8,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
use Tracy\Debugger;
|
||||
|
||||
class DaemonHttpRunner {
|
||||
public $settings_daemon_data;
|
||||
public $settingsDaemonData;
|
||||
public $timer;
|
||||
public $token;
|
||||
|
||||
@ -16,7 +16,7 @@ class DaemonHttpRunner {
|
||||
private $daemon;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
@ -24,7 +24,7 @@ class DaemonHttpRunner {
|
||||
const PING_SUCCESS_RESPONSE = 'pong';
|
||||
|
||||
/** @var WordPress */
|
||||
private $wordpress_trigger;
|
||||
private $wordpressTrigger;
|
||||
|
||||
public function __construct(Daemon $daemon = null, CronHelper $cronHelper, SettingsController $settings, WordPress $wordpressTrigger) {
|
||||
$this->cronHelper = $cronHelper;
|
||||
|
@ -7,7 +7,7 @@ class Supervisor {
|
||||
public $token;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
public function __construct(CronHelper $cronHelper) {
|
||||
$this->cronHelper = $cronHelper;
|
||||
|
@ -31,13 +31,13 @@ class WordPress {
|
||||
const RUN_INTERVAL = -1; // seconds
|
||||
const LAST_RUN_AT_SETTING = 'cron_trigger_wordpress.last_run_at';
|
||||
|
||||
private $tasks_counts;
|
||||
private $tasksCounts;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
/** @var MailPoet */
|
||||
private $mailpoet_trigger;
|
||||
private $mailpoetTrigger;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
@ -11,7 +11,7 @@ class AuthorizedSendingEmailsCheck extends SimpleWorker {
|
||||
const AUTOMATIC_SCHEDULING = false;
|
||||
|
||||
/** @var AuthorizedEmailsController */
|
||||
private $authorized_emails_controller;
|
||||
private $authorizedEmailsController;
|
||||
|
||||
public function __construct(AuthorizedEmailsController $authorizedEmailsController) {
|
||||
$this->authorizedEmailsController = $authorizedEmailsController;
|
||||
|
@ -14,7 +14,7 @@ class InactiveSubscribers extends SimpleWorker {
|
||||
const SUPPORT_MULTIPLE_INSTANCES = false;
|
||||
|
||||
/** @var InactiveSubscribersController */
|
||||
private $inactive_subscribers_controller;
|
||||
private $inactiveSubscribersController;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
@ -21,13 +21,13 @@ class Scheduler {
|
||||
const TASK_BATCH_SIZE = 5;
|
||||
|
||||
/** @var SubscribersFinder */
|
||||
private $subscribers_finder;
|
||||
private $subscribersFinder;
|
||||
|
||||
/** @var LoggerFactory */
|
||||
private $logger_factory;
|
||||
private $loggerFactory;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
public function __construct(
|
||||
SubscribersFinder $subscribersFinder,
|
||||
|
@ -23,29 +23,29 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
use function MailPoetVendor\array_column;
|
||||
|
||||
class SendingQueue {
|
||||
public $mailer_task;
|
||||
public $newsletter_task;
|
||||
public $batch_size;
|
||||
public $mailerTask;
|
||||
public $newsletterTask;
|
||||
public $batchSize;
|
||||
const BATCH_SIZE = 20;
|
||||
const TASK_BATCH_SIZE = 5;
|
||||
|
||||
/** @var StatsNotificationsScheduler */
|
||||
public $stats_notifications_scheduler;
|
||||
public $statsNotificationsScheduler;
|
||||
|
||||
/** @var SendingErrorHandler */
|
||||
private $error_handler;
|
||||
private $errorHandler;
|
||||
|
||||
/** @var MetaInfo */
|
||||
private $mailerMetaInfo;
|
||||
|
||||
/** @var LoggerFactory */
|
||||
private $logger_factory;
|
||||
private $loggerFactory;
|
||||
|
||||
/** @var NewslettersRepository */
|
||||
private $newsletters_repository;
|
||||
private $newslettersRepository;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
public function __construct(
|
||||
SendingErrorHandler $errorHandler,
|
||||
|
@ -19,20 +19,20 @@ use MailPoet\WP\Emoji;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Newsletter {
|
||||
public $tracking_enabled;
|
||||
public $tracking_image_inserted;
|
||||
public $trackingEnabled;
|
||||
public $trackingImageInserted;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
||||
/** @var PostsTask */
|
||||
private $posts_task;
|
||||
private $postsTask;
|
||||
|
||||
/** @var GATracking */
|
||||
private $ga_tracking;
|
||||
private $gaTracking;
|
||||
|
||||
/** @var LoggerFactory */
|
||||
private $logger_factory;
|
||||
private $loggerFactory;
|
||||
|
||||
/** @var Emoji */
|
||||
private $emoji;
|
||||
|
@ -8,7 +8,7 @@ use MailPoet\Models\NewsletterPost;
|
||||
|
||||
class Posts {
|
||||
/** @var LoggerFactory */
|
||||
private $logger_factory;
|
||||
private $loggerFactory;
|
||||
|
||||
public function __construct() {
|
||||
$this->loggerFactory = LoggerFactory::getInstance();
|
||||
|
@ -19,10 +19,10 @@ abstract class SimpleWorker implements CronWorkerInterface {
|
||||
public $timer;
|
||||
|
||||
/** @var CronHelper */
|
||||
protected $cron_helper;
|
||||
protected $cronHelper;
|
||||
|
||||
/** @var CronWorkerScheduler */
|
||||
protected $cron_worker_scheduler;
|
||||
protected $cronWorkerScheduler;
|
||||
|
||||
/** @var WPFunctions */
|
||||
protected $wp;
|
||||
|
@ -35,7 +35,7 @@ class AutomatedEmails extends SimpleWorker {
|
||||
private $repository;
|
||||
|
||||
/** @var NewsletterStatisticsRepository */
|
||||
private $newsletter_statistics_repository;
|
||||
private $newsletterStatisticsRepository;
|
||||
|
||||
public function __construct(
|
||||
Mailer $mailer,
|
||||
|
@ -20,13 +20,13 @@ class Scheduler {
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
||||
private $supported_types = [
|
||||
private $supportedTypes = [
|
||||
NewsletterEntity::TYPE_NOTIFICATION_HISTORY,
|
||||
NewsletterEntity::TYPE_STANDARD,
|
||||
];
|
||||
|
||||
/** @var EntityManager */
|
||||
private $entity_manager;
|
||||
private $entityManager;
|
||||
|
||||
/** @var StatsNotificationsRepository */
|
||||
private $repository;
|
||||
|
@ -37,7 +37,7 @@ class Worker {
|
||||
private $settings;
|
||||
|
||||
/** @var CronHelper */
|
||||
private $cron_helper;
|
||||
private $cronHelper;
|
||||
|
||||
/** @var MetaInfo */
|
||||
private $mailerMetaInfo;
|
||||
@ -46,19 +46,19 @@ class Worker {
|
||||
private $repository;
|
||||
|
||||
/** @var EntityManager */
|
||||
private $entity_manager;
|
||||
private $entityManager;
|
||||
|
||||
/** @var NewsletterLinkRepository */
|
||||
private $newsletter_link_repository;
|
||||
private $newsletterLinkRepository;
|
||||
|
||||
/** @var NewsletterStatisticsRepository */
|
||||
private $newsletter_statistics_repository;
|
||||
private $newsletterStatisticsRepository;
|
||||
|
||||
/** @var SubscribersFeature */
|
||||
private $subscribers_feature;
|
||||
private $subscribersFeature;
|
||||
|
||||
/** @var SubscribersRepository */
|
||||
private $subscribers_repository;
|
||||
private $subscribersRepository;
|
||||
|
||||
public function __construct(
|
||||
Mailer $mailer,
|
||||
|
@ -15,10 +15,10 @@ class WooCommercePastOrders extends SimpleWorker {
|
||||
const BATCH_SIZE = 20;
|
||||
|
||||
/** @var WCHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
/** @var WooCommercePurchases */
|
||||
private $woocommerce_purchases;
|
||||
private $woocommercePurchases;
|
||||
|
||||
public function __construct(
|
||||
WCHelper $woocommerceHelper,
|
||||
|
@ -13,10 +13,10 @@ class WooCommerceSync extends SimpleWorker {
|
||||
const SUPPORT_MULTIPLE_INSTANCES = false;
|
||||
|
||||
/** @var WooCommerceSegment */
|
||||
private $woocommerce_segment;
|
||||
private $woocommerceSegment;
|
||||
|
||||
/** @var WooCommerceHelper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
public function __construct(WooCommerceSegment $woocommerceSegment, WooCommerceHelper $woocommerceHelper) {
|
||||
$this->woocommerceSegment = $woocommerceSegment;
|
||||
|
@ -9,10 +9,10 @@ use MailPoetVendor\Symfony\Component\DependencyInjection\Container;
|
||||
class ContainerWrapper implements ContainerInterface {
|
||||
|
||||
/** @var Container */
|
||||
private $free_container;
|
||||
private $freeContainer;
|
||||
|
||||
/** @var Container|null */
|
||||
private $premium_container;
|
||||
private $premiumContainer;
|
||||
|
||||
/** @var ContainerWrapper|null */
|
||||
private static $instance;
|
||||
|
@ -9,7 +9,7 @@ use MailPoetVendor\Doctrine\Common\Cache\ArrayCache;
|
||||
|
||||
class AnnotationReaderProvider {
|
||||
/** @var CachedReader */
|
||||
private $annotation_reader;
|
||||
private $annotationReader;
|
||||
|
||||
public function __construct() {
|
||||
// register annotation reader if doctrine/annotations package is installed
|
||||
|
@ -17,10 +17,10 @@ class ConfigurationFactory {
|
||||
const PROXY_NAMESPACE = 'MailPoetDoctrineProxies';
|
||||
|
||||
/** @var bool */
|
||||
private $is_dev_mode;
|
||||
private $isDevMode;
|
||||
|
||||
/** @var AnnotationReaderProvider */
|
||||
private $annotation_reader_provider;
|
||||
private $annotationReaderProvider;
|
||||
|
||||
public function __construct($isDevMode = null, AnnotationReaderProvider $annotationReaderProvider) {
|
||||
$this->isDevMode = $isDevMode === null ? WP_DEBUG : $isDevMode;
|
||||
|
@ -14,7 +14,7 @@ class ConnectionFactory {
|
||||
const DRIVER = 'pdo_mysql';
|
||||
const PLATFORM_CLASS = MySqlPlatform::class;
|
||||
|
||||
private $min_wait_timeout = 60;
|
||||
private $minWaitTimeout = 60;
|
||||
|
||||
private $types = [
|
||||
JsonType::NAME => JsonType::class,
|
||||
|
@ -20,10 +20,10 @@ class EntityManagerFactory {
|
||||
private $configuration;
|
||||
|
||||
/** @var TimestampListener */
|
||||
private $timestamp_listener;
|
||||
private $timestampListener;
|
||||
|
||||
/** @var ValidationListener */
|
||||
private $validation_listener;
|
||||
private $validationListener;
|
||||
|
||||
public function __construct(
|
||||
Connection $connection,
|
||||
|
@ -10,7 +10,7 @@ trait CreatedAtTrait {
|
||||
* @ORM\Column(type="datetimetz")
|
||||
* @var DateTimeInterface
|
||||
*/
|
||||
private $created_at;
|
||||
private $createdAt;
|
||||
|
||||
/** @return DateTimeInterface */
|
||||
public function getCreatedAt() {
|
||||
|
@ -10,7 +10,7 @@ trait DeletedAtTrait {
|
||||
* @ORM\Column(type="datetimetz", nullable=true)
|
||||
* @var DateTimeInterface|null
|
||||
*/
|
||||
private $deleted_at;
|
||||
private $deletedAt;
|
||||
|
||||
/** @return DateTimeInterface|null */
|
||||
public function getDeletedAt() {
|
||||
|
@ -10,7 +10,7 @@ trait UpdatedAtTrait {
|
||||
* @ORM\Column(type="datetimetz")
|
||||
* @var DateTimeInterface
|
||||
*/
|
||||
private $updated_at;
|
||||
private $updatedAt;
|
||||
|
||||
/** @return DateTimeInterface */
|
||||
public function getUpdatedAt() {
|
||||
|
@ -14,7 +14,7 @@ use ReflectionException;
|
||||
// and it calls realpath() that could fail on some hostings due to filesystem permissions.
|
||||
class MetadataCache extends CacheProvider {
|
||||
/** @var bool */
|
||||
private $is_dev_mode;
|
||||
private $isDevMode;
|
||||
|
||||
/** @var string */
|
||||
private $directory;
|
||||
|
@ -9,13 +9,13 @@ use MailPoetVendor\Doctrine\ORM\Mapping\ClassMetadata;
|
||||
|
||||
abstract class Repository {
|
||||
/** @var EntityManager */
|
||||
protected $entity_manager;
|
||||
protected $entityManager;
|
||||
|
||||
/** @var ClassMetadata */
|
||||
protected $class_metadata;
|
||||
protected $classMetadata;
|
||||
|
||||
/** @var DoctrineEntityRepository */
|
||||
protected $doctrine_repository;
|
||||
protected $doctrineRepository;
|
||||
|
||||
public function __construct(EntityManager $entityManager) {
|
||||
$this->entityManager = $entityManager;
|
||||
|
@ -11,7 +11,7 @@ class SerializableConnection extends Connection {
|
||||
private $params;
|
||||
private $driver;
|
||||
private $config;
|
||||
private $event_manager;
|
||||
private $eventManager;
|
||||
|
||||
public function __construct(array $params, Driver $driver, Configuration $config = null, EventManager $eventManager = null) {
|
||||
$this->params = $params;
|
||||
|
@ -15,7 +15,7 @@ class TablePrefixMetadataFactory extends ClassMetadataFactory {
|
||||
private $prefix;
|
||||
|
||||
/** @var array */
|
||||
private $prefixed_map = [];
|
||||
private $prefixedMap = [];
|
||||
|
||||
public function __construct() {
|
||||
if (Env::$dbPrefix === null) {
|
||||
|
@ -7,7 +7,7 @@ use MailPoetVendor\Symfony\Component\Validator\ConstraintViolationListInterface;
|
||||
|
||||
class ValidationException extends \RuntimeException {
|
||||
/** @var string */
|
||||
private $resource_name;
|
||||
private $resourceName;
|
||||
|
||||
/** @var ConstraintViolationListInterface|ConstraintViolationInterface[] */
|
||||
private $violations;
|
||||
|
@ -11,7 +11,7 @@ class ValidatorFactory {
|
||||
const METADATA_DIR = __DIR__ . '/../../../generated/validator-metadata';
|
||||
|
||||
/** @var AnnotationReaderProvider */
|
||||
private $annotation_reader_provider;
|
||||
private $annotationReaderProvider;
|
||||
|
||||
public function __construct(AnnotationReaderProvider $annotationReaderProvider) {
|
||||
$this->annotationReaderProvider = $annotationReaderProvider;
|
||||
|
@ -17,7 +17,7 @@ class EmailAction implements Filter {
|
||||
const ACTION_CLICKED = 'clicked';
|
||||
const ACTION_NOT_CLICKED = 'notClicked';
|
||||
|
||||
private static $allowed_actions = [
|
||||
private static $allowedActions = [
|
||||
EmailAction::ACTION_OPENED,
|
||||
EmailAction::ACTION_NOT_OPENED,
|
||||
EmailAction::ACTION_CLICKED,
|
||||
@ -25,10 +25,10 @@ class EmailAction implements Filter {
|
||||
];
|
||||
|
||||
/** @var int */
|
||||
private $newsletter_id;
|
||||
private $newsletterId;
|
||||
|
||||
/** @var int */
|
||||
private $link_id;
|
||||
private $linkId;
|
||||
|
||||
/** @var string */
|
||||
private $action;
|
||||
|
@ -13,7 +13,7 @@ class WooCommerceCategory implements Filter {
|
||||
const ACTION_CATEGORY = 'purchasedCategory';
|
||||
|
||||
/** @var int */
|
||||
private $category_id;
|
||||
private $categoryId;
|
||||
|
||||
/** @var string */
|
||||
private $connect;
|
||||
|
@ -12,7 +12,7 @@ class WooCommerceProduct implements Filter {
|
||||
const ACTION_PRODUCT = 'purchasedProduct';
|
||||
|
||||
/** @var int */
|
||||
private $product_id;
|
||||
private $productId;
|
||||
|
||||
/** @var string */
|
||||
private $connect;
|
||||
|
@ -11,10 +11,10 @@ use MailPoet\Models\Subscriber;
|
||||
class SendingNewslettersSubscribersFinder {
|
||||
|
||||
/** @var SingleSegmentLoader */
|
||||
private $single_segment_loader;
|
||||
private $singleSegmentLoader;
|
||||
|
||||
/** @var SubscribersIds */
|
||||
private $subscribers_ids_loader;
|
||||
private $subscribersIdsLoader;
|
||||
|
||||
public function __construct(SingleSegmentLoader $singleSegmentLoader, SubscribersIds $subscribersIdsLoader) {
|
||||
$this->singleSegmentLoader = $singleSegmentLoader;
|
||||
|
@ -10,7 +10,7 @@ use MailPoet\WooCommerce\Helper as WooCommerceHelper;
|
||||
class SubscribersCount {
|
||||
|
||||
/** @var RequirementsChecker */
|
||||
private $requirements_checker;
|
||||
private $requirementsChecker;
|
||||
|
||||
public function __construct(RequirementsChecker $requirementsChecker = null) {
|
||||
if (!$requirementsChecker) {
|
||||
|
@ -10,7 +10,7 @@ use MailPoet\WooCommerce\Helper as WooCommerceHelper;
|
||||
class SubscribersIds {
|
||||
|
||||
/** @var RequirementsChecker */
|
||||
private $requirements_checker;
|
||||
private $requirementsChecker;
|
||||
|
||||
public function __construct(RequirementsChecker $requirementsChecker = null) {
|
||||
if (!$requirementsChecker) {
|
||||
|
@ -9,7 +9,7 @@ use MailPoet\WooCommerce\Helper;
|
||||
class RequirementsChecker {
|
||||
|
||||
/** @var Helper */
|
||||
private $woocommerce_helper;
|
||||
private $woocommerceHelper;
|
||||
|
||||
public function __construct(Helper $woocommerceHelper = null) {
|
||||
if (!$woocommerceHelper) {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user