Completed
Branch ADMIN-REFRESH (794602)
by
unknown
05:30 queued 03:17
created
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.
core/interfaces/line_items/EEHI_Line_Item.interface.php 1 patch
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -6,88 +6,88 @@
 block discarded – undo
6 6
 interface EEHI_Line_Item
7 7
 {
8 8
 
9
-    /**
10
-     * Adds an item to the purchase in the right spot
11
-     *
12
-     * @param EE_Line_Item $total_line_item
13
-     * @param EE_Line_Item $line_item
14
-     */
15
-    public function add_item(EE_Line_Item $total_line_item, EE_Line_Item $line_item);
9
+	/**
10
+	 * Adds an item to the purchase in the right spot
11
+	 *
12
+	 * @param EE_Line_Item $total_line_item
13
+	 * @param EE_Line_Item $line_item
14
+	 */
15
+	public function add_item(EE_Line_Item $total_line_item, EE_Line_Item $line_item);
16 16
 
17 17
 
18 18
 
19
-    /**
20
-     * Overwrites the previous tax by clearing out the old taxes, and creates a new
21
-     * tax and updates the total line item accordingly
22
-     *
23
-     * @param EE_Line_Item $total_line_item
24
-     * @param float        $amount
25
-     * @param string       $name
26
-     * @param string       $description
27
-     * @param string       $code
28
-     * @param boolean      $add_to_existing_line_item if true and a duplicate line item with
29
-     *                                                the same code is found, $amount will be added onto it; otherwise will simply
30
-     *                                                set the taxes to match $amount
31
-     * @return EE_Line_Item the new tax created
32
-     */
33
-    public function set_total_tax_to(
34
-        EE_Line_Item $total_line_item,
35
-        $amount,
36
-        $name = null,
37
-        $description = null,
38
-        $code = null,
39
-        $add_to_existing_line_item = false
40
-    );
19
+	/**
20
+	 * Overwrites the previous tax by clearing out the old taxes, and creates a new
21
+	 * tax and updates the total line item accordingly
22
+	 *
23
+	 * @param EE_Line_Item $total_line_item
24
+	 * @param float        $amount
25
+	 * @param string       $name
26
+	 * @param string       $description
27
+	 * @param string       $code
28
+	 * @param boolean      $add_to_existing_line_item if true and a duplicate line item with
29
+	 *                                                the same code is found, $amount will be added onto it; otherwise will simply
30
+	 *                                                set the taxes to match $amount
31
+	 * @return EE_Line_Item the new tax created
32
+	 */
33
+	public function set_total_tax_to(
34
+		EE_Line_Item $total_line_item,
35
+		$amount,
36
+		$name = null,
37
+		$description = null,
38
+		$code = null,
39
+		$add_to_existing_line_item = false
40
+	);
41 41
 
42 42
 
43 43
 
44
-    /**
45
-     * Makes all the line items which are children of $line_item taxable (or not).
46
-     * Does NOT save the line items
47
-     *
48
-     * @param EE_Line_Item $line_item
49
-     * @param boolean      $taxable
50
-     * @param string       $code_substring_for_whitelist if this string is part of the line item's code
51
-     *                                                   it will be whitelisted (ie, except from becoming taxable)
52
-     */
53
-    public static function set_line_items_taxable(
54
-        EE_Line_Item $line_item,
55
-        $taxable = true,
56
-        $code_substring_for_whitelist = null
57
-    );
44
+	/**
45
+	 * Makes all the line items which are children of $line_item taxable (or not).
46
+	 * Does NOT save the line items
47
+	 *
48
+	 * @param EE_Line_Item $line_item
49
+	 * @param boolean      $taxable
50
+	 * @param string       $code_substring_for_whitelist if this string is part of the line item's code
51
+	 *                                                   it will be whitelisted (ie, except from becoming taxable)
52
+	 */
53
+	public static function set_line_items_taxable(
54
+		EE_Line_Item $line_item,
55
+		$taxable = true,
56
+		$code_substring_for_whitelist = null
57
+	);
58 58
 
59 59
 
60 60
 
61
-    /**
62
-     * Adds a simple item ( unrelated to any other model object) to the total line item,
63
-     * in the correct spot in the line item tree.
64
-     *
65
-     * @param EE_Line_Item $total_line_item
66
-     * @param string       $name
67
-     * @param float        $unit_price
68
-     * @param string       $description
69
-     * @param int          $quantity
70
-     * @param boolean      $taxable
71
-     * @param boolean      $code if set to a value, ensures there is only one line item with that code
72
-     * @return boolean success
73
-     */
74
-    public function add_unrelated_item(
75
-        EE_Line_Item $total_line_item,
76
-        $name,
77
-        $unit_price,
78
-        $description = '',
79
-        $quantity = 1,
80
-        $taxable = false,
81
-        $code = null
82
-    );
61
+	/**
62
+	 * Adds a simple item ( unrelated to any other model object) to the total line item,
63
+	 * in the correct spot in the line item tree.
64
+	 *
65
+	 * @param EE_Line_Item $total_line_item
66
+	 * @param string       $name
67
+	 * @param float        $unit_price
68
+	 * @param string       $description
69
+	 * @param int          $quantity
70
+	 * @param boolean      $taxable
71
+	 * @param boolean      $code if set to a value, ensures there is only one line item with that code
72
+	 * @return boolean success
73
+	 */
74
+	public function add_unrelated_item(
75
+		EE_Line_Item $total_line_item,
76
+		$name,
77
+		$unit_price,
78
+		$description = '',
79
+		$quantity = 1,
80
+		$taxable = false,
81
+		$code = null
82
+	);
83 83
 
84 84
 
85 85
 
86
-    /**
87
-     * Gets the line item for the taxes subtotal
88
-     *
89
-     * @param EE_Line_Item $total_line_item of type EEM_Line_Item::type_total
90
-     * @return \EE_Line_Item
91
-     */
92
-    public static function get_taxes_subtotal(EE_Line_Item $total_line_item);
86
+	/**
87
+	 * Gets the line item for the taxes subtotal
88
+	 *
89
+	 * @param EE_Line_Item $total_line_item of type EEM_Line_Item::type_total
90
+	 * @return \EE_Line_Item
91
+	 */
92
+	public static function get_taxes_subtotal(EE_Line_Item $total_line_item);
93 93
 }
Please login to merge, or discard this patch.
core/interfaces/display/EEI_Has_Icon.interface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 interface EEI_Has_Icon
12 12
 {
13 13
 
14
-    /**
15
-     * Return the icon representing the object (usually a WP dashicon).
16
-     * @return string
17
-     */
18
-    public function get_icon();
14
+	/**
15
+	 * Return the icon representing the object (usually a WP dashicon).
16
+	 * @return string
17
+	 */
18
+	public function get_icon();
19 19
 }
Please login to merge, or discard this patch.
core/interfaces/display/EEI_Has_Code.interface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 interface EEI_Has_Code
14 14
 {
15 15
 
16
-    /**
17
-     * Return a code.
18
-     * @return string
19
-     */
20
-    public function code();
16
+	/**
17
+	 * Return a code.
18
+	 * @return string
19
+	 */
20
+	public function code();
21 21
 }
Please login to merge, or discard this patch.
core/interfaces/EEHI_Money.interface.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
 interface EEHI_Money
7 7
 {
8 8
 
9
-    /**
10
-     * For comparing floats. Default operator is '=', but see the $operator below for all options.
11
-     * This should be used to compare floats instead of normal '==' because floats
12
-     * are inherently imprecise, and so you can sometimes have two floats that appear to be identical
13
-     * but actually differ by 0.00000001.
14
-     *
15
-     * @param float  $float1
16
-     * @param float  $float2
17
-     * @param string $operator The operator. Valid options are =, <=, <, >=, >, <>, eq, lt, lte, gt, gte, ne
18
-     * @return boolean whether the equation is true or false
19
-     */
20
-    public function compare_floats($float1, $float2, $operator = '=');
9
+	/**
10
+	 * For comparing floats. Default operator is '=', but see the $operator below for all options.
11
+	 * This should be used to compare floats instead of normal '==' because floats
12
+	 * are inherently imprecise, and so you can sometimes have two floats that appear to be identical
13
+	 * but actually differ by 0.00000001.
14
+	 *
15
+	 * @param float  $float1
16
+	 * @param float  $float2
17
+	 * @param string $operator The operator. Valid options are =, <=, <, >=, >, <>, eq, lt, lte, gt, gte, ne
18
+	 * @return boolean whether the equation is true or false
19
+	 */
20
+	public function compare_floats($float1, $float2, $operator = '=');
21 21
 }
Please login to merge, or discard this patch.
core/interfaces/InterminableInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,5 +13,5 @@
 block discarded – undo
13 13
 interface InterminableInterface
14 14
 {
15 15
 
16
-    // no specific methods required
16
+	// no specific methods required
17 17
 }
Please login to merge, or discard this patch.
core/interfaces/admin/EEI_Admin_Links.interface.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -12,32 +12,32 @@
 block discarded – undo
12 12
 {
13 13
 
14 14
 
15
-    /**
16
-     * Return the link to the admin details for the object.
17
-     * @return string
18
-     */
19
-    public function get_admin_details_link();
15
+	/**
16
+	 * Return the link to the admin details for the object.
17
+	 * @return string
18
+	 */
19
+	public function get_admin_details_link();
20 20
 
21 21
 
22 22
 
23 23
 
24
-    /**
25
-     * Returns the link to the editor for the object.  Sometimes this is the same as the details.
26
-     * @return string
27
-     */
28
-    public function get_admin_edit_link();
24
+	/**
25
+	 * Returns the link to the editor for the object.  Sometimes this is the same as the details.
26
+	 * @return string
27
+	 */
28
+	public function get_admin_edit_link();
29 29
 
30 30
 
31
-    /**
32
-     * Returns the link to a settings page for the object.
33
-     * @return string
34
-     */
35
-    public function get_admin_settings_link();
31
+	/**
32
+	 * Returns the link to a settings page for the object.
33
+	 * @return string
34
+	 */
35
+	public function get_admin_settings_link();
36 36
 
37 37
 
38
-    /**
39
-     * Returns the link to the "overview" for the object (typically the "list table" view).
40
-     * @return string
41
-     */
42
-    public function get_admin_overview_link();
38
+	/**
39
+	 * Returns the link to the "overview" for the object (typically the "list table" view).
40
+	 * @return string
41
+	 */
42
+	public function get_admin_overview_link();
43 43
 }
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
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 interface EEMI_Payment_Log
7 7
 {
8 8
 
9
-    /**
10
-     * Logs a message
11
-     *
12
-     * @param string     $message
13
-     * @param int|string $id
14
-     * @param string     $model_name
15
-     * @return EE_Log
16
-     */
17
-    public function gateway_log($message, $id, $model_name);
9
+	/**
10
+	 * Logs a message
11
+	 *
12
+	 * @param string     $message
13
+	 * @param int|string $id
14
+	 * @param string     $model_name
15
+	 * @return EE_Log
16
+	 */
17
+	public function gateway_log($message, $id, $model_name);
18 18
 }
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
@@ -7,129 +7,129 @@
 block discarded – undo
7 7
 interface EEI_Payment extends EEI_Base
8 8
 {
9 9
 
10
-    /**
11
-     * @return string indicating which the payment is approved, pending, cancelled or failed
12
-     */
13
-    public function status();
10
+	/**
11
+	 * @return string indicating which the payment is approved, pending, cancelled or failed
12
+	 */
13
+	public function status();
14 14
 
15 15
 
16 16
 
17
-    /**
18
-     * @return float returns the amount the payment is for (whether or not its approved)
19
-     */
20
-    public function amount();
17
+	/**
18
+	 * @return float returns the amount the payment is for (whether or not its approved)
19
+	 */
20
+	public function amount();
21 21
 
22 22
 
23 23
 
24
-    /**
25
-     * @return string of the currency for this payment
26
-     */
27
-    public function currency_code();
24
+	/**
25
+	 * @return string of the currency for this payment
26
+	 */
27
+	public function currency_code();
28 28
 
29 29
 
30 30
 
31
-    /**
32
-     * The gateway transaction's ID, usually assigned by the
33
-     * payment provider
34
-     *
35
-     * @return string
36
-     */
37
-    public function txn_id_chq_nmbr();
31
+	/**
32
+	 * The gateway transaction's ID, usually assigned by the
33
+	 * payment provider
34
+	 *
35
+	 * @return string
36
+	 */
37
+	public function txn_id_chq_nmbr();
38 38
 
39 39
 
40 40
 
41
-    /**
42
-     * @param string $status
43
-     */
44
-    public function set_status($status);
41
+	/**
42
+	 * @param string $status
43
+	 */
44
+	public function set_status($status);
45 45
 
46 46
 
47 47
 
48
-    /**
49
-     * Sets the response from the gateway, which is displayable to the user.
50
-     * Eg, 'payment was approved', 'payment failed because invalid date', etc.
51
-     *
52
-     * @param string $response
53
-     */
54
-    public function set_gateway_response($response);
48
+	/**
49
+	 * Sets the response from the gateway, which is displayable to the user.
50
+	 * Eg, 'payment was approved', 'payment failed because invalid date', etc.
51
+	 *
52
+	 * @param string $response
53
+	 */
54
+	public function set_gateway_response($response);
55 55
 
56 56
 
57 57
 
58
-    /**
59
-     * Sets the response details, usually the entire contents of an IPN request,
60
-     * or data about the direct payment data sent
61
-     *
62
-     * @param mixed $response_details
63
-     */
64
-    public function set_details($response_details);
58
+	/**
59
+	 * Sets the response details, usually the entire contents of an IPN request,
60
+	 * or data about the direct payment data sent
61
+	 *
62
+	 * @param mixed $response_details
63
+	 */
64
+	public function set_details($response_details);
65 65
 
66 66
 
67 67
 
68
-    /**
69
-     * Returns whatever the details were set to be, which could be an array, object, string, integer, whatever.
70
-     *
71
-     * @return mixed
72
-     */
73
-    public function details();
68
+	/**
69
+	 * Returns whatever the details were set to be, which could be an array, object, string, integer, whatever.
70
+	 *
71
+	 * @return mixed
72
+	 */
73
+	public function details();
74 74
 
75 75
 
76 76
 
77
-    /**
78
-     * Sets the URl to redirect to, to process payment
79
-     *
80
-     * @param string $url
81
-     */
82
-    public function set_redirect_url($url);
77
+	/**
78
+	 * Sets the URl to redirect to, to process payment
79
+	 *
80
+	 * @param string $url
81
+	 */
82
+	public function set_redirect_url($url);
83 83
 
84 84
 
85 85
 
86
-    /**
87
-     * Sets the argument which should be passed to the redirect url (ie, usually POST variables)
88
-     *
89
-     * @param array $args
90
-     */
91
-    public function set_redirect_args($args);
86
+	/**
87
+	 * Sets the argument which should be passed to the redirect url (ie, usually POST variables)
88
+	 *
89
+	 * @param array $args
90
+	 */
91
+	public function set_redirect_args($args);
92 92
 
93 93
 
94 94
 
95
-    /**
96
-     * Gets redirect_args
97
-     *
98
-     * @return array
99
-     */
100
-    public function redirect_args();
95
+	/**
96
+	 * Gets redirect_args
97
+	 *
98
+	 * @return array
99
+	 */
100
+	public function redirect_args();
101 101
 
102 102
 
103 103
 
104
-    /**
105
-     * @return EEI_Transaction
106
-     */
107
-    public function transaction();
104
+	/**
105
+	 * @return EEI_Transaction
106
+	 */
107
+	public function transaction();
108 108
 
109 109
 
110 110
 
111
-    /**
112
-     * Sets the amount for this payment
113
-     *
114
-     * @param float $amount
115
-     */
116
-    public function set_amount($amount);
111
+	/**
112
+	 * Sets the amount for this payment
113
+	 *
114
+	 * @param float $amount
115
+	 */
116
+	public function set_amount($amount);
117 117
 
118 118
 
119 119
 
120
-    /**
121
-     * Sets the ID of the gateway transaction
122
-     *
123
-     * @param string $txn_id
124
-     */
125
-    public function set_txn_id_chq_nmbr($txn_id);
120
+	/**
121
+	 * Sets the ID of the gateway transaction
122
+	 *
123
+	 * @param string $txn_id
124
+	 */
125
+	public function set_txn_id_chq_nmbr($txn_id);
126 126
 
127 127
 
128 128
 
129
-    /**
130
-     * Sets a string for some extra accounting info
131
-     *
132
-     * @param string $extra_accounting_info
133
-     */
134
-    public function set_extra_accntng($extra_accounting_info);
129
+	/**
130
+	 * Sets a string for some extra accounting info
131
+	 *
132
+	 * @param string $extra_accounting_info
133
+	 */
134
+	public function set_extra_accntng($extra_accounting_info);
135 135
 }
Please login to merge, or discard this patch.