Completed
Branch models-cleanup/model-relations (db5ca7)
by
unknown
13:03 queued 08:35
created
templates/thank-you-page-registration-details.template.php 2 patches
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -9,22 +9,22 @@  discard block
 block discarded – undo
9 9
 
10 10
 <div class="ee-registration-details-dv">
11 11
     <?php
12
-    $registrations = $transaction->registrations();
13
-    $registrations = is_array($registrations) ? $registrations : array();
14
-    $reg_count = count($registrations);
15
-    $reg_cntr = 0;
16
-    $event_name = '';
17
-    $wait_list = false;
18
-    foreach ($registrations as $registration) {
19
-        if ($registration instanceof EE_Registration) {
20
-            if ($event_name != $registration->event_name() && ! empty($event_name)) { ?>
12
+	$registrations = $transaction->registrations();
13
+	$registrations = is_array($registrations) ? $registrations : array();
14
+	$reg_count = count($registrations);
15
+	$reg_cntr = 0;
16
+	$event_name = '';
17
+	$wait_list = false;
18
+	foreach ($registrations as $registration) {
19
+		if ($registration instanceof EE_Registration) {
20
+			if ($event_name != $registration->event_name() && ! empty($event_name)) { ?>
21 21
                 </tbody>
22 22
                 </table>
23 23
                 <?php
24
-            }
25
-            $reg_cntr++;
26
-            if ($event_name != $registration->event_name()) {
27
-                ?>
24
+			}
25
+			$reg_cntr++;
26
+			if ($event_name != $registration->event_name()) {
27
+				?>
28 28
                 <h5>
29 29
                     <span class="smaller-text grey-text"><?php _e('for', 'event_espresso'); ?>
30 30
                         : </span> <?php echo htmlentities($registration->event_name(), ENT_QUOTES, 'UTF-8'); ?>
@@ -45,48 +45,48 @@  discard block
 block discarded – undo
45 45
                 </thead>
46 46
                 <tbody>
47 47
                 <?php
48
-            }
49
-            if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
48
+			}
49
+			if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
50 50
                 <tr>
51 51
                     <td width="40%">
52 52
                         <?php
53
-                        if ($registration->attendee() instanceof EE_Attendee) {
54
-                            echo $registration->attendee()->full_name(true);
55
-                        }
56
-                        ?>
53
+						if ($registration->attendee() instanceof EE_Attendee) {
54
+							echo $registration->attendee()->full_name(true);
55
+						}
56
+						?>
57 57
                         <p class="tiny-text" style="margin: .75em 0 0;">
58 58
                             <?php
59
-                            if ($registration->count_question_groups()) {
60
-                                ?>
59
+							if ($registration->count_question_groups()) {
60
+								?>
61 61
                                 <a class="ee-icon-only-lnk"
62 62
                                    href="<?php echo $registration->edit_attendee_information_url(); ?>"
63 63
                                    title="<?php
64
-                                               esc_attr_e(
65
-                                                   'Click here to edit Attendee Information',
66
-                                                   'event_espresso'
67
-                                               ); ?>"><span class="ee-icon ee-icon-user-edit"></span>
64
+											   esc_attr_e(
65
+												   'Click here to edit Attendee Information',
66
+												   'event_espresso'
67
+											   ); ?>"><span class="ee-icon ee-icon-user-edit"></span>
68 68
                                     <?php
69
-                                    _e(
70
-                                        'edit info',
71
-                                        'event_espresso'
72
-                                    ); ?></a>
69
+									_e(
70
+										'edit info',
71
+										'event_espresso'
72
+									); ?></a>
73 73
                             <?php } ?>
74 74
                             <a class="ee-resend-reg-confirmation-email ee-icon-only-lnk"
75 75
                                href="<?php
76
-                                        echo add_query_arg(
77
-                                            array('token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'),
78
-                                            EE_Registry::instance()->CFG->core->thank_you_page_url()
79
-                                        ); ?>" title="<?php
80
-                                                        esc_attr_e(
81
-                                                            'Click here to resend the Registration Confirmation email',
82
-                                                            'event_espresso'
83
-                                                        ); ?>" rel="<?php echo $registration->reg_url_link(); ?>"><span
76
+										echo add_query_arg(
77
+											array('token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'),
78
+											EE_Registry::instance()->CFG->core->thank_you_page_url()
79
+										); ?>" title="<?php
80
+														esc_attr_e(
81
+															'Click here to resend the Registration Confirmation email',
82
+															'event_espresso'
83
+														); ?>" rel="<?php echo $registration->reg_url_link(); ?>"><span
84 84
                                                                 class="dashicons dashicons-email-alt"></span>
85 85
                                 <?php
86
-                                _e(
87
-                                    'resend email',
88
-                                    'event_espresso'
89
-                                ); ?></a>
86
+								_e(
87
+									'resend email',
88
+									'event_espresso'
89
+								); ?></a>
90 90
                         </p>
91 91
                     </td>
92 92
                     <td width="25%" class="jst-left">
@@ -95,53 +95,53 @@  discard block
 block discarded – undo
95 95
                     <td width="35%" class="jst-left">
96 96
                         <?php $registration->e_pretty_status(true) ?>
97 97
                         <?php
98
-                        if ($registration->status_ID() === EEM_Registration::status_id_wait_list) {
99
-                            $wait_list = true;
100
-                        }
101
-                        ?>
98
+						if ($registration->status_ID() === EEM_Registration::status_id_wait_list) {
99
+							$wait_list = true;
100
+						}
101
+						?>
102 102
                     </td>
103 103
                 </tr>
104 104
                 <?php do_action(
105
-                    'AHEE__thank_you_page_registration_details_template__after_registration_table_row',
106
-                    $registration
107
-                ); ?>
105
+					'AHEE__thank_you_page_registration_details_template__after_registration_table_row',
106
+					$registration
107
+				); ?>
108 108
                 <?php
109
-                $event_name = $registration->event_name();
110
-            }
111
-            if ($reg_cntr >= $reg_count) {
112
-                ?>
109
+				$event_name = $registration->event_name();
110
+			}
111
+			if ($reg_cntr >= $reg_count) {
112
+				?>
113 113
                 </tbody>
114 114
                 </table>
115 115
                 <?php
116
-            }
117
-        }
118
-    }
119
-    ?>
116
+			}
117
+		}
118
+	}
119
+	?>
120 120
     <?php if ($is_primary && $SPCO_attendee_information_url) { ?>
121 121
         <p class="small-text jst-rght">
122 122
             <a href='<?php echo $SPCO_attendee_information_url ?>'>
123 123
                 <?php
124
-                _e(
125
-                    "Click here to edit All Attendee Information",
126
-                    'event_espresso'
127
-                ); ?></a>
124
+				_e(
125
+					"Click here to edit All Attendee Information",
126
+					'event_espresso'
127
+				); ?></a>
128 128
         </p>
129 129
     <?php } ?>
130 130
     <?php if ($wait_list) { ?>
131 131
         <?php
132
-        echo apply_filters(
133
-            'AFEE__thank_you_page_registration_details_template__wait_list_notice',
134
-            sprintf(
135
-                __(
136
-                    '%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s',
137
-                    'event_espresso'
138
-                ),
139
-                '<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>',
140
-                '</h6 ><p class="ee-wait-list-notice">',
141
-                '</p ><br />'
142
-            )
143
-        );
144
-        ?>
132
+		echo apply_filters(
133
+			'AFEE__thank_you_page_registration_details_template__wait_list_notice',
134
+			sprintf(
135
+				__(
136
+					'%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s',
137
+					'event_espresso'
138
+				),
139
+				'<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>',
140
+				'</h6 ><p class="ee-wait-list-notice">',
141
+				'</p ><br />'
142
+			)
143
+		);
144
+		?>
145 145
     <?php } ?>
146 146
 
147 147
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 <tbody>
47 47
                 <?php
48 48
             }
49
-            if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
49
+            if ($is_primary || ( ! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
50 50
                 <tr>
51 51
                     <td width="40%">
52 52
                         <?php
Please login to merge, or discard this patch.
espresso_thank_you/templates/thank-you-page-payment-details.template.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 <div id="espresso-thank-you-page-payment-details-dv">
7 7
     <?php
8
-    if (! empty($payments)) { ?>
8
+	if (! empty($payments)) { ?>
9 9
         <table class="ee-table">
10 10
             <thead>
11 11
             <tr>
@@ -25,40 +25,40 @@  discard block
 block discarded – undo
25 25
             </thead>
26 26
             <tbody>
27 27
             <?php
28
-            foreach ($payments as $payment) {
29
-                echo $payment;
30
-            }
31
-            ?>
28
+			foreach ($payments as $payment) {
29
+				echo $payment;
30
+			}
31
+			?>
32 32
             </tbody>
33 33
         </table>
34 34
         <?php
35
-    } else {
36
-        if ($transaction->total()) {
37
-            echo apply_filters(
38
-                'FHEE__payment_overview_template__no_payments_made',
39
-                sprintf(
40
-                    __('%sNo payments towards this transaction have been received.%s', 'event_espresso'),
41
-                    '<p class="important-notice">',
42
-                    '</p>'
43
-                )
44
-            );
45
-            do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction);
46
-        } else {
47
-            echo apply_filters(
48
-                'FHEE__payment_overview_template__no_payment_required',
49
-                sprintf(
50
-                    __('%sNo payment is required for this transaction.%s', 'event_espresso'),
51
-                    '<p>',
52
-                    '</p>'
53
-                )
54
-            );
55
-            do_action('AHEE__thank_you_page_payment_details_template__no_payment_required');
56
-        }
57
-    }
58
-    echo $gateway_content;
59
-    do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content);
35
+	} else {
36
+		if ($transaction->total()) {
37
+			echo apply_filters(
38
+				'FHEE__payment_overview_template__no_payments_made',
39
+				sprintf(
40
+					__('%sNo payments towards this transaction have been received.%s', 'event_espresso'),
41
+					'<p class="important-notice">',
42
+					'</p>'
43
+				)
44
+			);
45
+			do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction);
46
+		} else {
47
+			echo apply_filters(
48
+				'FHEE__payment_overview_template__no_payment_required',
49
+				sprintf(
50
+					__('%sNo payment is required for this transaction.%s', 'event_espresso'),
51
+					'<p>',
52
+					'</p>'
53
+				)
54
+			);
55
+			do_action('AHEE__thank_you_page_payment_details_template__no_payment_required');
56
+		}
57
+	}
58
+	echo $gateway_content;
59
+	do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content);
60 60
 
61
-    ?>
61
+	?>
62 62
 
63 63
     <br/>
64 64
     <?php do_action('AHEE__thank_you_page_payment_details_template__after_payment_details'); ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 <div id="espresso-thank-you-page-payment-details-dv">
7 7
     <?php
8
-    if (! empty($payments)) { ?>
8
+    if ( ! empty($payments)) { ?>
9 9
         <table class="ee-table">
10 10
             <thead>
11 11
             <tr>
Please login to merge, or discard this patch.
shortcodes/espresso_cancelled/EES_Espresso_Cancelled.shortcode.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -11,55 +11,55 @@
 block discarded – undo
11 11
 class EES_Espresso_Cancelled extends EES_Shortcode
12 12
 {
13 13
 
14
-    /**
15
-     * @deprecated 4.9.27
16
-     * @return    void
17
-     */
18
-    public static function set_hooks()
19
-    {
20
-    }
14
+	/**
15
+	 * @deprecated 4.9.27
16
+	 * @return    void
17
+	 */
18
+	public static function set_hooks()
19
+	{
20
+	}
21 21
 
22 22
 
23 23
 
24
-    /**
25
-     * @deprecated 4.9.27
26
-     * @return    void
27
-     */
28
-    public static function set_hooks_admin()
29
-    {
30
-    }
24
+	/**
25
+	 * @deprecated 4.9.27
26
+	 * @return    void
27
+	 */
28
+	public static function set_hooks_admin()
29
+	{
30
+	}
31 31
 
32 32
 
33 33
 
34
-    /**
35
-     * @deprecated 4.9.27
36
-     * @param WP $WP
37
-     * @return    void
38
-     */
39
-    public function run(WP $WP)
40
-    {
41
-    }
34
+	/**
35
+	 * @deprecated 4.9.27
36
+	 * @param WP $WP
37
+	 * @return    void
38
+	 */
39
+	public function run(WP $WP)
40
+	{
41
+	}
42 42
 
43 43
 
44 44
 
45
-    /**
46
-     * process_shortcode - ESPRESSO_CANCELLED
47
-     *
48
-     * @deprecated 4.9.27
49
-     * @param        array $attributes
50
-     * @return    string
51
-     * @throws \EE_Error
52
-     */
53
-    public function process_shortcode($attributes = array())
54
-    {
55
-        \EE_Error::doing_it_wrong(
56
-            __METHOD__,
57
-            __(
58
-                'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoCancelled instead.',
59
-                'event_espresso'
60
-            ),
61
-            '4.9.27'
62
-        );
63
-        return '';
64
-    }
45
+	/**
46
+	 * process_shortcode - ESPRESSO_CANCELLED
47
+	 *
48
+	 * @deprecated 4.9.27
49
+	 * @param        array $attributes
50
+	 * @return    string
51
+	 * @throws \EE_Error
52
+	 */
53
+	public function process_shortcode($attributes = array())
54
+	{
55
+		\EE_Error::doing_it_wrong(
56
+			__METHOD__,
57
+			__(
58
+				'Usage is deprecated. Please use \EventEspresso\core\domain\entities\shortcodes\EspressoCancelled instead.',
59
+				'event_espresso'
60
+			),
61
+			'4.9.27'
62
+		);
63
+		return '';
64
+	}
65 65
 }
Please login to merge, or discard this patch.
core/interfaces/EEI_Contact.interface.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@
 block discarded – undo
6 6
 interface EEI_Contact
7 7
 {
8 8
 
9
-    public function fname();
9
+	public function fname();
10 10
 
11 11
 
12 12
 
13
-    public function lname();
13
+	public function lname();
14 14
 
15 15
 
16 16
 
17
-    public function email();
17
+	public function email();
18 18
 
19 19
 
20 20
 
21
-    public function phone();
21
+	public function phone();
22 22
 }
Please login to merge, or discard this patch.
core/interfaces/EEI_Has_Address.interface.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,33 +6,33 @@
 block discarded – undo
6 6
 interface EEI_Has_Address
7 7
 {
8 8
 
9
-    public function address();
9
+	public function address();
10 10
 
11 11
 
12 12
 
13
-    public function address2();
13
+	public function address2();
14 14
 
15 15
 
16 16
 
17
-    public function city();
17
+	public function city();
18 18
 
19 19
 
20 20
 
21
-    public function state_ID();
21
+	public function state_ID();
22 22
 
23 23
 
24 24
 
25
-    public function state_obj();
25
+	public function state_obj();
26 26
 
27 27
 
28 28
 
29
-    public function country_ID();
29
+	public function country_ID();
30 30
 
31 31
 
32 32
 
33
-    public function country_obj();
33
+	public function country_obj();
34 34
 
35 35
 
36 36
 
37
-    public function zip();
37
+	public function zip();
38 38
 }
Please login to merge, or discard this patch.
core/interfaces/EEHI_Template.interface.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -6,22 +6,22 @@
 block discarded – undo
6 6
 interface EEHI_Template
7 7
 {
8 8
 
9
-    /**
10
-     * EEH_Template::format_currency
11
-     * This helper takes a raw float value and formats it according to the default config country currency settings, or the country currency settings from the supplied country ISO code
12
-     *
13
-     * @param  float   $amount       raw money value
14
-     * @param  boolean $return_raw   whether to return the formatted float value only with no currency sign or code
15
-     * @param  boolean $display_code whether to display the country code (USD). Default = TRUE
16
-     * @param  string  $CNT_ISO      2 letter ISO code for a country
17
-     * @param string   $cur_code_span_class
18
-     * @return string the html output for the formatted money value
19
-     */
20
-    public static function format_currency(
21
-        $amount = null,
22
-        $return_raw = false,
23
-        $display_code = true,
24
-        $CNT_ISO = '',
25
-        $cur_code_span_class = 'currency-code'
26
-    );
9
+	/**
10
+	 * EEH_Template::format_currency
11
+	 * This helper takes a raw float value and formats it according to the default config country currency settings, or the country currency settings from the supplied country ISO code
12
+	 *
13
+	 * @param  float   $amount       raw money value
14
+	 * @param  boolean $return_raw   whether to return the formatted float value only with no currency sign or code
15
+	 * @param  boolean $display_code whether to display the country code (USD). Default = TRUE
16
+	 * @param  string  $CNT_ISO      2 letter ISO code for a country
17
+	 * @param string   $cur_code_span_class
18
+	 * @return string the html output for the formatted money value
19
+	 */
20
+	public static function format_currency(
21
+		$amount = null,
22
+		$return_raw = false,
23
+		$display_code = true,
24
+		$CNT_ISO = '',
25
+		$cur_code_span_class = 'currency-code'
26
+	);
27 27
 }
Please login to merge, or discard this patch.
core/interfaces/EEI_Address_Formatter.interface.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 interface EEI_Address_Formatter
7 7
 {
8 8
 
9
-    /**
10
-     * @param string $address
11
-     * @param string $address2
12
-     * @param string $city
13
-     * @param string $state
14
-     * @param string $zip
15
-     * @param string $country
16
-     * @param string $CNT_ISO
17
-     */
18
-    public function format($address, $address2, $city, $state, $zip, $country, $CNT_ISO);
9
+	/**
10
+	 * @param string $address
11
+	 * @param string $address2
12
+	 * @param string $city
13
+	 * @param string $state
14
+	 * @param string $zip
15
+	 * @param string $country
16
+	 * @param string $CNT_ISO
17
+	 */
18
+	public function format($address, $address2, $city, $state, $zip, $country, $CNT_ISO);
19 19
 }
Please login to merge, or discard this patch.
core/interfaces/messages/EEI_Has_Sending_Messenger.interface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 {
13 13
 
14 14
 
15
-    /**
16
-     * Expect a EE_messenger object back that is serving as the sending messenger for a message.
17
-     * @return EE_messenger
18
-     */
19
-    public function sending_messenger();
15
+	/**
16
+	 * Expect a EE_messenger object back that is serving as the sending messenger for a message.
17
+	 * @return EE_messenger
18
+	 */
19
+	public function sending_messenger();
20 20
 }
Please login to merge, or discard this patch.
core/interfaces/line_items/EEI_Line_Item_Object.interface.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,16 +11,16 @@
 block discarded – undo
11 11
 interface EEI_Line_Item_Object
12 12
 {
13 13
 
14
-    /**
15
-     * Return the name representing the object (i.e. Event Title, or Ticket Name).
16
-     * @return string
17
-     */
18
-    public function name();
14
+	/**
15
+	 * Return the name representing the object (i.e. Event Title, or Ticket Name).
16
+	 * @return string
17
+	 */
18
+	public function name();
19 19
 
20 20
 
21
-    /**
22
-     * Return the ID representation for the object.
23
-     * @return mixed int|string
24
-     */
25
-    public function ID();
21
+	/**
22
+	 * Return the ID representation for the object.
23
+	 * @return mixed int|string
24
+	 */
25
+	public function ID();
26 26
 }
Please login to merge, or discard this patch.