Remove no longer necessary checks
[MAILPOET-1948]
This commit is contained in:
committed by
Jack Kitterhing
parent
1f219d1eba
commit
01a0fe96c4
@ -4,8 +4,6 @@ namespace MailPoet\Models;
|
||||
use MailPoet\Form\Block\Date;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property string $type
|
||||
* @property string|array|null $params
|
||||
|
@ -4,8 +4,6 @@ namespace MailPoet\Models;
|
||||
use MailPoet\Settings\SettingsController;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property string|array $settings
|
||||
* @property string|array $body
|
||||
@ -147,4 +145,4 @@ class Form extends Model {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
class MappingToExternalEntities extends Model {
|
||||
public static $_table = MP_MAPPING_TO_EXTERNAL_ENTITIES_TABLE;
|
||||
|
||||
|
@ -4,8 +4,6 @@ namespace MailPoet\Models;
|
||||
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @method static array|string getConfig($key = null, $connection_name = self::DEFAULT_CONNECTION)
|
||||
* @method static null resetConfig()
|
||||
|
@ -5,8 +5,6 @@ namespace MailPoet\Models;
|
||||
use MailPoet\Util\Helpers;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
class ModelValidator extends \Sudzy\Engine {
|
||||
public $validators;
|
||||
|
||||
|
@ -12,8 +12,6 @@ use MailPoet\WP\Emoji;
|
||||
use function MailPoet\Util\array_column;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $type
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $queue_id
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $option_field_id
|
||||
|
@ -2,8 +2,6 @@
|
||||
namespace MailPoet\Models;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
class NewsletterOptionField extends Model {
|
||||
public static $_table = MP_NEWSLETTER_OPTION_FIELDS_TABLE;
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $post_id
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $segment_id
|
||||
|
@ -2,8 +2,6 @@
|
||||
namespace MailPoet\Models;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
* @property int|null $newsletter_id
|
||||
|
@ -7,8 +7,6 @@ use MailPoet\Entities\ScheduledTaskEntity;
|
||||
use MailPoet\Util\Helpers;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $processed_at
|
||||
|
@ -3,8 +3,6 @@ namespace MailPoet\Models;
|
||||
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $task_id
|
||||
* @property int $subscriber_id
|
||||
|
@ -5,8 +5,6 @@ use MailPoet\Entities\SegmentEntity;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
use MailPoet\WooCommerce\Helper as WCHelper;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property array $subscribers_count
|
||||
* @property string $name
|
||||
|
@ -7,8 +7,6 @@ use MailPoet\WP\Emoji;
|
||||
use MailPoet\Tasks\Subscribers as TaskSubscribers;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $count_processed
|
||||
* @property int $count_to_process
|
||||
|
@ -4,8 +4,6 @@ namespace MailPoet\Models;
|
||||
use MailPoet\Settings\SettingsController;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
* @property string|null $value
|
||||
|
@ -3,8 +3,6 @@ namespace MailPoet\Models;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
class StatisticsForms extends Model {
|
||||
public static $_table = MP_STATISTICS_FORMS_TABLE;
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
class StatisticsNewsletters extends Model {
|
||||
public static $_table = MP_STATISTICS_NEWSLETTERS_TABLE;
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
|
@ -3,8 +3,6 @@ namespace MailPoet\Models;
|
||||
|
||||
use WC_Order;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
|
@ -8,8 +8,6 @@ use function MailPoet\Util\array_column;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
use MailPoet\Util\Security;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $email
|
||||
|
@ -4,8 +4,6 @@ namespace MailPoet\Models;
|
||||
use MailPoet\Util\Helpers;
|
||||
use function MailPoet\Util\array_column;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $subscriber_id
|
||||
* @property int $custom_field_id
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property string $ip
|
||||
*/
|
||||
|
@ -2,8 +2,6 @@
|
||||
namespace MailPoet\Models;
|
||||
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $subscriber_id
|
||||
|
Reference in New Issue
Block a user