Autofix number of newlines between methods
[MAILPOET-2715]
This commit is contained in:
committed by
Jack Kitterhing
parent
73963bd37a
commit
b39dac75d6
@ -6,7 +6,6 @@ use MailPoet\DI\ContainerWrapper;
|
||||
use MailPoetVendor\Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
|
||||
|
||||
class API {
|
||||
|
||||
/**
|
||||
* @param string $version
|
||||
* @return \MailPoet\API\MP\v1\API
|
||||
|
@ -41,7 +41,6 @@ class API {
|
||||
|
||||
const CURRENT_VERSION = 'v1';
|
||||
|
||||
|
||||
public function __construct(
|
||||
ContainerInterface $container,
|
||||
AccessControl $accessControl,
|
||||
|
@ -5,7 +5,6 @@ namespace MailPoet\API\JSON\ResponseBuilders;
|
||||
use MailPoet\Entities\CustomFieldEntity;
|
||||
|
||||
class CustomFieldsResponseBuilder {
|
||||
|
||||
/**
|
||||
* @param CustomFieldEntity[] $customFields
|
||||
* @return array
|
||||
|
@ -67,5 +67,4 @@ class MP2Migrator extends APIEndpoint {
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,5 +16,4 @@ class NewsletterLinks extends APIEndpoint {
|
||||
$links = NewsletterLink::select(['id', 'url'])->where('newsletter_id', $data['newsletterId'])->findArray();
|
||||
return $this->successResponse($links);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -95,5 +95,4 @@ class Analytics {
|
||||
private function recordDataSent() {
|
||||
$this->settings->set(Analytics::SETTINGS_LAST_SENT_KEY, Carbon::now());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -59,5 +59,4 @@ class DeactivationSurvey {
|
||||
// if the website fails to render we have other places to catch and display the error
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -33,5 +33,4 @@ class DeferredAdminNotices {
|
||||
WPFunctions::get()->deleteOption(DeferredAdminNotices::OPTIONS_KEY_NAME);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -44,7 +44,6 @@ class MP2Migrator {
|
||||
private $mp2UserTable;
|
||||
private $mp2UserListTable;
|
||||
|
||||
|
||||
public function __construct(SettingsController $settings, Activator $activator) {
|
||||
$this->defineMP2Tables();
|
||||
$logFilename = 'mp2migration.log';
|
||||
|
@ -6,7 +6,6 @@ use MailPoet\Subscribers\SubscriberPersonalDataEraser;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class PersonalDataErasers {
|
||||
|
||||
public function init() {
|
||||
WPFunctions::get()->addFilter('wp_privacy_personal_data_erasers', [$this, 'registerSubscriberEraser']);
|
||||
}
|
||||
@ -19,5 +18,4 @@ class PersonalDataErasers {
|
||||
|
||||
return $erasers;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ use MailPoet\Subscribers\ImportExport\PersonalDataExporters\SubscriberExporter;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class PersonalDataExporters {
|
||||
|
||||
public function init() {
|
||||
WPFunctions::get()->addFilter('wp_privacy_personal_data_exporters', [$this, 'registerSubscriberExporter']);
|
||||
WPFunctions::get()->addFilter('wp_privacy_personal_data_exporters', [$this, 'registerSegmentsExporter']);
|
||||
@ -48,5 +47,4 @@ class PersonalDataExporters {
|
||||
];
|
||||
return $exporters;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ use MailPoet\WooCommerce\Helper as WooCommerceHelper;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class PrivacyPolicy {
|
||||
|
||||
public function init() {
|
||||
if (function_exists('wp_add_privacy_policy_content')) {
|
||||
wp_add_privacy_policy_content(__('MailPoet', 'mailpoet'), $this->getPrivacyPolicyContent());
|
||||
@ -66,5 +65,4 @@ class PrivacyPolicy {
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -25,5 +25,4 @@ class ExportFilesCleanup extends SimpleWorker {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -28,7 +28,6 @@ class InactiveSubscribers extends SimpleWorker {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
||||
public function processTaskStrategy(ScheduledTask $task, $timer) {
|
||||
$trackingEnabled = (bool)$this->settings->get('tracking.enabled');
|
||||
if (!$trackingEnabled) {
|
||||
|
@ -16,7 +16,6 @@ class PremiumKeyCheck extends KeyCheckWorker {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
||||
public function checkProcessingRequirements() {
|
||||
return Bridge::isPremiumKeySpecified();
|
||||
}
|
||||
|
@ -27,5 +27,4 @@ class NewsletterLinkRepository extends Repository {
|
||||
->getQuery()
|
||||
->getOneOrNullResult();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -101,5 +101,4 @@ class Scheduler {
|
||||
$date->addHours(self::HOURS_TO_SEND_AFTER_NEWSLETTER);
|
||||
return $date;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -53,5 +53,4 @@ class StatsNotificationsRepository extends Repository {
|
||||
}
|
||||
return $query->getQuery()->getResult();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -169,5 +169,4 @@ class Worker {
|
||||
'[link:newsletter_view_in_browser_url]' => __('View in browser link', 'mailpoet'),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -171,5 +171,4 @@ class ApiDataSanitizer {
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ use MailPoetVendor\Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use MailPoetVendor\Symfony\Component\DependencyInjection\Reference;
|
||||
|
||||
class ContainerConfigurator implements IContainerConfigurator {
|
||||
|
||||
public function getDumpNamespace() {
|
||||
return 'MailPoetGenerated';
|
||||
}
|
||||
|
@ -9,6 +9,8 @@ interface IContainerConfigurator {
|
||||
const PREMIUM_CONTAINER_SERVICE_SLUG = 'premium_container';
|
||||
|
||||
public function configure(ContainerBuilder $container);
|
||||
|
||||
public function getDumpNamespace();
|
||||
|
||||
public function getDumpClassname();
|
||||
}
|
||||
|
@ -22,5 +22,4 @@ trait AutoincrementedIdTrait {
|
||||
public function setId($id) {
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,9 +5,7 @@ namespace MailPoet\DynamicSegments\Filters;
|
||||
use MailPoetVendor\Idiorm\ORM;
|
||||
|
||||
interface Filter {
|
||||
|
||||
public function toSql(ORM $orm);
|
||||
|
||||
public function toArray();
|
||||
|
||||
}
|
||||
|
@ -63,5 +63,4 @@ class AddToSubscribersFilters {
|
||||
});
|
||||
return array_merge($specialSegmentFilters, $segments);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -52,5 +52,4 @@ class SendingNewslettersSubscribersFinder {
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ use MailPoet\Listing\Handler;
|
||||
use MailPoet\Models\DynamicSegment;
|
||||
|
||||
class SubscribersBulkActionHandler {
|
||||
|
||||
/**
|
||||
* @param array $segment
|
||||
* @param array $data
|
||||
@ -22,5 +21,4 @@ class SubscribersBulkActionHandler {
|
||||
return $bulkAction->apply('\MailPoet\Models\SubscribersInDynamicSegment', $data);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ use MailPoet\Models\DynamicSegment;
|
||||
use MailPoet\Models\Segment;
|
||||
|
||||
class SubscribersListingsHandlerFactory {
|
||||
|
||||
public function get(Segment $segment, $data) {
|
||||
if ($segment->type === DynamicSegment::TYPE_DYNAMIC) {
|
||||
$listing = new Handler();
|
||||
|
@ -12,7 +12,6 @@ use MailPoet\Models\DynamicSegment;
|
||||
use MailPoet\Models\DynamicSegmentFilter;
|
||||
|
||||
class DBMapper {
|
||||
|
||||
/**
|
||||
* @param DynamicSegment $segmentData
|
||||
* @param DynamicSegmentFilter[] $filtersData
|
||||
@ -82,5 +81,4 @@ class DBMapper {
|
||||
}
|
||||
return $data['segmentType'];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ use MailPoet\DynamicSegments\Filters\WooCommerceProduct;
|
||||
use MailPoet\Models\DynamicSegment;
|
||||
|
||||
class FormDataMapper {
|
||||
|
||||
/**
|
||||
* @param array $data
|
||||
*
|
||||
@ -116,5 +115,4 @@ class FormDataMapper {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -31,5 +31,4 @@ class Loader {
|
||||
|
||||
return $this->mapper->mapSegments($segments, $filters);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -29,7 +29,4 @@ class SingleSegmentLoader {
|
||||
|
||||
return $this->mapper->mapSegment($segment, $filters);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -34,5 +34,4 @@ class SubscribersCount {
|
||||
}
|
||||
return $orm->findOne()->cnt;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -40,5 +40,4 @@ class SubscribersIds {
|
||||
}
|
||||
return $orm->findMany();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ use MailPoet\Models\Model;
|
||||
use MailPoetVendor\Idiorm\ORM;
|
||||
|
||||
class Saver {
|
||||
|
||||
/**
|
||||
* @param DynamicSegment $segment
|
||||
*
|
||||
|
@ -41,5 +41,4 @@ class RequirementsChecker {
|
||||
|
||||
return $constants['SEGMENT_TYPE'] === 'woocommerce';
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -114,5 +114,4 @@ class FormEntity {
|
||||
'deleted_at' => $this->getDeletedAt(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -331,7 +331,6 @@ class NewsletterEntity {
|
||||
$this->gaCampaign = $gaCampaign;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string|null $unsubscribeToken
|
||||
*/
|
||||
|
@ -46,5 +46,4 @@ class StatsNotificationEntity {
|
||||
public function getTask() {
|
||||
return $this->task;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -346,5 +346,4 @@ class SubscriberEntity {
|
||||
public function setLinkToken($linkToken) {
|
||||
$this->linkToken = $linkToken;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -90,6 +90,7 @@ class Date {
|
||||
'month' => ['MM'],
|
||||
];
|
||||
}
|
||||
|
||||
public function getMonthNames(): array {
|
||||
return [__('January', 'mailpoet'), __('February', 'mailpoet'), __('March', 'mailpoet'), __('April', 'mailpoet'),
|
||||
__('May', 'mailpoet'), __('June', 'mailpoet'), __('July', 'mailpoet'), __('August', 'mailpoet'), __('September', 'mailpoet'),
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace MailPoet\Form\Block;
|
||||
|
||||
class Divider {
|
||||
|
||||
public function render(): string {
|
||||
return '<hr class="mailpoet_divider" />';
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace MailPoet\Form\Block;
|
||||
|
||||
class Html {
|
||||
|
||||
public function render(array $block): string {
|
||||
$html = '';
|
||||
$text = '';
|
||||
|
@ -139,5 +139,4 @@ class DisplayFormInWPContent {
|
||||
) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ namespace MailPoet\Form;
|
||||
use MailPoet\Models\Form;
|
||||
|
||||
class FormFactory {
|
||||
|
||||
/** @return Form */
|
||||
public function createEmptyForm() {
|
||||
$data = [
|
||||
@ -41,5 +40,4 @@ class FormFactory {
|
||||
];
|
||||
return Form::createOrUpdate($data);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -31,5 +31,4 @@ class FormsRepository extends Repository {
|
||||
->getQuery()
|
||||
->getResult();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,5 +46,4 @@ class FieldNameObfuscator {
|
||||
private function wasFieldObfuscated($name) {
|
||||
return strpos($name, FieldNameObfuscator::OBFUSCATED_FIELD_PREFIX) === 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -57,5 +57,4 @@ class LogHandler extends AbstractProcessingHandler {
|
||||
Log::whereLt('created_at', Carbon::create()->subDays(self::DAYS_TO_KEEP_LOGS)->toDateTimeString())
|
||||
->deleteMany();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -82,5 +82,4 @@ class LoggerFactory {
|
||||
return \MailPoetVendor\Monolog\Logger::ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -100,5 +100,4 @@ class WordPressMailer extends \PHPMailer {
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -110,5 +110,4 @@ class DynamicSegment extends MailPoetSegment {
|
||||
|
||||
return ['count' => $count];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -53,5 +53,4 @@ class DynamicSegmentFilter extends Model {
|
||||
$query->deleteMany();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -137,5 +137,4 @@ class Form extends Model {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -10,5 +10,4 @@ class MappingToExternalEntities extends Model {
|
||||
$relation->hydrate($data);
|
||||
return $relation->save();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -647,7 +647,6 @@ class Newsletter extends Model {
|
||||
return ((int)$queue->count) > 0;
|
||||
}
|
||||
|
||||
|
||||
public static function getAnalytics() {
|
||||
$welcomeNewslettersCount = Newsletter::getPublished()
|
||||
->filter('filterType', self::TYPE_WELCOME)
|
||||
|
@ -53,5 +53,4 @@ class NewsletterTemplate extends Model {
|
||||
}
|
||||
return $template;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ use MailPoet\DynamicSegments\RequirementsChecker;
|
||||
use MailPoet\WooCommerce\Helper as WooCommerceHelper;
|
||||
|
||||
class SubscribersInDynamicSegment extends Subscriber {
|
||||
|
||||
public static function listingQuery(array $data = []) {
|
||||
$query = self::select(self::$_table . '.*');
|
||||
$singleSegmentLoader = new SingleSegmentLoader(new DBMapper());
|
||||
@ -32,6 +31,4 @@ class SubscribersInDynamicSegment extends Subscriber {
|
||||
$requirementsChecker = new RequirementsChecker(new WooCommerceHelper());
|
||||
return $requirementsChecker->shouldSkipSegment($dynamicSegment);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ namespace MailPoet\Newsletter\Editor;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class MetaInformationManager {
|
||||
|
||||
public function appendMetaInformation($content, $post, $args) {
|
||||
// Append author and categories above and below contents
|
||||
foreach (['above', 'below'] as $position) {
|
||||
@ -37,7 +36,6 @@ class MetaInformationManager {
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
private static function getPostCategories($postId, $postType, $precededBy) {
|
||||
$precededBy = trim($precededBy);
|
||||
|
||||
|
@ -7,7 +7,6 @@ use pQuery;
|
||||
use pQuery\DomNode;
|
||||
|
||||
class StructureTransformer {
|
||||
|
||||
public function transform($content, $imageFullWidth) {
|
||||
$root = pQuery::parseStr($content);
|
||||
|
||||
@ -129,5 +128,4 @@ class StructureTransformer {
|
||||
|
||||
return $updatedStructure;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ namespace MailPoet\Newsletter\Renderer\Columns;
|
||||
use MailPoet\Newsletter\Renderer\EscapeHelper as EHelper;
|
||||
|
||||
class Renderer {
|
||||
|
||||
public function render($contentBlock, $columnsData) {
|
||||
|
||||
$columnsCount = count($contentBlock['blocks']);
|
||||
|
@ -9,7 +9,6 @@ use MailPoet\Models\SendingQueue;
|
||||
use MailPoet\Tasks\Sending as SendingTask;
|
||||
|
||||
class AutomaticEmailScheduler {
|
||||
|
||||
public function scheduleAutomaticEmail($group, $event, $schedulingCondition = false, $subscriberId = false, $meta = false) {
|
||||
$newsletters = Scheduler::getNewsletters(Newsletter::TYPE_AUTOMATIC, $group);
|
||||
if (empty($newsletters)) return false;
|
||||
@ -102,5 +101,4 @@ class AutomaticEmailScheduler {
|
||||
$task->scheduledAt = Scheduler::getScheduledTimeWithDelay($newsletter->afterTimeType, $newsletter->afterTimeNumber);
|
||||
$task->save();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
use MailPoetVendor\Carbon\Carbon;
|
||||
|
||||
class Scheduler {
|
||||
|
||||
public static function getNextRunDate($schedule, $fromTimestamp = false) {
|
||||
$wp = new WPFunctions();
|
||||
$fromTimestamp = ($fromTimestamp) ? $fromTimestamp : $wp->currentTime('timestamp');
|
||||
|
@ -69,5 +69,4 @@ class WelcomeScheduler {
|
||||
);
|
||||
return $sendingTask->save();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ use MailPoet\Models\NewsletterLink;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class ShortcodesHelper {
|
||||
|
||||
public static function getShortcodes() {
|
||||
$shortcodes = [
|
||||
WPFunctions::get()->__('Subscriber', 'mailpoet') => [
|
||||
|
@ -73,5 +73,4 @@ class NewsletterStatistics {
|
||||
'revenue' => empty($this->wooCommerceRevenue) ? null : $this->wooCommerceRevenue->asArray(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -56,5 +56,4 @@ class NewsletterWooCommerceRevenue {
|
||||
'formatted' => $this->getFormattedValue(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -58,5 +58,4 @@ class BulkAction {
|
||||
throw new \InvalidArgumentException('No handler found for segment');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -151,5 +151,4 @@ class SubscribersFinder {
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -42,5 +42,4 @@ class SubscribersListings {
|
||||
}
|
||||
throw new \InvalidArgumentException('No handler found for segment');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -109,5 +109,4 @@ class ConfirmationEmailMailer {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -77,5 +77,4 @@ class DefaultSubscribersGetter extends SubscribersGetter {
|
||||
|
||||
return $subscribers;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -76,5 +76,4 @@ class DynamicSubscribersGetter extends SubscribersGetter {
|
||||
|
||||
return $subscribers;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -56,5 +56,4 @@ class NewsletterClicksExporter {
|
||||
'data' => $newsletterData,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -96,5 +96,4 @@ class NewslettersExporter {
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ use MailPoet\Models\Subscriber;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class SegmentsExporter {
|
||||
|
||||
public function export($email) {
|
||||
return [
|
||||
'data' => $this->exportSubscriber(Subscriber::findOne(trim($email))),
|
||||
@ -48,6 +47,4 @@ class SegmentsExporter {
|
||||
'data' => $segmentData,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ use MailPoet\Subscribers\Source;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class SubscriberExporter {
|
||||
|
||||
public function export($email) {
|
||||
return [
|
||||
'data' => $this->exportSubscriber(Subscriber::findOne(trim($email))),
|
||||
@ -106,5 +105,4 @@ class SubscriberExporter {
|
||||
return WPFunctions::get()->__('Unknown', 'mailpoet');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -41,5 +41,4 @@ class LinkTokens {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -107,5 +107,4 @@ class NewSubscriberNotificationMailer {
|
||||
}
|
||||
return implode(', ', $names);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ use MailPoet\Models\Form;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class RequiredCustomFieldValidator {
|
||||
|
||||
/**
|
||||
* @param array $data
|
||||
* @param Form|null $form
|
||||
@ -74,5 +73,4 @@ class RequiredCustomFieldValidator {
|
||||
}
|
||||
return $customFieldIds;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -37,5 +37,4 @@ class Source {
|
||||
$subscriber->set('source', $source);
|
||||
return $subscriber;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -99,5 +99,4 @@ class SubscriberActions {
|
||||
|
||||
return $subscriber;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ use MailPoet\Models\Subscriber;
|
||||
use MailPoet\Models\SubscriberCustomField;
|
||||
|
||||
class SubscriberPersonalDataEraser {
|
||||
|
||||
public function erase($email) {
|
||||
if (empty($email)) {
|
||||
return [
|
||||
@ -51,5 +50,4 @@ class SubscriberPersonalDataEraser {
|
||||
$subscriber->confirmedIp = '0.0.0.0';
|
||||
$subscriber->save();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -155,5 +155,4 @@ class DIPanel implements IBarPanel {
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ use MailPoetVendor\Twig\Extension\AbstractExtension;
|
||||
use MailPoetVendor\Twig\TwigFilter;
|
||||
|
||||
class Filters extends AbstractExtension {
|
||||
|
||||
public function getName() {
|
||||
return 'filters';
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ namespace MailPoet\Util;
|
||||
use pQuery\DomNode;
|
||||
|
||||
class DOM {
|
||||
|
||||
/**
|
||||
* Splits a DOM tree around the cut element, bringing it up to bound
|
||||
* ancestor and splitting left and right siblings into subtrees along
|
||||
@ -38,5 +37,4 @@ class DOM {
|
||||
}
|
||||
return $item;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -58,5 +58,4 @@ class FreeDomains {
|
||||
$domain = end($emailParts);
|
||||
return in_array($domain, self::FREE_DOMAINS);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -98,5 +98,4 @@ class Helpers {
|
||||
return trim($value);
|
||||
return $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -47,5 +47,4 @@ class AfterMigrationNotice {
|
||||
\MailPoet\WP\Notice::displaySuccess($message, $extraClasses, $dataNoticeName);
|
||||
return $message;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -39,5 +39,4 @@ class BlackFridayNotice {
|
||||
public function disable() {
|
||||
WPFunctions::get()->setTransient(self::OPTION_NAME, true, self::DISMISS_NOTICE_TIMEOUT_SECONDS);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -40,5 +40,4 @@ class PHPVersionWarnings {
|
||||
public function disable() {
|
||||
WPFunctions::get()->setTransient(self::OPTION_NAME, true, self::DISMISS_NOTICE_TIMEOUT_SECONDS);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -88,5 +88,4 @@ class PermanentNotices {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -100,7 +100,6 @@ if (!class_exists('ProgressBar', false)) {
|
||||
public function deleteProgressFile() {
|
||||
unlink($this->filename);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace MailPoet\Util;
|
||||
|
||||
class SecondLevelDomainNames {
|
||||
|
||||
public function get($host) {
|
||||
if (preg_match('/[^.]*\.[^.]{2,3}(?:\.[^.]{2,3})?$/', $host, $matches)) {
|
||||
return $matches[0];
|
||||
|
@ -682,5 +682,4 @@ class Functions {
|
||||
return [$host, $port, $socket, $isIpv6];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ namespace MailPoet\WP;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Posts {
|
||||
|
||||
public static function getTerms($args) {
|
||||
// Since WordPress 4.5.0 signature of get_terms changed to require
|
||||
// one argument array, where taxonomy is key of that array
|
||||
@ -25,5 +24,4 @@ class Posts {
|
||||
$args = array_merge($defaults, $args);
|
||||
return WPFunctions::get()->getPostTypes($args, $output, $operator);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace MailPoet\WooCommerce;
|
||||
|
||||
class Helper {
|
||||
|
||||
public function isWooCommerceActive() {
|
||||
return class_exists('WooCommerce');
|
||||
}
|
||||
|
@ -48,6 +48,7 @@ if (WP_DEBUG && PHP_VERSION_ID >= 70100 && file_exists($tracyPath)) {
|
||||
$tracyScriptHtml .= "<script>window.TracyMaxAjaxRows = $maxAjaxRows;</script>\n";
|
||||
echo $tracyScriptHtml;
|
||||
}
|
||||
|
||||
add_action('admin_enqueue_scripts', 'render_tracy', PHP_INT_MAX, 0);
|
||||
session_start();
|
||||
Debugger::enable(Debugger::DEVELOPMENT);
|
||||
|
@ -12,7 +12,6 @@ use PHPStan\Type\ObjectType;
|
||||
use PHPStan\Type\Type;
|
||||
|
||||
class StubDynamicReturnTypeExtension implements DynamicStaticMethodReturnTypeExtension {
|
||||
|
||||
public function getClass(): string {
|
||||
return Stub::class;
|
||||
}
|
||||
|
@ -34,5 +34,4 @@ class DynamicSegment extends Segment {
|
||||
$saver->save($dynamicSegment);
|
||||
return $dynamicSegment;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -44,5 +44,4 @@ class Segment {
|
||||
public function create() {
|
||||
return \MailPoet\Models\Segment::createOrUpdate($this->data);
|
||||
}
|
||||
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user