Fix PHPStan errors
This commit is contained in:
committed by
M. Shull
parent
3ff55d85a9
commit
ab097d356a
@@ -2,6 +2,7 @@
|
||||
namespace MailPoet\Models;
|
||||
|
||||
use MailPoet\Form\Block\Date;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
@@ -9,7 +10,6 @@ if (!defined('ABSPATH')) exit;
|
||||
* @property string $type
|
||||
* @property string|array $params
|
||||
*/
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class CustomField extends Model {
|
||||
public static $_table = MP_CUSTOM_FIELDS_TABLE;
|
||||
|
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
@@ -8,7 +10,6 @@ if (!defined('ABSPATH')) exit;
|
||||
* @property string|array $body
|
||||
* @property string $name
|
||||
*/
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Form extends Model {
|
||||
public static $_table = MP_FORMS_TABLE;
|
||||
|
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace MailPoet\Models;
|
||||
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
@@ -112,7 +114,6 @@ if (!defined('ABSPATH')) exit;
|
||||
* @property string|null $updated_at
|
||||
* @property string|null $id
|
||||
*/
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Model extends \Sudzy\ValidModel {
|
||||
const DUPLICATE_RECORD = 23000;
|
||||
|
@@ -8,6 +8,7 @@ use MailPoet\Util\Helpers;
|
||||
use MailPoet\Util\Security;
|
||||
use MailPoet\WP\Emoji;
|
||||
use function MailPoet\Util\array_column;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
@@ -29,7 +30,6 @@ if (!defined('ABSPATH')) exit;
|
||||
* @property string $body
|
||||
* @property string|null $schedule
|
||||
*/
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Newsletter extends Model {
|
||||
public static $_table = MP_NEWSLETTERS_TABLE;
|
||||
|
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
namespace MailPoet\Models;
|
||||
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
@@ -9,7 +11,6 @@ if (!defined('ABSPATH')) exit;
|
||||
* @property string $type
|
||||
* @property string $description
|
||||
*/
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Segment extends Model {
|
||||
static $_table = MP_SEGMENTS_TABLE;
|
||||
|
@@ -4,6 +4,7 @@ namespace MailPoet\Models;
|
||||
use MailPoet\Util\Helpers;
|
||||
use MailPoet\WP\Emoji;
|
||||
use MailPoet\Tasks\Subscribers as TaskSubscribers;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
@@ -19,7 +20,6 @@ if (!defined('ABSPATH')) exit;
|
||||
* @property string|array $subscribers
|
||||
* @property string|null $deleted_at
|
||||
*/
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class SendingQueue extends Model {
|
||||
public static $_table = MP_SENDING_QUEUES_TABLE;
|
||||
|
@@ -5,6 +5,7 @@ use MailPoet\Settings\SettingsController;
|
||||
use MailPoet\Subscribers\ConfirmationEmailMailer;
|
||||
use MailPoet\Util\Helpers;
|
||||
use function MailPoet\Util\array_column;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
@@ -26,7 +27,6 @@ if (!defined('ABSPATH')) exit;
|
||||
* @property string $unconfirmed_data
|
||||
* @property int $is_woocommerce_user
|
||||
*/
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Subscriber extends Model {
|
||||
public static $_table = MP_SUBSCRIBERS_TABLE;
|
||||
|
Reference in New Issue
Block a user