diff --git a/lib/Models/Model.php b/lib/Models/Model.php index 83792a8ebd..b00a0dc3f2 100644 --- a/lib/Models/Model.php +++ b/lib/Models/Model.php @@ -157,4 +157,4 @@ class Model extends \Sudzy\ValidModel { static function getTrashed() { return static::whereNotNull('deleted_at'); } -} \ No newline at end of file +} diff --git a/lib/Models/NewsletterLink.php b/lib/Models/NewsletterLink.php index ea60d8c10d..661858455a 100644 --- a/lib/Models/NewsletterLink.php +++ b/lib/Models/NewsletterLink.php @@ -5,8 +5,4 @@ if(!defined('ABSPATH')) exit; class NewsletterLink extends Model { public static $_table = MP_NEWSLETTER_LINKS_TABLE; - - function __construct() { - parent::__construct(); - } } diff --git a/lib/Models/NewsletterOption.php b/lib/Models/NewsletterOption.php index 43f3770872..6d21aa2630 100644 --- a/lib/Models/NewsletterOption.php +++ b/lib/Models/NewsletterOption.php @@ -5,8 +5,4 @@ if(!defined('ABSPATH')) exit; class NewsletterOption extends Model { public static $_table = MP_NEWSLETTER_OPTION_TABLE; - - function __construct() { - parent::__construct(); - } } diff --git a/lib/Models/NewsletterPost.php b/lib/Models/NewsletterPost.php index ac8aafa2e1..706ac3845c 100644 --- a/lib/Models/NewsletterPost.php +++ b/lib/Models/NewsletterPost.php @@ -5,8 +5,4 @@ if(!defined('ABSPATH')) exit; class NewsletterPost extends Model { public static $_table = MP_NEWSLETTER_POSTS_TABLE; - - function __construct() { - parent::__construct(); - } } diff --git a/lib/Models/NewsletterSegment.php b/lib/Models/NewsletterSegment.php index 4b48c42baf..23a573bb89 100644 --- a/lib/Models/NewsletterSegment.php +++ b/lib/Models/NewsletterSegment.php @@ -5,8 +5,4 @@ if(!defined('ABSPATH')) exit; class NewsletterSegment extends Model { public static $_table = MP_NEWSLETTER_SEGMENT_TABLE; - - function __construct() { - parent::__construct(); - } } diff --git a/lib/Models/SendingQueue.php b/lib/Models/SendingQueue.php index 1e479d16e8..9c4e5b54ed 100644 --- a/lib/Models/SendingQueue.php +++ b/lib/Models/SendingQueue.php @@ -10,10 +10,6 @@ class SendingQueue extends Model { const STATUS_SCHEDULED = 'scheduled'; const STATUS_PAUSED = 'paused'; - function __construct() { - parent::__construct(); - } - function pause() { if($this->count_processed === $this->count_total) { return false; @@ -39,4 +35,4 @@ class SendingQueue extends Model { $this->save(); return ($this->getErrors() === false && $this->id() > 0); } -} \ No newline at end of file +} diff --git a/lib/Models/StatisticsClicks.php b/lib/Models/StatisticsClicks.php index c30e2db0d0..e7b2c8a853 100644 --- a/lib/Models/StatisticsClicks.php +++ b/lib/Models/StatisticsClicks.php @@ -5,8 +5,4 @@ if(!defined('ABSPATH')) exit; class StatisticsClicks extends Model { public static $_table = MP_STATISTICS_CLICKS_TABLE; - - function __construct() { - parent::__construct(); - } -} \ No newline at end of file +} diff --git a/lib/Models/StatisticsForms.php b/lib/Models/StatisticsForms.php index 37f822940f..9eda6a5740 100644 --- a/lib/Models/StatisticsForms.php +++ b/lib/Models/StatisticsForms.php @@ -6,10 +6,6 @@ if(!defined('ABSPATH')) exit; class StatisticsForms extends Model { public static $_table = MP_STATISTICS_FORMS_TABLE; - function __construct() { - parent::__construct(); - } - public static function record($form_id, $subscriber_id) { if($form_id > 0 && $subscriber_id > 0) { // check if we already have a record for today @@ -30,4 +26,4 @@ class StatisticsForms extends Model { } return false; } -} \ No newline at end of file +} diff --git a/lib/Models/StatisticsNewsletters.php b/lib/Models/StatisticsNewsletters.php index 1d838c9029..4435e220b4 100644 --- a/lib/Models/StatisticsNewsletters.php +++ b/lib/Models/StatisticsNewsletters.php @@ -6,10 +6,6 @@ if(!defined('ABSPATH')) exit; class StatisticsNewsletters extends Model { public static $_table = MP_STATISTICS_NEWSLETTERS_TABLE; - function __construct() { - parent::__construct(); - } - static function createMultiple(array $data) { $values = array(); foreach($data as $value) { @@ -33,4 +29,4 @@ class StatisticsNewsletters extends Model { $values ); } -} \ No newline at end of file +} diff --git a/lib/Models/StatisticsOpens.php b/lib/Models/StatisticsOpens.php index 3d3786e9db..bc4e0cad23 100644 --- a/lib/Models/StatisticsOpens.php +++ b/lib/Models/StatisticsOpens.php @@ -5,8 +5,4 @@ if(!defined('ABSPATH')) exit; class StatisticsOpens extends Model { public static $_table = MP_STATISTICS_OPENS_TABLE; - - function __construct() { - parent::__construct(); - } -} \ No newline at end of file +} diff --git a/lib/Models/StatisticsUnsubscribes.php b/lib/Models/StatisticsUnsubscribes.php index 9d2fa1f5af..8fba1de00a 100644 --- a/lib/Models/StatisticsUnsubscribes.php +++ b/lib/Models/StatisticsUnsubscribes.php @@ -5,8 +5,4 @@ if(!defined('ABSPATH')) exit; class StatisticsUnsubscribes extends Model { public static $_table = MP_STATISTICS_UNSUBSCRIBES_TABLE; - - function __construct() { - parent::__construct(); - } -} \ No newline at end of file +} diff --git a/lib/Models/SubscriberCustomField.php b/lib/Models/SubscriberCustomField.php index cf0dce2eff..8d5eb70729 100644 --- a/lib/Models/SubscriberCustomField.php +++ b/lib/Models/SubscriberCustomField.php @@ -8,10 +8,6 @@ if(!defined('ABSPATH')) exit; class SubscriberCustomField extends Model { public static $_table = MP_SUBSCRIBER_CUSTOM_FIELD_TABLE; - function __construct() { - parent::__construct(); - } - static function createOrUpdate($data = array()) { $custom_field = CustomField::findOne($data['custom_field_id']); if($custom_field === false) { @@ -90,4 +86,4 @@ class SubscriberCustomField extends Model { Helpers::flattenArray($values) ); } -} \ No newline at end of file +} diff --git a/lib/Models/SubscriberSegment.php b/lib/Models/SubscriberSegment.php index 5bcbf894de..b93bae091b 100644 --- a/lib/Models/SubscriberSegment.php +++ b/lib/Models/SubscriberSegment.php @@ -8,10 +8,6 @@ if(!defined('ABSPATH')) exit; class SubscriberSegment extends Model { public static $_table = MP_SUBSCRIBER_SEGMENT_TABLE; - function __construct() { - parent::__construct(); - } - function subscriber() { return $this->has_one(__NAMESPACE__.'\Subscriber', 'id', 'subscriber_id'); } @@ -178,4 +174,4 @@ class SubscriberSegment extends Model { return $subscription->save(); } -} \ No newline at end of file +}