Completed
Branch BUG-8866-category-permalink (0af2d2)
by
unknown
28:48 queued 12:15
created
message_type/newsletter/EE_Messages_Email_Newsletter_Validator.class.php 3 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,27 +18,27 @@
 block discarded – undo
18 18
  * @author          Darren Ethier
19 19
  */
20 20
 class EE_Messages_Email_Newsletter_Validator extends EE_Messages_Validator {
21
-    public function __construct( $fields, $context ) {
21
+    public function __construct($fields, $context) {
22 22
         $this->_m_name = 'email';
23 23
         $this->_mt_name = 'newsletter';
24 24
 
25
-        parent::__construct( $fields, $context );
25
+        parent::__construct($fields, $context);
26 26
     }
27 27
 
28 28
     /**
29 29
      * custom validator (restricting what was originally set by the messenger)
30 30
      */
31 31
     protected function _modify_validator() {
32
-        if ( $this->_context == 'attendee' )
32
+        if ($this->_context == 'attendee')
33 33
             $this->_valid_shortcodes_modifier[$this->_context]['from'] = array('recipient_details', 'email', 'organization');
34 34
 
35 35
         //excluded shortcodes
36
-        $fields = array('to','from','subject','content','newsletter_content');
37
-        foreach ( $fields as $field ) {
36
+        $fields = array('to', 'from', 'subject', 'content', 'newsletter_content');
37
+        foreach ($fields as $field) {
38 38
             $this->_specific_shortcode_excludes[$field] = array('[RECIPIENT_REGISTRATION_CODE]', '[RECIPIENT_EDIT_REGISTRATION_LINK]', '[EVENT_AUTHOR_FORMATTED_EMAIL]', '[EVENT_AUTHOR_EMAIL]');
39 39
         }
40
-        $add_excludes = array( '[RECIPIENT_FNAME]', '[RECIPIENT_LNAME]', '[RECIPIENT_EMAIL]', '[COMPANY]', '[CO_ADD1]','[CO_ADD2]', '[CO_CITY]', '[CO_STATE]','[CO_ZIP]','[CO_LOGO]','[CO_PHONE]','[CO_LOGO_URL]','[CO_FACEBOOK_URL]','[CO_TWITTER_URL]','[CO_PINTEREST_URL]','[CO_GOOGLE_URL]','[CO_LINKEDIN_URL]','[CO_INSTAGRAM_URL]');
40
+        $add_excludes = array('[RECIPIENT_FNAME]', '[RECIPIENT_LNAME]', '[RECIPIENT_EMAIL]', '[COMPANY]', '[CO_ADD1]', '[CO_ADD2]', '[CO_CITY]', '[CO_STATE]', '[CO_ZIP]', '[CO_LOGO]', '[CO_PHONE]', '[CO_LOGO_URL]', '[CO_FACEBOOK_URL]', '[CO_TWITTER_URL]', '[CO_PINTEREST_URL]', '[CO_GOOGLE_URL]', '[CO_LINKEDIN_URL]', '[CO_INSTAGRAM_URL]');
41 41
         $this->_specific_shortcode_excludes['from'] = array_merge($this->_specific_shortcode_excludes['from'], $add_excludes);
42
-        $this->_specific_shortcode_excludes['content'] = array_merge( $this->_specific_shortcode_excludes['content'], array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]') );
42
+        $this->_specific_shortcode_excludes['content'] = array_merge($this->_specific_shortcode_excludes['content'], array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]'));
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@  discard block
 block discarded – undo
5 5
  * @subpackage helpers
6 6
  * @since           4.3.0
7 7
  */
8
-if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
8
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
9
+	exit('No direct script access allowed');
10
+}
9 11
 
10 12
 /**
11 13
  * Holds any special validation rules for template fields with Email messenger and Newsletter
@@ -29,8 +31,9 @@  discard block
 block discarded – undo
29 31
      * custom validator (restricting what was originally set by the messenger)
30 32
      */
31 33
     protected function _modify_validator() {
32
-        if ( $this->_context == 'attendee' )
33
-            $this->_valid_shortcodes_modifier[$this->_context]['from'] = array('recipient_details', 'email', 'organization');
34
+        if ( $this->_context == 'attendee' ) {
35
+                    $this->_valid_shortcodes_modifier[$this->_context]['from'] = array('recipient_details', 'email', 'organization');
36
+        }
34 37
 
35 38
         //excluded shortcodes
36 39
         $fields = array('to','from','subject','content','newsletter_content');
Please login to merge, or discard this patch.
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -18,27 +18,27 @@
 block discarded – undo
18 18
  * @author          Darren Ethier
19 19
  */
20 20
 class EE_Messages_Email_Newsletter_Validator extends EE_Messages_Validator {
21
-    public function __construct( $fields, $context ) {
22
-        $this->_m_name = 'email';
23
-        $this->_mt_name = 'newsletter';
21
+	public function __construct( $fields, $context ) {
22
+		$this->_m_name = 'email';
23
+		$this->_mt_name = 'newsletter';
24 24
 
25
-        parent::__construct( $fields, $context );
26
-    }
25
+		parent::__construct( $fields, $context );
26
+	}
27 27
 
28
-    /**
29
-     * custom validator (restricting what was originally set by the messenger)
30
-     */
31
-    protected function _modify_validator() {
32
-        if ( $this->_context == 'attendee' )
33
-            $this->_valid_shortcodes_modifier[$this->_context]['from'] = array('recipient_details', 'email', 'organization');
28
+	/**
29
+	 * custom validator (restricting what was originally set by the messenger)
30
+	 */
31
+	protected function _modify_validator() {
32
+		if ( $this->_context == 'attendee' )
33
+			$this->_valid_shortcodes_modifier[$this->_context]['from'] = array('recipient_details', 'email', 'organization');
34 34
 
35
-        //excluded shortcodes
36
-        $fields = array('to','from','subject','content','newsletter_content');
37
-        foreach ( $fields as $field ) {
38
-            $this->_specific_shortcode_excludes[$field] = array('[RECIPIENT_REGISTRATION_CODE]', '[RECIPIENT_EDIT_REGISTRATION_LINK]', '[EVENT_AUTHOR_FORMATTED_EMAIL]', '[EVENT_AUTHOR_EMAIL]');
39
-        }
40
-        $add_excludes = array( '[RECIPIENT_FNAME]', '[RECIPIENT_LNAME]', '[RECIPIENT_EMAIL]', '[COMPANY]', '[CO_ADD1]','[CO_ADD2]', '[CO_CITY]', '[CO_STATE]','[CO_ZIP]','[CO_LOGO]','[CO_PHONE]','[CO_LOGO_URL]','[CO_FACEBOOK_URL]','[CO_TWITTER_URL]','[CO_PINTEREST_URL]','[CO_GOOGLE_URL]','[CO_LINKEDIN_URL]','[CO_INSTAGRAM_URL]');
41
-        $this->_specific_shortcode_excludes['from'] = array_merge($this->_specific_shortcode_excludes['from'], $add_excludes);
42
-        $this->_specific_shortcode_excludes['content'] = array_merge( $this->_specific_shortcode_excludes['content'], array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]') );
43
-    }
35
+		//excluded shortcodes
36
+		$fields = array('to','from','subject','content','newsletter_content');
37
+		foreach ( $fields as $field ) {
38
+			$this->_specific_shortcode_excludes[$field] = array('[RECIPIENT_REGISTRATION_CODE]', '[RECIPIENT_EDIT_REGISTRATION_LINK]', '[EVENT_AUTHOR_FORMATTED_EMAIL]', '[EVENT_AUTHOR_EMAIL]');
39
+		}
40
+		$add_excludes = array( '[RECIPIENT_FNAME]', '[RECIPIENT_LNAME]', '[RECIPIENT_EMAIL]', '[COMPANY]', '[CO_ADD1]','[CO_ADD2]', '[CO_CITY]', '[CO_STATE]','[CO_ZIP]','[CO_LOGO]','[CO_PHONE]','[CO_LOGO_URL]','[CO_FACEBOOK_URL]','[CO_TWITTER_URL]','[CO_PINTEREST_URL]','[CO_GOOGLE_URL]','[CO_LINKEDIN_URL]','[CO_INSTAGRAM_URL]');
41
+		$this->_specific_shortcode_excludes['from'] = array_merge($this->_specific_shortcode_excludes['from'], $add_excludes);
42
+		$this->_specific_shortcode_excludes['content'] = array_merge( $this->_specific_shortcode_excludes['content'], array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]') );
43
+	}
44 44
 }
Please login to merge, or discard this patch.
messages/message_type/newsletter/EE_Newsletter_message_type.class.php 3 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
 
49 49
 
50 50
 
51
-    protected function _get_data_for_context( $context, EE_Registration $registration, $id ) {
51
+    protected function _get_data_for_context($context, EE_Registration $registration, $id) {
52 52
         //newsletter message type data handler is 'Contacts' and it expects an array of EE_Attendee objects.
53 53
         $contact = $registration->attendee();
54
-        if ( $contact instanceof EE_Attendee ) {
55
-            return array( $contact );
54
+        if ($contact instanceof EE_Attendee) {
55
+            return array($contact);
56 56
         }
57 57
        return array();
58 58
     }
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
             'recipient_details', 'organization', 'newsletter'
100 100
             );
101 101
 
102
-        foreach ( $this->_valid_shortcodes as $context => $shortcodes ) {
103
-            foreach ( $shortcodes as $key => $shortcode ) {
104
-                if ( !in_array( $shortcode, $included_shortcodes ) )
105
-                    unset( $this->_valid_shortcodes[$context][$key] );
102
+        foreach ($this->_valid_shortcodes as $context => $shortcodes) {
103
+            foreach ($shortcodes as $key => $shortcode) {
104
+                if ( ! in_array($shortcode, $included_shortcodes))
105
+                    unset($this->_valid_shortcodes[$context][$key]);
106 106
             }
107 107
             $this->_valid_shortcodes[$context][] = 'newsletter';
108 108
         }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@  discard block
 block discarded – undo
5 5
  * @subpackage helpers
6 6
  * @since           4.3.0
7 7
  */
8
-if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
8
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
9
+	exit('No direct script access allowed');
10
+}
9 11
 
10 12
 /**
11 13
  * The message type for newsletter type of messages.
@@ -101,8 +103,9 @@  discard block
 block discarded – undo
101 103
 
102 104
         foreach ( $this->_valid_shortcodes as $context => $shortcodes ) {
103 105
             foreach ( $shortcodes as $key => $shortcode ) {
104
-                if ( !in_array( $shortcode, $included_shortcodes ) )
105
-                    unset( $this->_valid_shortcodes[$context][$key] );
106
+                if ( !in_array( $shortcode, $included_shortcodes ) ) {
107
+                                    unset( $this->_valid_shortcodes[$context][$key] );
108
+                }
106 109
             }
107 110
             $this->_valid_shortcodes[$context][] = 'newsletter';
108 111
         }
Please login to merge, or discard this patch.
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -20,94 +20,94 @@
 block discarded – undo
20 20
  */
21 21
 class EE_Newsletter_message_type extends EE_message_type {
22 22
 
23
-    public function __construct() {
24
-        $this->name = 'newsletter';
25
-        $this->description = __('Newsletter message types are triggered manually by the admin for sending mass email to select groups of registrants.', 'event_espresso');
26
-        $this->label = array(
27
-            'singular' => __('newsletter', 'event_espresso'),
28
-            'plural' => __('newsletters', 'event_espresso')
29
-            );
30
-        $this->_master_templates = array(
31
-            'email' => 'registration'
32
-            );
33
-        parent::__construct();
34
-    }
23
+	public function __construct() {
24
+		$this->name = 'newsletter';
25
+		$this->description = __('Newsletter message types are triggered manually by the admin for sending mass email to select groups of registrants.', 'event_espresso');
26
+		$this->label = array(
27
+			'singular' => __('newsletter', 'event_espresso'),
28
+			'plural' => __('newsletters', 'event_espresso')
29
+			);
30
+		$this->_master_templates = array(
31
+			'email' => 'registration'
32
+			);
33
+		parent::__construct();
34
+	}
35 35
 
36 36
 
37 37
 
38
-    protected function _set_admin_pages() {
39
-        $this->admin_registered_pages = array(); //no admin pages to register this with.
40
-    }
38
+	protected function _set_admin_pages() {
39
+		$this->admin_registered_pages = array(); //no admin pages to register this with.
40
+	}
41 41
 
42 42
 
43 43
 
44
-    protected function _set_data_handler() {
45
-        $this->_data_handler = 'Contacts';
46
-        $this->_single_message = $this->_data instanceof EE_Registration ? TRUE : FALSE;
47
-    }
44
+	protected function _set_data_handler() {
45
+		$this->_data_handler = 'Contacts';
46
+		$this->_single_message = $this->_data instanceof EE_Registration ? TRUE : FALSE;
47
+	}
48 48
 
49 49
 
50 50
 
51
-    protected function _get_data_for_context( $context, EE_Registration $registration, $id ) {
52
-        //newsletter message type data handler is 'Contacts' and it expects an array of EE_Attendee objects.
53
-        $contact = $registration->attendee();
54
-        if ( $contact instanceof EE_Attendee ) {
55
-            return array( $contact );
56
-        }
57
-       return array();
58
-    }
51
+	protected function _get_data_for_context( $context, EE_Registration $registration, $id ) {
52
+		//newsletter message type data handler is 'Contacts' and it expects an array of EE_Attendee objects.
53
+		$contact = $registration->attendee();
54
+		if ( $contact instanceof EE_Attendee ) {
55
+			return array( $contact );
56
+		}
57
+	   return array();
58
+	}
59 59
 
60 60
 
61 61
 
62
-    protected function _set_admin_settings_fields() {
63
-        $this->_admin_settings_fields = array();
64
-    }
62
+	protected function _set_admin_settings_fields() {
63
+		$this->_admin_settings_fields = array();
64
+	}
65 65
 
66 66
 
67 67
 
68
-    protected function _set_contexts() {
69
-        $this->_context_label = array(
70
-            'label' => __('recipient', 'event_espresso'),
71
-            'plural' => __('recipients', 'event_espresso'),
72
-            'description' => __('Recipient\'s are who will receive the message.', 'event_espresso')
73
-            );
68
+	protected function _set_contexts() {
69
+		$this->_context_label = array(
70
+			'label' => __('recipient', 'event_espresso'),
71
+			'plural' => __('recipients', 'event_espresso'),
72
+			'description' => __('Recipient\'s are who will receive the message.', 'event_espresso')
73
+			);
74 74
 
75
-        $this->_contexts = array(
76
-            'attendee' => array(
77
-                'label' => __('Registrant', 'event_espresso'),
78
-                'description' => __('This template goes to selected registrants.', 'event_espresso')
79
-                )
80
-            );
81
-    }
75
+		$this->_contexts = array(
76
+			'attendee' => array(
77
+				'label' => __('Registrant', 'event_espresso'),
78
+				'description' => __('This template goes to selected registrants.', 'event_espresso')
79
+				)
80
+			);
81
+	}
82 82
 
83 83
 
84 84
 
85 85
 
86
-    /**
87
-     * used to set the valid shortcodes.
88
-     *
89
-     * For the newsletter message type we only have two valid shortcode libraries in use, recipient details and organization.  That's it!
90
-     *
91
-     * @since   4.3.0
92
-     *
93
-     * @return  void
94
-     */
95
-    protected function _set_valid_shortcodes() {
96
-        parent::_set_valid_shortcodes();
86
+	/**
87
+	 * used to set the valid shortcodes.
88
+	 *
89
+	 * For the newsletter message type we only have two valid shortcode libraries in use, recipient details and organization.  That's it!
90
+	 *
91
+	 * @since   4.3.0
92
+	 *
93
+	 * @return  void
94
+	 */
95
+	protected function _set_valid_shortcodes() {
96
+		parent::_set_valid_shortcodes();
97 97
 
98
-        $included_shortcodes = array(
99
-            'recipient_details', 'organization', 'newsletter'
100
-            );
98
+		$included_shortcodes = array(
99
+			'recipient_details', 'organization', 'newsletter'
100
+			);
101 101
 
102
-        foreach ( $this->_valid_shortcodes as $context => $shortcodes ) {
103
-            foreach ( $shortcodes as $key => $shortcode ) {
104
-                if ( !in_array( $shortcode, $included_shortcodes ) )
105
-                    unset( $this->_valid_shortcodes[$context][$key] );
106
-            }
107
-            $this->_valid_shortcodes[$context][] = 'newsletter';
108
-        }
102
+		foreach ( $this->_valid_shortcodes as $context => $shortcodes ) {
103
+			foreach ( $shortcodes as $key => $shortcode ) {
104
+				if ( !in_array( $shortcode, $included_shortcodes ) )
105
+					unset( $this->_valid_shortcodes[$context][$key] );
106
+			}
107
+			$this->_valid_shortcodes[$context][] = 'newsletter';
108
+		}
109 109
 
110
-    }
110
+	}
111 111
 
112 112
 
113 113
 }
Please login to merge, or discard this patch.
payment_cancelled/EE_Messages_Email_Payment_Cancelled_Validator.class.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
 class EE_Messages_Email_Payment_Cancelled_Validator extends EE_Messages_Validator {
19 19
 
20 20
 
21
-	public function __construct( $fields, $context ) {
21
+	public function __construct($fields, $context) {
22 22
 		$this->_m_name = 'email';
23 23
 		$this->_mt_name = 'payment_cancelled';
24 24
 
25
-		parent::__construct( $fields, $context );
25
+		parent::__construct($fields, $context);
26 26
 	}
27 27
 
28 28
 	/**
@@ -33,17 +33,17 @@  discard block
 block discarded – undo
33 33
 
34 34
 		//modify just event_list
35 35
 		$new_config['event_list'] = array(
36
-			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization','recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
36
+			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
37 37
 			);
38 38
 		$new_config['ticket_list'] = array(
39 39
 			'shortcodes' => array('event_list', 'attendee_list', 'ticket', 'datetime_list', 'recipient_details', 'transaction')
40 40
 			);
41 41
 		$new_config['content'] = array(
42
-			'shortcodes' => array('event_list','attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
42
+			'shortcodes' => array('event_list', 'attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
43 43
 			);
44
-		$this->_MSGR->set_validator_config( $new_config );
44
+		$this->_MSGR->set_validator_config($new_config);
45 45
 
46
-		if ( $this->_context != 'admin' )
46
+		if ($this->_context != 'admin')
47 47
 			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
48 48
 
49 49
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * EE_Messages_Email_Payment_Cancelled_Validator class
@@ -43,8 +44,9 @@  discard block
 block discarded – undo
43 44
 			);
44 45
 		$this->_MSGR->set_validator_config( $new_config );
45 46
 
46
-		if ( $this->_context != 'admin' )
47
-			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
47
+		if ( $this->_context != 'admin' ) {
48
+					$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
49
+		}
48 50
 
49 51
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
50 52
 	}
Please login to merge, or discard this patch.
message_type/payment_cancelled/EE_Payment_Cancelled_message_type.class.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * EE_Payment_Cancelled_message_type extends EE_message_type
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
payment_declined/EE_Messages_Email_Payment_Declined_Validator.class.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
 class EE_Messages_Email_Payment_Declined_Validator extends EE_Messages_Validator {
31 31
 
32 32
 
33
-	public function __construct( $fields, $context ) {
33
+	public function __construct($fields, $context) {
34 34
 		$this->_m_name = 'email';
35 35
 		$this->_mt_name = 'payment_declined';
36 36
 
37
-		parent::__construct( $fields, $context );
37
+		parent::__construct($fields, $context);
38 38
 	}
39 39
 
40 40
 	/**
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
 
46 46
 		//modify just event_list
47 47
 		$new_config['event_list'] = array(
48
-			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization','recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
48
+			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
49 49
 			);
50 50
 		$new_config['ticket_list'] = array(
51 51
 			'shortcodes' => array('event_list', 'attendee_list', 'ticket', 'datetime_list', 'recipient_details', 'transaction')
52 52
 			);
53 53
 		$new_config['content'] = array(
54
-			'shortcodes' => array('event_list','attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
54
+			'shortcodes' => array('event_list', 'attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
55 55
 			);
56
-		$this->_MSGR->set_validator_config( $new_config );
56
+		$this->_MSGR->set_validator_config($new_config);
57 57
 
58
-		if ( $this->_context != 'admin' )
58
+		if ($this->_context != 'admin')
59 59
 			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
60 60
 
61 61
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * Event Espresso
@@ -48,8 +49,9 @@  discard block
 block discarded – undo
48 49
 			);
49 50
 		$this->_MSGR->set_validator_config( $new_config );
50 51
 
51
-		if ( $this->_context != 'admin' )
52
-			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
52
+		if ( $this->_context != 'admin' ) {
53
+					$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
54
+		}
53 55
 
54 56
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
55 57
 	}
Please login to merge, or discard this patch.
payment_failed/EE_Messages_Email_Payment_Failed_Validator.class.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
 class EE_Messages_Email_Payment_Failed_Validator extends EE_Messages_Validator {
19 19
 
20 20
 
21
-	public function __construct( $fields, $context ) {
21
+	public function __construct($fields, $context) {
22 22
 		$this->_m_name = 'email';
23 23
 		$this->_mt_name = 'payment_failed';
24 24
 
25
-		parent::__construct( $fields, $context );
25
+		parent::__construct($fields, $context);
26 26
 	}
27 27
 
28 28
 	/**
@@ -33,17 +33,17 @@  discard block
 block discarded – undo
33 33
 
34 34
 		//modify just event_list
35 35
 		$new_config['event_list'] = array(
36
-			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization','recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
36
+			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
37 37
 			);
38 38
 		$new_config['ticket_list'] = array(
39 39
 			'shortcodes' => array('event_list', 'attendee_list', 'ticket', 'datetime_list', 'recipient_details', 'transaction')
40 40
 			);
41 41
 		$new_config['content'] = array(
42
-			'shortcodes' => array('event_list','attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
42
+			'shortcodes' => array('event_list', 'attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
43 43
 			);
44
-		$this->_MSGR->set_validator_config( $new_config );
44
+		$this->_MSGR->set_validator_config($new_config);
45 45
 
46
-		if ( $this->_context != 'admin' )
46
+		if ($this->_context != 'admin')
47 47
 			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
48 48
 
49 49
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * EE_Messages_Email_Payment_Failed_Validator class
@@ -43,8 +44,9 @@  discard block
 block discarded – undo
43 44
 			);
44 45
 		$this->_MSGR->set_validator_config( $new_config );
45 46
 
46
-		if ( $this->_context != 'admin' )
47
-			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
47
+		if ( $this->_context != 'admin' ) {
48
+					$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
49
+		}
48 50
 
49 51
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
50 52
 	}
Please login to merge, or discard this patch.
message_type/payment_failed/EE_Payment_Failed_message_type.class.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * EE_Payment_Failed_message_type extends EE_message_type
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
payment_reminder/EE_Messages_Email_Payment_Reminder_Validator.class.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
 class EE_Messages_Email_Payment_Reminder_Validator extends EE_Messages_Validator {
31 31
 
32 32
 
33
-	public function __construct( $fields, $context ) {
33
+	public function __construct($fields, $context) {
34 34
 		$this->_m_name = 'email';
35 35
 		$this->_mt_name = 'payment_reminder';
36 36
 
37
-		parent::__construct( $fields, $context );
37
+		parent::__construct($fields, $context);
38 38
 	}
39 39
 
40 40
 	/**
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
 
46 46
 		//modify just event_list
47 47
 		$new_config['event_list'] = array(
48
-			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization','recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
48
+			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
49 49
 			);
50 50
 		$new_config['ticket_list'] = array(
51 51
 			'shortcodes' => array('event_list', 'attendee_list', 'ticket', 'datetime_list', 'recipient_details', 'transaction')
52 52
 			);
53 53
 		$new_config['content'] = array(
54
-			'shortcodes' => array('event_list','attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
54
+			'shortcodes' => array('event_list', 'attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
55 55
 			);
56
-		$this->_MSGR->set_validator_config( $new_config );
56
+		$this->_MSGR->set_validator_config($new_config);
57 57
 
58
-		if ( $this->_context != 'admin' )
58
+		if ($this->_context != 'admin')
59 59
 			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
60 60
 
61 61
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * Event Espresso
@@ -48,8 +49,9 @@  discard block
 block discarded – undo
48 49
 			);
49 50
 		$this->_MSGR->set_validator_config( $new_config );
50 51
 
51
-		if ( $this->_context != 'admin' )
52
-			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
52
+		if ( $this->_context != 'admin' ) {
53
+					$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
54
+		}
53 55
 
54 56
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
55 57
 	}
Please login to merge, or discard this patch.
caffeinated/core/libraries/shortcodes/EE_Newsletter_Shortcodes.lib.php 3 patches
Indentation   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -20,82 +20,82 @@
 block discarded – undo
20 20
  */
21 21
 class EE_Newsletter_Shortcodes extends EE_Shortcodes {
22 22
 
23
-    protected function _init_props() {
24
-        $this->label = __("Newsletter Shortcodes", 'event_espresso');
25
-        $this->description = __('All shortcodes used for the newsletter message type', 'event_espresso');
26
-        $this->_shortcodes = array(
27
-            '[NEWSLETTER_CONTENT]' => __('This will parse to whatever is found in the related [newsletter_content] field.  Note that when triggering a newsletter message, whatever is added for the custom message will be inserted where this shortcode is placed', 'event_espresso')
28
-            );
29
-    }
23
+	protected function _init_props() {
24
+		$this->label = __("Newsletter Shortcodes", 'event_espresso');
25
+		$this->description = __('All shortcodes used for the newsletter message type', 'event_espresso');
26
+		$this->_shortcodes = array(
27
+			'[NEWSLETTER_CONTENT]' => __('This will parse to whatever is found in the related [newsletter_content] field.  Note that when triggering a newsletter message, whatever is added for the custom message will be inserted where this shortcode is placed', 'event_espresso')
28
+			);
29
+	}
30 30
 
31 31
 
32 32
 
33
-    protected function _parser( $shortcode ) {
34
-        if ( $shortcode == '[NEWSLETTER_CONTENT]' ) {
35
-            $this->_validate_list_requirements();
36
-            $this->_set_shortcode_helper();
37
-            $valid_shortcodes = array('recipient_details', 'organization');
38
-            $template = $this->_data['template']['newsletter_content'];
39
-            $data = $this->_data;
40
-            return $this->_shortcode_helper->parse_message_template( $template, $data['data'], $valid_shortcodes, $this->_message_type, $this->_messenger, $this->_context, $this->_GRP_ID );
41
-        }
42
-    }
33
+	protected function _parser( $shortcode ) {
34
+		if ( $shortcode == '[NEWSLETTER_CONTENT]' ) {
35
+			$this->_validate_list_requirements();
36
+			$this->_set_shortcode_helper();
37
+			$valid_shortcodes = array('recipient_details', 'organization');
38
+			$template = $this->_data['template']['newsletter_content'];
39
+			$data = $this->_data;
40
+			return $this->_shortcode_helper->parse_message_template( $template, $data['data'], $valid_shortcodes, $this->_message_type, $this->_messenger, $this->_context, $this->_GRP_ID );
41
+		}
42
+	}
43 43
 
44 44
 
45
-    /**
46
-     * Callback set in args for EE_Register_Messages_Shortcode_Library::register for 'msgr_validator_callback'.
47
-     *
48
-     * EE_Register_Messages_Shortcode_Library::register registers this callback with the
49
-     * 'FHEE__EE_messenger__get_validator_config' filter.
50
-     *
51
-     * @since    4.3.0
52
-     * @param  array                $validator_config  current validator configuration array
53
-     * @param  EE_messenger  $messenger
54
-     * @return  array                                             new validator config.
55
-     */
56
-    public static function messenger_validator_config( $validator_config, EE_messenger $messenger ) {
57
-        if ( $messenger->name !== 'email' )
58
-            return $validator_config;
45
+	/**
46
+	 * Callback set in args for EE_Register_Messages_Shortcode_Library::register for 'msgr_validator_callback'.
47
+	 *
48
+	 * EE_Register_Messages_Shortcode_Library::register registers this callback with the
49
+	 * 'FHEE__EE_messenger__get_validator_config' filter.
50
+	 *
51
+	 * @since    4.3.0
52
+	 * @param  array                $validator_config  current validator configuration array
53
+	 * @param  EE_messenger  $messenger
54
+	 * @return  array                                             new validator config.
55
+	 */
56
+	public static function messenger_validator_config( $validator_config, EE_messenger $messenger ) {
57
+		if ( $messenger->name !== 'email' )
58
+			return $validator_config;
59 59
 
60
-        $validator_config['content']['shortcodes'][] = 'newsletter';
61
-        $validator_config['newsletter_content'] = array(
62
-            'shortcodes' => array('recipient_details', 'organization'),
63
-            'required' => array('[NEWSLETTER_CONTENT]')
64
-            );
65
-        return $validator_config;
66
-    }
60
+		$validator_config['content']['shortcodes'][] = 'newsletter';
61
+		$validator_config['newsletter_content'] = array(
62
+			'shortcodes' => array('recipient_details', 'organization'),
63
+			'required' => array('[NEWSLETTER_CONTENT]')
64
+			);
65
+		return $validator_config;
66
+	}
67 67
 
68 68
 
69 69
 
70 70
 
71
-    /**
72
-     * Callback set in args for EE_Register_Messages_Shortcode_Library::register for
73
-     * 'msgr_template_fields_callback'.
74
-     *
75
-     * EE_Register_Messages_Shortcode_Library::register registers this callback with the
76
-     * FHEE__EE_messenger__get_template_fields filter.
77
-     *
78
-     * @since    4.3.0
79
-     *
80
-     * @param  array                $template_fields current template fields setup array.
81
-     * @param  EE_messenger  $messenger
82
-     * @return  array                                           new/modified template fields array.
83
-     */
84
-    public static function messenger_template_fields( $template_fields, EE_messenger $messenger ) {
85
-        if ( $messenger->name !== 'email' )
86
-            return $template_fields;
71
+	/**
72
+	 * Callback set in args for EE_Register_Messages_Shortcode_Library::register for
73
+	 * 'msgr_template_fields_callback'.
74
+	 *
75
+	 * EE_Register_Messages_Shortcode_Library::register registers this callback with the
76
+	 * FHEE__EE_messenger__get_template_fields filter.
77
+	 *
78
+	 * @since    4.3.0
79
+	 *
80
+	 * @param  array                $template_fields current template fields setup array.
81
+	 * @param  EE_messenger  $messenger
82
+	 * @return  array                                           new/modified template fields array.
83
+	 */
84
+	public static function messenger_template_fields( $template_fields, EE_messenger $messenger ) {
85
+		if ( $messenger->name !== 'email' )
86
+			return $template_fields;
87 87
 
88
-        $template_fields['extra']['content']['newsletter_content'] = array(
89
-            'input' => 'wp_editor',
90
-            'label' => '[NEWSLETTER_CONTENT]',
91
-            'type' => 'string',
92
-            'required' => TRUE,
93
-            'validation' => TRUE,
94
-            'format' => '%s',
95
-            'rows' => '15',
96
-            'shortcodes_required' => array('[NEWSLETTER_CONTENT]')
97
-            );
98
-        return $template_fields;
99
-    }
88
+		$template_fields['extra']['content']['newsletter_content'] = array(
89
+			'input' => 'wp_editor',
90
+			'label' => '[NEWSLETTER_CONTENT]',
91
+			'type' => 'string',
92
+			'required' => TRUE,
93
+			'validation' => TRUE,
94
+			'format' => '%s',
95
+			'rows' => '15',
96
+			'shortcodes_required' => array('[NEWSLETTER_CONTENT]')
97
+			);
98
+		return $template_fields;
99
+	}
100 100
 
101 101
 } //end class EE_Newsletter_Shortcodes
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
 
31 31
 
32 32
 
33
-    protected function _parser( $shortcode ) {
34
-        if ( $shortcode == '[NEWSLETTER_CONTENT]' ) {
33
+    protected function _parser($shortcode) {
34
+        if ($shortcode == '[NEWSLETTER_CONTENT]') {
35 35
             $this->_validate_list_requirements();
36 36
             $this->_set_shortcode_helper();
37 37
             $valid_shortcodes = array('recipient_details', 'organization');
38 38
             $template = $this->_data['template']['newsletter_content'];
39 39
             $data = $this->_data;
40
-            return $this->_shortcode_helper->parse_message_template( $template, $data['data'], $valid_shortcodes, $this->_message_type, $this->_messenger, $this->_context, $this->_GRP_ID );
40
+            return $this->_shortcode_helper->parse_message_template($template, $data['data'], $valid_shortcodes, $this->_message_type, $this->_messenger, $this->_context, $this->_GRP_ID);
41 41
         }
42 42
     }
43 43
 
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
      * @param  EE_messenger  $messenger
54 54
      * @return  array                                             new validator config.
55 55
      */
56
-    public static function messenger_validator_config( $validator_config, EE_messenger $messenger ) {
57
-        if ( $messenger->name !== 'email' )
56
+    public static function messenger_validator_config($validator_config, EE_messenger $messenger) {
57
+        if ($messenger->name !== 'email')
58 58
             return $validator_config;
59 59
 
60 60
         $validator_config['content']['shortcodes'][] = 'newsletter';
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
      * @param  EE_messenger  $messenger
82 82
      * @return  array                                           new/modified template fields array.
83 83
      */
84
-    public static function messenger_template_fields( $template_fields, EE_messenger $messenger ) {
85
-        if ( $messenger->name !== 'email' )
84
+    public static function messenger_template_fields($template_fields, EE_messenger $messenger) {
85
+        if ($messenger->name !== 'email')
86 86
             return $template_fields;
87 87
 
88 88
         $template_fields['extra']['content']['newsletter_content'] = array(
Please login to merge, or discard this patch.
Braces   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@  discard block
 block discarded – undo
5 5
  * @subpackage helpers
6 6
  * @since           4.3.0
7 7
  */
8
-if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
8
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
9
+	exit('No direct script access allowed');
10
+}
9 11
 
10 12
 /**
11 13
  * This is the library class for the "newsletter" group shortcodes.
@@ -54,8 +56,9 @@  discard block
 block discarded – undo
54 56
      * @return  array                                             new validator config.
55 57
      */
56 58
     public static function messenger_validator_config( $validator_config, EE_messenger $messenger ) {
57
-        if ( $messenger->name !== 'email' )
58
-            return $validator_config;
59
+        if ( $messenger->name !== 'email' ) {
60
+                    return $validator_config;
61
+        }
59 62
 
60 63
         $validator_config['content']['shortcodes'][] = 'newsletter';
61 64
         $validator_config['newsletter_content'] = array(
@@ -82,8 +85,9 @@  discard block
 block discarded – undo
82 85
      * @return  array                                           new/modified template fields array.
83 86
      */
84 87
     public static function messenger_template_fields( $template_fields, EE_messenger $messenger ) {
85
-        if ( $messenger->name !== 'email' )
86
-            return $template_fields;
88
+        if ( $messenger->name !== 'email' ) {
89
+                    return $template_fields;
90
+        }
87 91
 
88 92
         $template_fields['extra']['content']['newsletter_content'] = array(
89 93
             'input' => 'wp_editor',
Please login to merge, or discard this patch.