Add rule for operator spacing

[MAILPOET-2090]
This commit is contained in:
Pavel Dohnal
2019-05-20 13:57:13 +02:00
committed by M. Shull
parent 5da7110eb6
commit 12ff88ee21
39 changed files with 167 additions and 162 deletions

View File

@@ -1077,7 +1077,7 @@ class MP2Migrator {
$sending_emails_number = isset($options['sending_emails_number']) ? $options['sending_emails_number'] : '';
$sending_emails_each = isset($options['sending_emails_each']) ? $options['sending_emails_each'] : '';
$mta['frequency']['emails'] = $this->mapFrequencyEmails($sending_emails_number, $sending_emails_each);
$mta['frequency']['interval'] = $this->mapFrequencyInterval($sending_emails_each);
$mta['frequency']['interval'] = $this->mapFrequencyInterval($sending_emails_each);
$mta['host'] = isset($options['smtp_host']) ? $options['smtp_host'] : '';
$mta['port'] = isset($options['smtp_port']) ? $options['smtp_port'] : '';
$mta['login'] = isset($options['smtp_login']) ? $options['smtp_login'] : '';

View File

@@ -655,9 +655,9 @@ class Menu {
$data['segments'] = $segments;
$data['settings'] = $this->settings->getAll();
$data['mss_active'] = Bridge::isMPSendingServiceEnabled();
$data['current_wp_user'] = $this->wp->wpGetCurrentUser()->to_array();
$data['current_wp_user_firstname'] = $this->wp->wpGetCurrentUser()->user_firstname;
$data['site_url'] = $this->wp->siteUrl();
$data['current_wp_user'] = $this->wp->wpGetCurrentUser()->to_array();
$data['current_wp_user_firstname'] = $this->wp->wpGetCurrentUser()->user_firstname;
$data['site_url'] = $this->wp->siteUrl();
$data['roles'] = $wp_roles->get_names();
$data['roles']['mailpoet_all'] = $this->wp->__('In any WordPress role', 'mailpoet');
@@ -673,7 +673,7 @@ class Menu {
24
);
$data['mailpoet_main_page'] = $this->wp->adminUrl('admin.php?page=' . self::MAIN_PAGE_SLUG);
$data['show_congratulate_after_first_newsletter'] = isset($data['settings']['show_congratulate_after_first_newsletter'])?$data['settings']['show_congratulate_after_first_newsletter']:'false';
$data['show_congratulate_after_first_newsletter'] = isset($data['settings']['show_congratulate_after_first_newsletter']) ? $data['settings']['show_congratulate_after_first_newsletter'] : 'false';
$data['tracking_enabled'] = $this->settings->get('tracking.enabled');
$data['premium_plugin_active'] = License::getLicense();

View File

@@ -153,7 +153,7 @@ class Migrator {
}
function scheduledTaskSubscribers() {
$attributes = [
$attributes = [
'task_id int(11) unsigned NOT NULL,',
'subscriber_id int(11) unsigned NOT NULL,',
'processed int(1) NOT NULL,',

View File

@@ -226,7 +226,7 @@ class Populator {
$sender = $this->settings->fetch('sender', []);
$this->settings->set('subscriber_email_notification', [
'enabled' => true,
'address' => isset($sender['address'])? $sender['address'] : null,
'address' => isset($sender['address']) ? $sender['address'] : null,
]);
}
@@ -235,7 +235,7 @@ class Populator {
$sender = $this->settings->fetch('sender', []);
$this->settings->set('stats_notifications', [
'enabled' => true,
'address' => isset($sender['address'])? $sender['address'] : null,
'address' => isset($sender['address']) ? $sender['address'] : null,
]);
}

View File

@@ -711,7 +711,7 @@ class Charity {
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
@@ -721,7 +721,7 @@ class Charity {
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
@@ -731,7 +731,7 @@ class Charity {
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png',
'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
@@ -1080,7 +1080,7 @@ class Charity {
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/01-social/Facebook.png',
'image' => $this->social_icon_url . '/01-social/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
@@ -1090,7 +1090,7 @@ class Charity {
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/01-social/Twitter.png',
'image' => $this->social_icon_url . '/01-social/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',

View File

@@ -86,7 +86,7 @@ class PieceOfCake {
2 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Restaurant-Bakery-Logo-1.png',
'src' => $this->template_image_url . '/Restaurant-Bakery-Logo-1.png',
'alt' => 'Restaurant-Bakery-Logo-1',
'fullWidth' => true,
'width' => '1280px',
@@ -109,7 +109,7 @@ class PieceOfCake {
4 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Restaurant-Bakery-Header.jpg',
'src' => $this->template_image_url . '/Restaurant-Bakery-Header.jpg',
'alt' => 'Restaurant-Bakery-Header',
'fullWidth' => true,
'width' => '1280px',