Completed
Branch BUG-10626-dst-unit-test (8d5d80)
by
unknown
14:30
created
core/interfaces/EEI_Address.interface.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -9,61 +9,61 @@
 block discarded – undo
9 9
 interface EEI_Address
10 10
 {
11 11
 
12
-    public function address();
12
+	public function address();
13 13
 
14 14
 
15 15
 
16
-    public function address2();
16
+	public function address2();
17 17
 
18 18
 
19 19
 
20
-    public function city();
20
+	public function city();
21 21
 
22 22
 
23 23
 
24
-    /**
25
-     * @return EE_State
26
-     */
27
-    public function state_obj();
24
+	/**
25
+	 * @return EE_State
26
+	 */
27
+	public function state_obj();
28 28
 
29 29
 
30 30
 
31
-    public function state_ID();
31
+	public function state_ID();
32 32
 
33 33
 
34 34
 
35
-    public function state_name();
35
+	public function state_name();
36 36
 
37 37
 
38 38
 
39
-    public function state_abbrev();
39
+	public function state_abbrev();
40 40
 
41 41
 
42 42
 
43
-    public function state();
43
+	public function state();
44 44
 
45 45
 
46 46
 
47
-    /**
48
-     * @return EE_Country
49
-     */
50
-    public function country_obj();
47
+	/**
48
+	 * @return EE_Country
49
+	 */
50
+	public function country_obj();
51 51
 
52 52
 
53 53
 
54
-    public function country_ID();
54
+	public function country_ID();
55 55
 
56 56
 
57 57
 
58
-    public function country_name();
58
+	public function country_name();
59 59
 
60 60
 
61 61
 
62
-    public function country();
62
+	public function country();
63 63
 
64 64
 
65 65
 
66
-    public function zip();
66
+	public function zip();
67 67
 }
68 68
 // End of file EEI_Address.interface.php
69 69
 // Location: core/interfaces/EEI_Address.interface.php
70 70
\ No newline at end of file
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
@@ -7,35 +7,35 @@
 block discarded – undo
7 7
 interface EEI_Has_Address
8 8
 {
9 9
 
10
-    public function address();
10
+	public function address();
11 11
 
12 12
 
13 13
 
14
-    public function address2();
14
+	public function address2();
15 15
 
16 16
 
17 17
 
18
-    public function city();
18
+	public function city();
19 19
 
20 20
 
21 21
 
22
-    public function state_ID();
22
+	public function state_ID();
23 23
 
24 24
 
25 25
 
26
-    public function state_obj();
26
+	public function state_obj();
27 27
 
28 28
 
29 29
 
30
-    public function country_ID();
30
+	public function country_ID();
31 31
 
32 32
 
33 33
 
34
-    public function country_obj();
34
+	public function country_obj();
35 35
 
36 36
 
37 37
 
38
-    public function zip();
38
+	public function zip();
39 39
 }
40 40
 // End of file EEI_Has_Address.interface.php
41 41
 // Location: core/interfaces/EEI_Has_Address.interface.php
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
core/interfaces/payments/EEMI_Payment.interface.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -12,57 +12,57 @@
 block discarded – undo
12 12
 interface EEMI_Payment
13 13
 {
14 14
 
15
-    /**
16
-     * returns a string for the approved status
17
-     */
18
-    public function approved_status();
15
+	/**
16
+	 * returns a string for the approved status
17
+	 */
18
+	public function approved_status();
19 19
 
20 20
 
21 21
 
22
-    /**
23
-     * returns a string for the pending status
24
-     */
25
-    public function pending_status();
22
+	/**
23
+	 * returns a string for the pending status
24
+	 */
25
+	public function pending_status();
26 26
 
27 27
 
28 28
 
29
-    /**
30
-     * returns a string for the cancelled status
31
-     */
32
-    public function cancelled_status();
29
+	/**
30
+	 * returns a string for the cancelled status
31
+	 */
32
+	public function cancelled_status();
33 33
 
34 34
 
35 35
 
36
-    /**
37
-     * returns a string for the failed status
38
-     */
39
-    public function failed_status();
36
+	/**
37
+	 * returns a string for the failed status
38
+	 */
39
+	public function failed_status();
40 40
 
41 41
 
42 42
 
43
-    /**
44
-     * returns a string for the declined status
45
-     */
46
-    public function declined_status();
43
+	/**
44
+	 * returns a string for the declined status
45
+	 */
46
+	public function declined_status();
47 47
 
48 48
 
49 49
 
50
-    /**
51
-     * Function that returns an instance of this class.
52
-     *
53
-     * @return EEMI_Payment
54
-     */
55
-    public static function instance();
50
+	/**
51
+	 * Function that returns an instance of this class.
52
+	 *
53
+	 * @return EEMI_Payment
54
+	 */
55
+	public static function instance();
56 56
 
57 57
 
58 58
 
59
-    /**
60
-     * Gets a payment by the transaction ID or cheque number
61
-     *
62
-     * @param int $txn_id
63
-     * @return EEI_Payment
64
-     */
65
-    public function get_payment_by_txn_id_chq_nmbr($txn_id);
59
+	/**
60
+	 * Gets a payment by the transaction ID or cheque number
61
+	 *
62
+	 * @param int $txn_id
63
+	 * @return EEI_Payment
64
+	 */
65
+	public function get_payment_by_txn_id_chq_nmbr($txn_id);
66 66
 }
67 67
 
68 68
 // End of file EEMI_Payment.interface.php
Please login to merge, or discard this patch.
core/interfaces/payments/EEMI_Payment_Log.interface.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 interface EEMI_Payment_Log
10 10
 {
11 11
 
12
-    /**
13
-     * Logs a message
14
-     *
15
-     * @param string     $message
16
-     * @param int|string $id
17
-     * @param string     $model_name
18
-     * @return EE_Log
19
-     */
20
-    public function gateway_log($message, $id, $model_name);
12
+	/**
13
+	 * Logs a message
14
+	 *
15
+	 * @param string     $message
16
+	 * @param int|string $id
17
+	 * @param string     $model_name
18
+	 * @return EE_Log
19
+	 */
20
+	public function gateway_log($message, $id, $model_name);
21 21
 
22 22
 
23 23
 
Please login to merge, or discard this patch.
core/interfaces/payments/EEI_Payment.interface.php 1 patch
Indentation   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -11,131 +11,131 @@
 block discarded – undo
11 11
 interface EEI_Payment extends EEI_Base
12 12
 {
13 13
 
14
-    /**
15
-     * @return string indicating which the payment is approved, pending, cancelled or failed
16
-     */
17
-    public function status();
14
+	/**
15
+	 * @return string indicating which the payment is approved, pending, cancelled or failed
16
+	 */
17
+	public function status();
18 18
 
19 19
 
20 20
 
21
-    /**
22
-     * @return float returns the amount the payment is for (whether or not its approved)
23
-     */
24
-    public function amount();
21
+	/**
22
+	 * @return float returns the amount the payment is for (whether or not its approved)
23
+	 */
24
+	public function amount();
25 25
 
26 26
 
27 27
 
28
-    /**
29
-     * @return string of the currency for this payment
30
-     */
31
-    public function currency_code();
28
+	/**
29
+	 * @return string of the currency for this payment
30
+	 */
31
+	public function currency_code();
32 32
 
33 33
 
34 34
 
35
-    /**
36
-     * The gateway transaction's ID, usually assigned by the
37
-     * payment provider
38
-     *
39
-     * @return string
40
-     */
41
-    public function txn_id_chq_nmbr();
35
+	/**
36
+	 * The gateway transaction's ID, usually assigned by the
37
+	 * payment provider
38
+	 *
39
+	 * @return string
40
+	 */
41
+	public function txn_id_chq_nmbr();
42 42
 
43 43
 
44 44
 
45
-    /**
46
-     * @param string $status
47
-     */
48
-    public function set_status($status);
45
+	/**
46
+	 * @param string $status
47
+	 */
48
+	public function set_status($status);
49 49
 
50 50
 
51 51
 
52
-    /**
53
-     * Sets the response from the gateway, which is displayable to the user.
54
-     * Eg, 'payment was approved', 'payment failed because invalid date', etc.
55
-     *
56
-     * @param string $response
57
-     */
58
-    public function set_gateway_response($response);
52
+	/**
53
+	 * Sets the response from the gateway, which is displayable to the user.
54
+	 * Eg, 'payment was approved', 'payment failed because invalid date', etc.
55
+	 *
56
+	 * @param string $response
57
+	 */
58
+	public function set_gateway_response($response);
59 59
 
60 60
 
61 61
 
62
-    /**
63
-     * Sets the response details, usually the entire contents of an IPN request,
64
-     * or data about the direct payment data sent
65
-     *
66
-     * @param mixed $response_details
67
-     */
68
-    public function set_details($response_details);
62
+	/**
63
+	 * Sets the response details, usually the entire contents of an IPN request,
64
+	 * or data about the direct payment data sent
65
+	 *
66
+	 * @param mixed $response_details
67
+	 */
68
+	public function set_details($response_details);
69 69
 
70 70
 
71 71
 
72
-    /**
73
-     * Returns whatever the details were set to be, which could be an array, object, string, integer, whatever.
74
-     *
75
-     * @return mixed
76
-     */
77
-    public function details();
72
+	/**
73
+	 * Returns whatever the details were set to be, which could be an array, object, string, integer, whatever.
74
+	 *
75
+	 * @return mixed
76
+	 */
77
+	public function details();
78 78
 
79 79
 
80 80
 
81
-    /**
82
-     * Sets the URl to redirect to, to process payment
83
-     *
84
-     * @param string $url
85
-     */
86
-    public function set_redirect_url($url);
81
+	/**
82
+	 * Sets the URl to redirect to, to process payment
83
+	 *
84
+	 * @param string $url
85
+	 */
86
+	public function set_redirect_url($url);
87 87
 
88 88
 
89 89
 
90
-    /**
91
-     * Sets the argument which should be passed to the redirect url (ie, usually POST variables)
92
-     *
93
-     * @param array $args
94
-     */
95
-    public function set_redirect_args($args);
90
+	/**
91
+	 * Sets the argument which should be passed to the redirect url (ie, usually POST variables)
92
+	 *
93
+	 * @param array $args
94
+	 */
95
+	public function set_redirect_args($args);
96 96
 
97 97
 
98 98
 
99
-    /**
100
-     * Gets redirect_args
101
-     *
102
-     * @return array
103
-     */
104
-    public function redirect_args();
99
+	/**
100
+	 * Gets redirect_args
101
+	 *
102
+	 * @return array
103
+	 */
104
+	public function redirect_args();
105 105
 
106 106
 
107 107
 
108
-    /**
109
-     * @return EEI_Transaction
110
-     */
111
-    public function transaction();
108
+	/**
109
+	 * @return EEI_Transaction
110
+	 */
111
+	public function transaction();
112 112
 
113 113
 
114 114
 
115
-    /**
116
-     * Sets the amount for this payment
117
-     *
118
-     * @param float $amount
119
-     */
120
-    public function set_amount($amount);
115
+	/**
116
+	 * Sets the amount for this payment
117
+	 *
118
+	 * @param float $amount
119
+	 */
120
+	public function set_amount($amount);
121 121
 
122 122
 
123 123
 
124
-    /**
125
-     * Sets the ID of the gateway transaction
126
-     *
127
-     * @param string $txn_id
128
-     */
129
-    public function set_txn_id_chq_nmbr($txn_id);
124
+	/**
125
+	 * Sets the ID of the gateway transaction
126
+	 *
127
+	 * @param string $txn_id
128
+	 */
129
+	public function set_txn_id_chq_nmbr($txn_id);
130 130
 
131 131
 
132 132
 
133
-    /**
134
-     * Sets a string for some extra accounting info
135
-     *
136
-     * @param string $extra_accounting_info
137
-     */
138
-    public function set_extra_accntng($extra_accounting_info);
133
+	/**
134
+	 * Sets a string for some extra accounting info
135
+	 *
136
+	 * @param string $extra_accounting_info
137
+	 */
138
+	public function set_extra_accntng($extra_accounting_info);
139 139
 
140 140
 }
141 141
 // End of file EEI_Payment.interface.php
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
@@ -9,16 +9,16 @@
 block discarded – undo
9 9
 interface EEI_Address_Formatter
10 10
 {
11 11
 
12
-    /**
13
-     * @param string $address
14
-     * @param string $address2
15
-     * @param string $city
16
-     * @param string $state
17
-     * @param string $zip
18
-     * @param string $country
19
-     * @param string $CNT_ISO
20
-     */
21
-    public function format($address, $address2, $city, $state, $zip, $country, $CNT_ISO);
12
+	/**
13
+	 * @param string $address
14
+	 * @param string $address2
15
+	 * @param string $city
16
+	 * @param string $state
17
+	 * @param string $zip
18
+	 * @param string $country
19
+	 * @param string $CNT_ISO
20
+	 */
21
+	public function format($address, $address2, $city, $state, $zip, $country, $CNT_ISO);
22 22
 }
23 23
 
24 24
 // End of file EEI_Address_Formatter.interface.php
Please login to merge, or discard this patch.
core/interfaces/EEI_Registration.interface.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -9,30 +9,30 @@
 block discarded – undo
9 9
 interface EEI_Registration extends EEI_Base
10 10
 {
11 11
 
12
-    /**
13
-     * Gets the registration code
14
-     *
15
-     * @return string
16
-     */
17
-    public function reg_code();
12
+	/**
13
+	 * Gets the registration code
14
+	 *
15
+	 * @return string
16
+	 */
17
+	public function reg_code();
18 18
 
19 19
 
20 20
 
21
-    /**
22
-     * Gets the attendee corresponding to this registration
23
-     *
24
-     * @return EEI_Attendee
25
-     */
26
-    public function attendee();
21
+	/**
22
+	 * Gets the attendee corresponding to this registration
23
+	 *
24
+	 * @return EEI_Attendee
25
+	 */
26
+	public function attendee();
27 27
 
28 28
 
29 29
 
30
-    /**
31
-     * Returns the event's name this registration is for
32
-     *
33
-     * @return string
34
-     */
35
-    public function event_name();
30
+	/**
31
+	 * Returns the event's name this registration is for
32
+	 *
33
+	 * @return string
34
+	 */
35
+	public function event_name();
36 36
 
37 37
 }
38 38
 // End of file EEI_Registration.interface.php
Please login to merge, or discard this patch.
core/interfaces/EEI_Event.interface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 interface EEI_Event
10 10
 {
11 11
 
12
-    public function name();
12
+	public function name();
13 13
 }
14 14
 // End of file EEI_Event.interface.php
15 15
 // Location: ${NAMESPACE}/EEI_Event.interface.php
16 16
\ No newline at end of file
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
@@ -9,24 +9,24 @@
 block discarded – undo
9 9
 interface EEHI_Template
10 10
 {
11 11
 
12
-    /**
13
-     * EEH_Template::format_currency
14
-     * 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
15
-     *
16
-     * @param  float   $amount       raw money value
17
-     * @param  boolean $return_raw   whether to return the formatted float value only with no currency sign or code
18
-     * @param  boolean $display_code whether to display the country code (USD). Default = TRUE
19
-     * @param  string  $CNT_ISO      2 letter ISO code for a country
20
-     * @param string   $cur_code_span_class
21
-     * @return string the html output for the formatted money value
22
-     */
23
-    public static function format_currency(
24
-        $amount = null,
25
-        $return_raw = false,
26
-        $display_code = true,
27
-        $CNT_ISO = '',
28
-        $cur_code_span_class = 'currency-code'
29
-    );
12
+	/**
13
+	 * EEH_Template::format_currency
14
+	 * 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
15
+	 *
16
+	 * @param  float   $amount       raw money value
17
+	 * @param  boolean $return_raw   whether to return the formatted float value only with no currency sign or code
18
+	 * @param  boolean $display_code whether to display the country code (USD). Default = TRUE
19
+	 * @param  string  $CNT_ISO      2 letter ISO code for a country
20
+	 * @param string   $cur_code_span_class
21
+	 * @return string the html output for the formatted money value
22
+	 */
23
+	public static function format_currency(
24
+		$amount = null,
25
+		$return_raw = false,
26
+		$display_code = true,
27
+		$CNT_ISO = '',
28
+		$cur_code_span_class = 'currency-code'
29
+	);
30 30
 }
31 31
 
32 32
 // End of file EEHI_Template.interface.php
Please login to merge, or discard this patch.