Completed
Branch FET-9998-unit-test-bootstrappi... (db3cac)
by
unknown
111:23 queued 102:09
created
core/db_classes/EE_Question_Group.class.php 3 patches
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
2
-	exit( 'No direct script access allowed' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3 3
 }
4 4
 /**
5 5
  * Event Espresso
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 	 * @param array $props_n_values
33 33
 	 * @return EE_Question_Group|mixed
34 34
 	 */
35
-	public static function new_instance( $props_n_values = array() ) {
36
-		$has_object = parent::_check_for_object( $props_n_values, __CLASS__ );
37
-		return $has_object ? $has_object : new self( $props_n_values );
35
+	public static function new_instance($props_n_values = array()) {
36
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
37
+		return $has_object ? $has_object : new self($props_n_values);
38 38
 	}
39 39
 
40 40
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 	 * @param array $props_n_values
44 44
 	 * @return EE_Question_Group
45 45
 	 */
46
-	public static function new_instance_from_db( $props_n_values = array() ) {
47
-		return new self( $props_n_values, TRUE );
46
+	public static function new_instance_from_db($props_n_values = array()) {
47
+		return new self($props_n_values, TRUE);
48 48
 	}
49 49
 
50 50
 
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 	 * @param bool $pretty
56 56
 	 * @return string
57 57
 	 */
58
-	public function name( $pretty = FALSE ) {
59
-		return $pretty ? $this->get_pretty( 'QSG_name' ) : $this->get( 'QSG_name' );
58
+	public function name($pretty = FALSE) {
59
+		return $pretty ? $this->get_pretty('QSG_name') : $this->get('QSG_name');
60 60
 	}
61 61
 
62 62
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 * @return string
69 69
 	 */
70 70
 	public function identifier() {
71
-		return $this->get( 'QSG_identifier' );
71
+		return $this->get('QSG_identifier');
72 72
 	}
73 73
 
74 74
 
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
 	 * @param bool $pretty
80 80
 	 * @return string
81 81
 	 */
82
-	public function desc( $pretty = FALSE ) {
83
-		return $pretty ? $this->get_pretty( 'QSG_desc' ) : $this->get( 'QSG_desc' );
82
+	public function desc($pretty = FALSE) {
83
+		return $pretty ? $this->get_pretty('QSG_desc') : $this->get('QSG_desc');
84 84
 	}
85 85
 
86 86
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	 * @return int
93 93
 	 */
94 94
 	public function order() {
95
-		return $this->get( 'QSG_order' );
95
+		return $this->get('QSG_order');
96 96
 	}
97 97
 
98 98
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	 * @return boolean
104 104
 	 */
105 105
 	public function show_group_name() {
106
-		return $this->get( 'QSG_show_group_name' );
106
+		return $this->get('QSG_show_group_name');
107 107
 	}
108 108
 
109 109
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 * @return boolean
116 116
 	 */
117 117
 	public function show_group_desc() {
118
-		return $this->get( 'QSG_show_group_desc' );
118
+		return $this->get('QSG_show_group_desc');
119 119
 	}
120 120
 
121 121
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 * @return boolean
129 129
 	 */
130 130
 	public function system_group() {
131
-		return $this->get( 'QSG_system' );
131
+		return $this->get('QSG_system');
132 132
 	}
133 133
 
134 134
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	 * @return boolean
154 154
 	 */
155 155
 	public function deleted() {
156
-		return $this->get( 'QST_deleted' );
156
+		return $this->get('QST_deleted');
157 157
 	}
158 158
 
159 159
 
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
 	 */
165 165
 	public function questions_in_and_not_in_group() {
166 166
 		$questions_in_group = $this->questions();
167
-		$exclude_question_ids = ! empty( $questions_in_group ) ? array_keys( $questions_in_group ) : array();
168
-		$questions_not_in_group = $this->questions_not_in_group( $exclude_question_ids );
167
+		$exclude_question_ids = ! empty($questions_in_group) ? array_keys($questions_in_group) : array();
168
+		$questions_not_in_group = $this->questions_not_in_group($exclude_question_ids);
169 169
 		return $questions_in_group + $questions_not_in_group;
170 170
 	}
171 171
 
@@ -176,9 +176,9 @@  discard block
 block discarded – undo
176 176
 	 * @param array $query_params
177 177
 	 * @return EE_Question[]
178 178
 	 */
179
-	public function questions( $query_params = array() ) {
180
-		$query_params = ! empty( $query_params ) ? $query_params : array( 'order_by' => array( 'Question_Group_Question.QGQ_order' => 'ASC' ) );
181
-		return $this->ID() ? $this->get_many_related( 'Question', $query_params ) : array();
179
+	public function questions($query_params = array()) {
180
+		$query_params = ! empty($query_params) ? $query_params : array('order_by' => array('Question_Group_Question.QGQ_order' => 'ASC'));
181
+		return $this->ID() ? $this->get_many_related('Question', $query_params) : array();
182 182
 	}
183 183
 
184 184
 
@@ -188,14 +188,14 @@  discard block
 block discarded – undo
188 188
 	 * @param  mixed $question_IDS_in_group if empty array then all questions returned.  if FALSE then we first get questions in this group and exclude them from questions get all. IF empty array then we just return all questions.
189 189
 	 * @return EE_Question[]
190 190
 	 */
191
-	public function questions_not_in_group( $question_IDS_in_group = FALSE ) {
192
-		if ( $question_IDS_in_group === FALSE ) {
191
+	public function questions_not_in_group($question_IDS_in_group = FALSE) {
192
+		if ($question_IDS_in_group === FALSE) {
193 193
 			$questions = $this->questions();
194
-			$question_IDS_in_group = ! empty( $questions ) ? array_keys( $questions ) : array();
194
+			$question_IDS_in_group = ! empty($questions) ? array_keys($questions) : array();
195 195
 		}
196
-		$_where = ! empty( $question_IDS_in_group ) ? array( 'QST_ID' => array( 'not_in', $question_IDS_in_group ) ) : array();
196
+		$_where = ! empty($question_IDS_in_group) ? array('QST_ID' => array('not_in', $question_IDS_in_group)) : array();
197 197
 
198
-		return EEM_Question::instance()->get_all( array( $_where, 'order_by' => array( 'QST_ID' => 'ASC' ) ) );
198
+		return EEM_Question::instance()->get_all(array($_where, 'order_by' => array('QST_ID' => 'ASC')));
199 199
 	}
200 200
 
201 201
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 	 * @return EE_Event[]
206 206
 	 */
207 207
 	public function events() {
208
-		return $this->get_many_related( 'Event' );
208
+		return $this->get_many_related('Event');
209 209
 	}
210 210
 
211 211
 
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
 	 * @param EE_Question || int $question object or ID
216 216
 	 * @return boolean if successful
217 217
 	 */
218
-	public function add_question( $questionObjectOrID ) {
219
-		return $this->_add_relation_to( $questionObjectOrID, 'Question' );
218
+	public function add_question($questionObjectOrID) {
219
+		return $this->_add_relation_to($questionObjectOrID, 'Question');
220 220
 	}
221 221
 
222 222
 
@@ -226,8 +226,8 @@  discard block
 block discarded – undo
226 226
 	 * @param EE_Question || int $question object or ID
227 227
 	 * @return boolean of success
228 228
 	 */
229
-	public function remove_question( $questionObjectOrID ) {
230
-		return $this->_remove_relation_to( $questionObjectOrID, 'Question' );
229
+	public function remove_question($questionObjectOrID) {
230
+		return $this->_remove_relation_to($questionObjectOrID, 'Question');
231 231
 	}
232 232
 
233 233
 
@@ -237,9 +237,9 @@  discard block
 block discarded – undo
237 237
 	 * @param $qst_order
238 238
 	 * @return int
239 239
 	 */
240
-	public function update_question_order( $questionObjectOrID, $qst_order ) {
241
-		$qst_ID = $questionObjectOrID instanceof EE_Question ? $questionObjectOrID->ID() : (int)$questionObjectOrID;
242
-		return EEM_Question_Group_Question::instance()->update( array( 'QGQ_order' => $qst_order ), array( array( 'QST_ID' => $qst_ID, 'QSG_ID' => $this->ID() ) ) );
240
+	public function update_question_order($questionObjectOrID, $qst_order) {
241
+		$qst_ID = $questionObjectOrID instanceof EE_Question ? $questionObjectOrID->ID() : (int) $questionObjectOrID;
242
+		return EEM_Question_Group_Question::instance()->update(array('QGQ_order' => $qst_order), array(array('QST_ID' => $qst_ID, 'QSG_ID' => $this->ID())));
243 243
 	}
244 244
 
245 245
 
@@ -250,9 +250,9 @@  discard block
 block discarded – undo
250 250
 	 */
251 251
 	public function has_questions_with_answers() {
252 252
 		$has_answers = FALSE;
253
-		$questions = $this->get_many_related( 'Question' );
254
-		foreach ( $questions as $question ) {
255
-			if ( $question->count_related( 'Answer' ) > 0 )
253
+		$questions = $this->get_many_related('Question');
254
+		foreach ($questions as $question) {
255
+			if ($question->count_related('Answer') > 0)
256 256
 				$has_answers = TRUE;
257 257
 		}
258 258
 		return $has_answers;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 	 */
269 269
 	public function set_order_to_latest() {
270 270
 		$latest_order = $this->get_model()->get_latest_question_group_order();
271
-		$latest_order ++;
272
-		$this->set( 'QSG_order', $latest_order );
271
+		$latest_order++;
272
+		$this->set('QSG_order', $latest_order);
273 273
 	}
274 274
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -252,8 +252,9 @@
 block discarded – undo
252 252
 		$has_answers = FALSE;
253 253
 		$questions = $this->get_many_related( 'Question' );
254 254
 		foreach ( $questions as $question ) {
255
-			if ( $question->count_related( 'Answer' ) > 0 )
256
-				$has_answers = TRUE;
255
+			if ( $question->count_related( 'Answer' ) > 0 ) {
256
+							$has_answers = TRUE;
257
+			}
257 258
 		}
258 259
 		return $has_answers;
259 260
 	}
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 	/**
214 214
 	 * Adds the question to this question group
215 215
 	 * @param EE_Question || int $question object or ID
216
-	 * @return boolean if successful
216
+	 * @return EE_Base_Class if successful
217 217
 	 */
218 218
 	public function add_question( $questionObjectOrID ) {
219 219
 		return $this->_add_relation_to( $questionObjectOrID, 'Question' );
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 	/**
225 225
 	 * Removes the question from this question group
226 226
 	 * @param EE_Question || int $question object or ID
227
-	 * @return boolean of success
227
+	 * @return EE_Base_Class of success
228 228
 	 */
229 229
 	public function remove_question( $questionObjectOrID ) {
230 230
 		return $this->_remove_relation_to( $questionObjectOrID, 'Question' );
Please login to merge, or discard this patch.
core/db_classes/EE_Question_Group_Question.class.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@  discard block
 block discarded – undo
2 2
 /**
3 3
  * Required  by EEM_Question_Group_Question in case someone queries for all its model objects
4 4
  */
5
-class EE_Question_Group_Question extends EE_Base_Class{
5
+class EE_Question_Group_Question extends EE_Base_Class {
6 6
 
7 7
 	/**
8 8
 	 * @param array $props_n_values
9 9
 	 * @return EE_Question_Group_Question|mixed
10 10
 	 */
11
-	public static function new_instance( $props_n_values = array() ) {
12
-		$has_object = parent::_check_for_object( $props_n_values, __CLASS__ );
13
-		return $has_object ? $has_object : new self( $props_n_values );
11
+	public static function new_instance($props_n_values = array()) {
12
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
13
+		return $has_object ? $has_object : new self($props_n_values);
14 14
 	}
15 15
 
16 16
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 * @param array $props_n_values
20 20
 	 * @return EE_Question_Group_Question
21 21
 	 */
22
-	public static function new_instance_from_db ( $props_n_values = array() ) {
23
-		return new self( $props_n_values, TRUE );
22
+	public static function new_instance_from_db($props_n_values = array()) {
23
+		return new self($props_n_values, TRUE);
24 24
 	}
25 25
 }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
core/db_classes/EE_Registration.class.php 4 patches
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 			parent::set( 'STS_ID', $new_STS_ID, $use_default );
127 127
 			do_action( 'AHEE__EE_Registration__set_status__after_update', $this );
128 128
 			return TRUE;
129
-		}else{
129
+		} else{
130 130
 			//even though the old value matches the new value, it's still good to
131 131
 			//allow the parent set method to have a say
132 132
 			parent::set( 'STS_ID', $new_STS_ID, $use_default );
@@ -625,8 +625,9 @@  discard block
 block discarded – undo
625 625
 	 * @return EE_Registration
626 626
 	 */
627 627
 	public function get_primary_registration()  {
628
-		if ( $this->is_primary_registrant() )
629
-			return $this;
628
+		if ( $this->is_primary_registrant() ) {
629
+					return $this;
630
+		}
630 631
 
631 632
 		//k reg_count !== 1 so let's get the EE_Registration object matching this txn_id and reg_count == 1
632 633
 		$primary_registrant = EEM_Registration::instance()->get_one( array( array('TXN_ID' => $this->transaction_ID(), 'REG_count' => 1 ) ) );
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -618,9 +618,9 @@
 block discarded – undo
618 618
 
619 619
 
620 620
 	/**
621
-	*		get  Attendee Number
622
-	* 		@access		public
623
-	*/
621
+	 *		get  Attendee Number
622
+	 * 		@access		public
623
+	 */
624 624
 	public function count() {
625 625
 		return $this->get( 'REG_count' );
626 626
 	}
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -908,7 +908,7 @@  discard block
 block discarded – undo
908 908
 	/**
909 909
 	 * Sets deleted
910 910
 	 * @param boolean $deleted
911
-	 * @return boolean
911
+	 * @return boolean|null
912 912
 	 */
913 913
 	public function set_deleted($deleted) {
914 914
 		$this->set( 'REG_deleted', $deleted );
@@ -952,6 +952,7 @@  discard block
 block discarded – undo
952 952
 	 *
953 953
 	 * @param int | EE_Datetime $DTT_OR_ID The datetime the registration is being checked against
954 954
 	 * @param bool   $check_approved   This is used to indicate whether the caller wants can_checkin to also consider registration status as well as datetime access.
955
+	 * @param integer $DTT_OR_ID
955 956
 	 *
956 957
 	 * @return bool
957 958
 	 */
Please login to merge, or discard this patch.
Spacing   +181 added lines, -181 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php use EventEspresso\core\exceptions\EntityNotFoundException;
2 2
 
3
-if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
4
-	exit( 'No direct script access allowed' );
3
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
4
+	exit('No direct script access allowed');
5 5
 }
6 6
 /**
7 7
  * EE_Registration class
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 	 *                             		    date_format and the second value is the time format
44 44
 	 * @return EE_Registration
45 45
 	 */
46
-	public static function new_instance( $props_n_values = array(), $timezone = null, $date_formats = array() ) {
47
-		$has_object = parent::_check_for_object( $props_n_values, __CLASS__, $timezone, $date_formats );
48
-		return $has_object ? $has_object : new self( $props_n_values, false, $timezone, $date_formats );
46
+	public static function new_instance($props_n_values = array(), $timezone = null, $date_formats = array()) {
47
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__, $timezone, $date_formats);
48
+		return $has_object ? $has_object : new self($props_n_values, false, $timezone, $date_formats);
49 49
 	}
50 50
 
51 51
 
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 	 *                          		the website will be used.
57 57
 	 * @return EE_Registration
58 58
 	 */
59
-	public static function new_instance_from_db( $props_n_values = array(), $timezone = null ) {
60
-		return new self( $props_n_values, TRUE, $timezone );
59
+	public static function new_instance_from_db($props_n_values = array(), $timezone = null) {
60
+		return new self($props_n_values, TRUE, $timezone);
61 61
 	}
62 62
 
63 63
 
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
 	 * @access        public
69 69
 	 * @param        int $EVT_ID Event ID
70 70
 	 */
71
-	public function set_event( $EVT_ID = 0 ) {
72
-		$this->set( 'EVT_ID', $EVT_ID );
71
+	public function set_event($EVT_ID = 0) {
72
+		$this->set('EVT_ID', $EVT_ID);
73 73
 	}
74 74
 
75 75
 
@@ -80,18 +80,18 @@  discard block
 block discarded – undo
80 80
 	 * @param mixed  $field_value
81 81
 	 * @param bool   $use_default
82 82
 	 */
83
-	public function set( $field_name, $field_value, $use_default = FALSE ) {
84
-		switch( $field_name ) {
83
+	public function set($field_name, $field_value, $use_default = FALSE) {
84
+		switch ($field_name) {
85 85
 			case 'REG_code' :
86
-				if ( ! empty( $field_value ) && $this->reg_code() == '' ) {
87
-					$this->set_reg_code( $field_value, $use_default );
86
+				if ( ! empty($field_value) && $this->reg_code() == '') {
87
+					$this->set_reg_code($field_value, $use_default);
88 88
 				}
89 89
 				break;
90 90
 			case 'STS_ID' :
91
-				$this->set_status( $field_value, $use_default );
91
+				$this->set_status($field_value, $use_default);
92 92
 				break;
93 93
 			default :
94
-				parent::set( $field_name, $field_value, $use_default );
94
+				parent::set($field_name, $field_value, $use_default);
95 95
 		}
96 96
 	}
97 97
 
@@ -109,30 +109,30 @@  discard block
 block discarded – undo
109 109
 	 * @return bool
110 110
 	 * @throws \EE_Error
111 111
 	 */
112
-	public function set_status( $new_STS_ID = NULL, $use_default = FALSE ) {
112
+	public function set_status($new_STS_ID = NULL, $use_default = FALSE) {
113 113
 		// get current REG_Status
114 114
 		$old_STS_ID = $this->status_ID();
115 115
 		// if status has changed
116
-		if ( $old_STS_ID !== $new_STS_ID  ) {
116
+		if ($old_STS_ID !== $new_STS_ID) {
117 117
 			// TO approved
118
-			if ( $new_STS_ID === EEM_Registration::status_id_approved ) {
118
+			if ($new_STS_ID === EEM_Registration::status_id_approved) {
119 119
 				// reserve a space by incrementing ticket and datetime sold values
120 120
 				$this->_reserve_registration_space();
121
-				do_action( 'AHEE__EE_Registration__set_status__to_approved', $this, $old_STS_ID, $new_STS_ID );
121
+				do_action('AHEE__EE_Registration__set_status__to_approved', $this, $old_STS_ID, $new_STS_ID);
122 122
 			// OR FROM  approved
123
-			} else if ( $old_STS_ID === EEM_Registration::status_id_approved ) {
123
+			} else if ($old_STS_ID === EEM_Registration::status_id_approved) {
124 124
 				// release a space by decrementing ticket and datetime sold values
125 125
 				$this->_release_registration_space();
126
-				do_action( 'AHEE__EE_Registration__set_status__from_approved', $this, $old_STS_ID, $new_STS_ID );
126
+				do_action('AHEE__EE_Registration__set_status__from_approved', $this, $old_STS_ID, $new_STS_ID);
127 127
 			}
128 128
 			// update status
129
-			parent::set( 'STS_ID', $new_STS_ID, $use_default );
130
-			do_action( 'AHEE__EE_Registration__set_status__after_update', $this );
129
+			parent::set('STS_ID', $new_STS_ID, $use_default);
130
+			do_action('AHEE__EE_Registration__set_status__after_update', $this);
131 131
 			return TRUE;
132
-		}else{
132
+		} else {
133 133
 			//even though the old value matches the new value, it's still good to
134 134
 			//allow the parent set method to have a say
135
-			parent::set( 'STS_ID', $new_STS_ID, $use_default );
135
+			parent::set('STS_ID', $new_STS_ID, $use_default);
136 136
 			return TRUE;
137 137
 		}
138 138
 	}
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 * @access        public
145 145
 	 */
146 146
 	public function status_ID() {
147
-		return $this->get( 'STS_ID' );
147
+		return $this->get('STS_ID');
148 148
 	}
149 149
 
150 150
 
@@ -169,12 +169,12 @@  discard block
 block discarded – undo
169 169
 	 * @param boolean $include_archived whether to include archived tickets or not.
170 170
 	 * @return EE_Ticket
171 171
 	 */
172
-	public function ticket( $include_archived = TRUE ) {
172
+	public function ticket($include_archived = TRUE) {
173 173
 		$query_params = array();
174
-		if ( $include_archived ) {
175
-			$query_params[ 'default_where_conditions' ] = 'none';
174
+		if ($include_archived) {
175
+			$query_params['default_where_conditions'] = 'none';
176 176
 		}
177
-		return $this->get_first_related( 'Ticket', $query_params );
177
+		return $this->get_first_related('Ticket', $query_params);
178 178
 	}
179 179
 
180 180
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	 */
203 203
 	public function wp_user() {
204 204
 		$event = $this->event();
205
-		if ( $event instanceof EE_Event ) {
205
+		if ($event instanceof EE_Event) {
206 206
 			return $event->wp_user();
207 207
 		}
208 208
 		return 0;
@@ -228,8 +228,8 @@  discard block
 block discarded – undo
228 228
 	 * @access        public
229 229
 	 * @param        int $ATT_ID Attendee ID
230 230
 	 */
231
-	public function set_attendee_id( $ATT_ID = 0 ) {
232
-		$this->set( 'ATT_ID', $ATT_ID );
231
+	public function set_attendee_id($ATT_ID = 0) {
232
+		$this->set('ATT_ID', $ATT_ID);
233 233
 	}
234 234
 
235 235
 
@@ -240,8 +240,8 @@  discard block
 block discarded – undo
240 240
 	 * @access        public
241 241
 	 * @param        int $TXN_ID Transaction ID
242 242
 	 */
243
-	public function set_transaction_id( $TXN_ID = 0 ) {
244
-		$this->set( 'TXN_ID', $TXN_ID );
243
+	public function set_transaction_id($TXN_ID = 0) {
244
+		$this->set('TXN_ID', $TXN_ID);
245 245
 	}
246 246
 
247 247
 
@@ -252,8 +252,8 @@  discard block
 block discarded – undo
252 252
 	 * @access    public
253 253
 	 * @param    string $REG_session PHP Session ID
254 254
 	 */
255
-	public function set_session( $REG_session = '' ) {
256
-		$this->set( 'REG_session', $REG_session );
255
+	public function set_session($REG_session = '') {
256
+		$this->set('REG_session', $REG_session);
257 257
 	}
258 258
 
259 259
 
@@ -264,8 +264,8 @@  discard block
 block discarded – undo
264 264
 	 * @access    public
265 265
 	 * @param    string $REG_url_link Registration URL Link
266 266
 	 */
267
-	public function set_reg_url_link( $REG_url_link = '' ) {
268
-		$this->set( 'REG_url_link', $REG_url_link );
267
+	public function set_reg_url_link($REG_url_link = '') {
268
+		$this->set('REG_url_link', $REG_url_link);
269 269
 	}
270 270
 
271 271
 
@@ -276,8 +276,8 @@  discard block
 block discarded – undo
276 276
 	 * @access        public
277 277
 	 * @param        int $REG_count Primary Attendee
278 278
 	 */
279
-	public function set_count( $REG_count = 1 ) {
280
-		$this->set( 'REG_count', $REG_count );
279
+	public function set_count($REG_count = 1) {
280
+		$this->set('REG_count', $REG_count);
281 281
 	}
282 282
 
283 283
 
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
 	 * @access        public
289 289
 	 * @param        boolean $REG_group_size Group Registration
290 290
 	 */
291
-	public function set_group_size( $REG_group_size = FALSE ) {
292
-		$this->set( 'REG_group_size', $REG_group_size );
291
+	public function set_group_size($REG_group_size = FALSE) {
292
+		$this->set('REG_group_size', $REG_group_size);
293 293
 	}
294 294
 
295 295
 
@@ -372,8 +372,8 @@  discard block
 block discarded – undo
372 372
 	 * @access        public
373 373
 	 * @param        mixed ( int or string ) $REG_date Registration Date - Unix timestamp or string representation of Date
374 374
 	 */
375
-	public function set_reg_date( $REG_date = FALSE ) {
376
-		$this->set( 'REG_date', $REG_date );
375
+	public function set_reg_date($REG_date = FALSE) {
376
+		$this->set('REG_date', $REG_date);
377 377
 	}
378 378
 
379 379
 
@@ -384,8 +384,8 @@  discard block
 block discarded – undo
384 384
 	 * @access    public
385 385
 	 * @param    float $REG_final_price
386 386
 	 */
387
-	public function set_final_price( $REG_final_price = 0.00 ) {
388
-		$this->set( 'REG_final_price', $REG_final_price );
387
+	public function set_final_price($REG_final_price = 0.00) {
388
+		$this->set('REG_final_price', $REG_final_price);
389 389
 	}
390 390
 
391 391
 
@@ -396,8 +396,8 @@  discard block
 block discarded – undo
396 396
 	 * @access    public
397 397
 	 * @param    float $REG_paid
398 398
 	 */
399
-	public function set_paid( $REG_paid = 0.00 ) {
400
-		$this->set( 'REG_paid', $REG_paid );
399
+	public function set_paid($REG_paid = 0.00) {
400
+		$this->set('REG_paid', $REG_paid);
401 401
 	}
402 402
 
403 403
 
@@ -408,8 +408,8 @@  discard block
 block discarded – undo
408 408
 	 * @access        public
409 409
 	 * @param        boolean $REG_att_is_going Attendee Is Going
410 410
 	 */
411
-	public function set_att_is_going( $REG_att_is_going = FALSE ) {
412
-		$this->set( 'REG_att_is_going', $REG_att_is_going );
411
+	public function set_att_is_going($REG_att_is_going = FALSE) {
412
+		$this->set('REG_att_is_going', $REG_att_is_going);
413 413
 	}
414 414
 
415 415
 
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 	 * @return EE_Attendee
420 420
 	 */
421 421
 	public function attendee() {
422
-		return $this->get_first_related( 'Attendee' );
422
+		return $this->get_first_related('Attendee');
423 423
 	}
424 424
 
425 425
 
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 	 * @access        public
430 430
 	 */
431 431
 	public function event_ID() {
432
-		return $this->get( 'EVT_ID' );
432
+		return $this->get('EVT_ID');
433 433
 	}
434 434
 
435 435
 
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 	 */
441 441
 	public function event_name() {
442 442
 		$event = $this->event_obj();
443
-		if ( $event ) {
443
+		if ($event) {
444 444
 			return $event->name();
445 445
 		} else {
446 446
 			return NULL;
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 	 * @return EE_Event
455 455
 	 */
456 456
 	public function event_obj() {
457
-		return $this->get_first_related( 'Event' );
457
+		return $this->get_first_related('Event');
458 458
 	}
459 459
 
460 460
 
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
 	 * @access        public
465 465
 	 */
466 466
 	public function attendee_ID() {
467
-		return $this->get( 'ATT_ID' );
467
+		return $this->get('ATT_ID');
468 468
 	}
469 469
 
470 470
 
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
 	 * @access        public
475 475
 	 */
476 476
 	public function session_ID() {
477
-		return $this->get( 'REG_session' );
477
+		return $this->get('REG_session');
478 478
 	}
479 479
 
480 480
 
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
 	 * @param string $messenger 'pdf' or 'html'.  Default 'html'.
485 485
 	 * @return string
486 486
 	 */
487
-	public function receipt_url( $messenger = 'html' ) {
487
+	public function receipt_url($messenger = 'html') {
488 488
 
489 489
 		/**
490 490
 		 * The below will be deprecated one version after this.  We check first if there is a custom receipt template already in use on old system.  If there is then we just return the standard url for it.
@@ -492,12 +492,12 @@  discard block
 block discarded – undo
492 492
 		 * @since 4.5.0
493 493
 		 */
494 494
 		$template_relative_path = 'modules/gateways/Invoice/lib/templates/receipt_body.template.php';
495
-		$has_custom = EEH_Template::locate_template( $template_relative_path , array(), TRUE, TRUE, TRUE );
495
+		$has_custom = EEH_Template::locate_template($template_relative_path, array(), TRUE, TRUE, TRUE);
496 496
 
497
-		if ( $has_custom ) {
498
-			return add_query_arg( array( 'receipt' => 'true' ), $this->invoice_url( 'launch' ) );
497
+		if ($has_custom) {
498
+			return add_query_arg(array('receipt' => 'true'), $this->invoice_url('launch'));
499 499
 		}
500
-		return apply_filters( 'FHEE__EE_Registration__receipt_url__receipt_url', '', $this, $messenger, 'receipt' );
500
+		return apply_filters('FHEE__EE_Registration__receipt_url__receipt_url', '', $this, $messenger, 'receipt');
501 501
 	}
502 502
 
503 503
 
@@ -508,28 +508,28 @@  discard block
 block discarded – undo
508 508
 	 * @param string $messenger 'pdf' or 'html'.  Default 'html'.
509 509
 	 * @return string
510 510
 	 */
511
-	public function invoice_url( $messenger = 'html' ) {
511
+	public function invoice_url($messenger = 'html') {
512 512
 		/**
513 513
 		 * The below will be deprecated one version after this.  We check first if there is a custom invoice template already in use on old system.  If there is then we just return the standard url for it.
514 514
 		 *
515 515
 		 * @since 4.5.0
516 516
 		 */
517 517
 		$template_relative_path = 'modules/gateways/Invoice/lib/templates/invoice_body.template.php';
518
-		$has_custom = EEH_Template::locate_template( $template_relative_path , array(), TRUE, TRUE, TRUE );
518
+		$has_custom = EEH_Template::locate_template($template_relative_path, array(), TRUE, TRUE, TRUE);
519 519
 
520
-		if ( $has_custom ) {
521
-			if ( $messenger == 'html' ) {
522
-				return $this->invoice_url( 'launch' );
520
+		if ($has_custom) {
521
+			if ($messenger == 'html') {
522
+				return $this->invoice_url('launch');
523 523
 			}
524 524
 			$route = $messenger == 'download' || $messenger == 'pdf' ? 'download_invoice' : 'launch_invoice';
525 525
 
526
-			$query_args = array( 'ee' => $route, 'id' => $this->reg_url_link() );
527
-			if ( $messenger == 'html' ) {
526
+			$query_args = array('ee' => $route, 'id' => $this->reg_url_link());
527
+			if ($messenger == 'html') {
528 528
 				$query_args['html'] = TRUE;
529 529
 			}
530
-			return add_query_arg( $query_args, get_permalink( EE_Registry::instance()->CFG->core->thank_you_page_id ) );
530
+			return add_query_arg($query_args, get_permalink(EE_Registry::instance()->CFG->core->thank_you_page_id));
531 531
 		}
532
-		return apply_filters( 'FHEE__EE_Registration__invoice_url__invoice_url', '', $this, $messenger, 'invoice' );
532
+		return apply_filters('FHEE__EE_Registration__invoice_url__invoice_url', '', $this, $messenger, 'invoice');
533 533
 	}
534 534
 
535 535
 
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
 	 * @throws \EE_Error
543 543
 	 */
544 544
 	public function reg_url_link() {
545
-		return (string)$this->get( 'REG_url_link' );
545
+		return (string) $this->get('REG_url_link');
546 546
 	}
547 547
 
548 548
 
@@ -552,8 +552,8 @@  discard block
 block discarded – undo
552 552
 	 * @param string $type 'download','launch', or 'html' (default is 'launch')
553 553
 	 * @return void
554 554
 	 */
555
-	public function e_invoice_url( $type = 'launch' ) {
556
-		echo $this->invoice_url( $type );
555
+	public function e_invoice_url($type = 'launch') {
556
+		echo $this->invoice_url($type);
557 557
 	}
558 558
 
559 559
 
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
 	 * @return string
574 574
 	 */
575 575
 	public function payment_overview_url() {
576
-		return add_query_arg( array( 'e_reg_url_link' => $this->reg_url_link(), 'step' => 'payment_options', 'revisit' => TRUE ), EE_Registry::instance()->CFG->core->reg_page_url() );
576
+		return add_query_arg(array('e_reg_url_link' => $this->reg_url_link(), 'step' => 'payment_options', 'revisit' => TRUE), EE_Registry::instance()->CFG->core->reg_page_url());
577 577
 	}
578 578
 
579 579
 
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
 	 * @return string
585 585
 	 */
586 586
 	public function edit_attendee_information_url() {
587
-		return add_query_arg( array( 'e_reg_url_link' => $this->reg_url_link(), 'step' => 'attendee_information', 'revisit' => TRUE ), EE_Registry::instance()->CFG->core->reg_page_url() );
587
+		return add_query_arg(array('e_reg_url_link' => $this->reg_url_link(), 'step' => 'attendee_information', 'revisit' => TRUE), EE_Registry::instance()->CFG->core->reg_page_url());
588 588
 	}
589 589
 
590 590
 
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
 	 * @return string
595 595
 	 */
596 596
 	public function get_admin_edit_url() {
597
-		return EEH_URL::add_query_args_and_nonce( array( 'page' => 'espresso_registrations', 'action' => 'view_registration', '_REG_ID' => $this->ID() ), admin_url( 'admin.php' ) );
597
+		return EEH_URL::add_query_args_and_nonce(array('page' => 'espresso_registrations', 'action' => 'view_registration', '_REG_ID' => $this->ID()), admin_url('admin.php'));
598 598
 	}
599 599
 
600 600
 
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
 	 * @access        public
605 605
 	 */
606 606
 	public function is_primary_registrant() {
607
-		return $this->get( 'REG_count' ) == 1 ? TRUE : FALSE;
607
+		return $this->get('REG_count') == 1 ? TRUE : FALSE;
608 608
 	}
609 609
 
610 610
 
@@ -613,12 +613,12 @@  discard block
 block discarded – undo
613 613
 	 * This returns the primary registration object for this registration group (which may be this object).
614 614
 	 * @return EE_Registration
615 615
 	 */
616
-	public function get_primary_registration()  {
617
-		if ( $this->is_primary_registrant() )
616
+	public function get_primary_registration() {
617
+		if ($this->is_primary_registrant())
618 618
 			return $this;
619 619
 
620 620
 		//k reg_count !== 1 so let's get the EE_Registration object matching this txn_id and reg_count == 1
621
-		$primary_registrant = EEM_Registration::instance()->get_one( array( array('TXN_ID' => $this->transaction_ID(), 'REG_count' => 1 ) ) );
621
+		$primary_registrant = EEM_Registration::instance()->get_one(array(array('TXN_ID' => $this->transaction_ID(), 'REG_count' => 1)));
622 622
 		return $primary_registrant;
623 623
 	}
624 624
 
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
 	* 		@access		public
630 630
 	*/
631 631
 	public function count() {
632
-		return $this->get( 'REG_count' );
632
+		return $this->get('REG_count');
633 633
 	}
634 634
 
635 635
 
@@ -639,7 +639,7 @@  discard block
 block discarded – undo
639 639
 	 * @access        public
640 640
 	 */
641 641
 	public function group_size() {
642
-		return $this->get( 'REG_group_size' );
642
+		return $this->get('REG_group_size');
643 643
 	}
644 644
 
645 645
 
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 	 * @access        public
650 650
 	 */
651 651
 	public function date() {
652
-		return $this->get( 'REG_date' );
652
+		return $this->get('REG_date');
653 653
 	}
654 654
 
655 655
 
@@ -660,8 +660,8 @@  discard block
 block discarded – undo
660 660
 	 * @param string $time_format
661 661
 	 * @return string
662 662
 	 */
663
-	public function pretty_date( $date_format = NULL, $time_format = NULL ) {
664
-		return $this->get_datetime( 'REG_date', $date_format, $time_format );
663
+	public function pretty_date($date_format = NULL, $time_format = NULL) {
664
+		return $this->get_datetime('REG_date', $date_format, $time_format);
665 665
 	}
666 666
 
667 667
 
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
 	 * @return    float
675 675
 	 */
676 676
 	public function final_price() {
677
-		return $this->get( 'REG_final_price' );
677
+		return $this->get('REG_final_price');
678 678
 	}
679 679
 
680 680
 
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 	 * @return string
686 686
 	 */
687 687
 	public function pretty_final_price() {
688
-		return $this->get_pretty( 'REG_final_price' );
688
+		return $this->get_pretty('REG_final_price');
689 689
 	}
690 690
 
691 691
 
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
 	 * @return 	float
697 697
 	 */
698 698
 	public function paid() {
699
-		return $this->get( 'REG_paid' );
699
+		return $this->get('REG_paid');
700 700
 	}
701 701
 
702 702
 
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
 	 * @return 	float
708 708
 	 */
709 709
 	public function pretty_paid() {
710
-		return $this->get_pretty( 'REG_paid' );
710
+		return $this->get_pretty('REG_paid');
711 711
 	}
712 712
 
713 713
 
@@ -719,11 +719,11 @@  discard block
 block discarded – undo
719 719
 	 * @param array $requires_payment
720 720
 	 * @return bool
721 721
 	 */
722
-	public function owes_monies_and_can_pay( $requires_payment = array()) {
722
+	public function owes_monies_and_can_pay($requires_payment = array()) {
723 723
 		// these reg statuses require payment (if event is not free)
724
-		$requires_payment = ! empty( $requires_payment ) ? $requires_payment : EEM_Registration::reg_statuses_that_allow_payment();
724
+		$requires_payment = ! empty($requires_payment) ? $requires_payment : EEM_Registration::reg_statuses_that_allow_payment();
725 725
 		if (
726
-			in_array( $this->status_ID(), $requires_payment ) &&
726
+			in_array($this->status_ID(), $requires_payment) &&
727 727
 			$this->final_price() != 0 &&
728 728
 			$this->final_price() != $this->paid()
729 729
 		) {
@@ -740,8 +740,8 @@  discard block
 block discarded – undo
740 740
 	 * @param bool $show_icons
741 741
 	 * @return void
742 742
 	 */
743
-	public function e_pretty_status( $show_icons = FALSE ) {
744
-		echo $this->pretty_status( $show_icons );
743
+	public function e_pretty_status($show_icons = FALSE) {
744
+		echo $this->pretty_status($show_icons);
745 745
 	}
746 746
 
747 747
 
@@ -752,10 +752,10 @@  discard block
 block discarded – undo
752 752
 	 * @param bool $show_icons
753 753
 	 * @return string
754 754
 	 */
755
-	public function pretty_status( $show_icons = FALSE ) {
756
-		$status = EEM_Status::instance()->localized_status( array( $this->status_ID() => __( 'unknown', 'event_espresso' ) ), FALSE, 'sentence' );
755
+	public function pretty_status($show_icons = FALSE) {
756
+		$status = EEM_Status::instance()->localized_status(array($this->status_ID() => __('unknown', 'event_espresso')), FALSE, 'sentence');
757 757
 		$icon = '';
758
-		switch ( $this->status_ID() ) {
758
+		switch ($this->status_ID()) {
759 759
 			case EEM_Registration::status_id_approved:
760 760
 				$icon = $show_icons ? '<span class="dashicons dashicons-star-filled ee-icon-size-16 green-text"></span>' : '';
761 761
 				break;
@@ -778,7 +778,7 @@  discard block
 block discarded – undo
778 778
 				$icon = $show_icons ? '<span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>' : '';
779 779
 				break;
780 780
 		}
781
-		return $icon . $status[ $this->status_ID() ];
781
+		return $icon.$status[$this->status_ID()];
782 782
 	}
783 783
 
784 784
 
@@ -788,7 +788,7 @@  discard block
 block discarded – undo
788 788
 	 * @access        public
789 789
 	 */
790 790
 	public function att_is_going() {
791
-		return $this->get( 'REG_att_is_going' );
791
+		return $this->get('REG_att_is_going');
792 792
 	}
793 793
 
794 794
 
@@ -798,8 +798,8 @@  discard block
 block discarded – undo
798 798
 	 * @param array $query_params like EEM_Base::get_all
799 799
 	 * @return EE_Answer[]
800 800
 	 */
801
-	public function answers( $query_params = NULL ) {
802
-		return $this->get_many_related( 'Answer', $query_params );
801
+	public function answers($query_params = NULL) {
802
+		return $this->get_many_related('Answer', $query_params);
803 803
 	}
804 804
 
805 805
 
@@ -813,9 +813,9 @@  discard block
 block discarded – undo
813 813
 	 * (because the answer might be an array of answer values, so passing pretty_value=true
814 814
 	 * will convert it into some kind of string)
815 815
 	 */
816
-	public function answer_value_to_question( $question, $pretty_value=true ) {
816
+	public function answer_value_to_question($question, $pretty_value = true) {
817 817
 		$question_id = EEM_Question::instance()->ensure_is_ID($question);
818
-		return EEM_Answer::instance()->get_answer_value_to_question($this,$question_id,$pretty_value);
818
+		return EEM_Answer::instance()->get_answer_value_to_question($this, $question_id, $pretty_value);
819 819
 	}
820 820
 
821 821
 
@@ -828,13 +828,13 @@  discard block
 block discarded – undo
828 828
 	 */
829 829
 	public function question_groups() {
830 830
 		$question_groups = array();
831
-		if ( $this->event() instanceof EE_Event ) {
831
+		if ($this->event() instanceof EE_Event) {
832 832
 			$question_groups = $this->event()->question_groups(
833 833
 				array(
834 834
 					array(
835 835
 						'Event_Question_Group.EQG_primary' => $this->count() == 1 ? true : false
836 836
 					),
837
-					'order_by' => array( 'QSG_order' => 'ASC' )
837
+					'order_by' => array('QSG_order' => 'ASC')
838 838
 				)
839 839
 			);
840 840
 		}
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
 	 */
852 852
 	public function count_question_groups() {
853 853
 		$qg_count = 0;
854
-		if ( $this->event() instanceof EE_Event ) {
854
+		if ($this->event() instanceof EE_Event) {
855 855
 			$qg_count = $this->event()->count_related(
856 856
 				'Question_Group',
857 857
 				array(
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
 	 * @return string
873 873
 	 */
874 874
 	public function reg_date() {
875
-		return $this->get_datetime( 'REG_date' );
875
+		return $this->get_datetime('REG_date');
876 876
 	}
877 877
 
878 878
 
@@ -884,7 +884,7 @@  discard block
 block discarded – undo
884 884
 	 * @return EE_Datetime_Ticket
885 885
 	 */
886 886
 	public function datetime_ticket() {
887
-		return $this->get_first_related( 'Datetime_Ticket' );
887
+		return $this->get_first_related('Datetime_Ticket');
888 888
 	}
889 889
 
890 890
 
@@ -894,15 +894,15 @@  discard block
 block discarded – undo
894 894
 	 * @param EE_Datetime_Ticket $datetime_ticket
895 895
 	 * @return EE_Datetime_Ticket
896 896
 	 */
897
-	public function set_datetime_ticket( $datetime_ticket ) {
898
-		return $this->_add_relation_to( $datetime_ticket, 'Datetime_Ticket' );
897
+	public function set_datetime_ticket($datetime_ticket) {
898
+		return $this->_add_relation_to($datetime_ticket, 'Datetime_Ticket');
899 899
 	}
900 900
 	/**
901 901
 	 * Gets deleted
902 902
 	 * @return boolean
903 903
 	 */
904 904
 	public function deleted() {
905
-		return $this->get( 'REG_deleted' );
905
+		return $this->get('REG_deleted');
906 906
 	}
907 907
 
908 908
 	/**
@@ -911,7 +911,7 @@  discard block
 block discarded – undo
911 911
 	 * @return boolean
912 912
 	 */
913 913
 	public function set_deleted($deleted) {
914
-		$this->set( 'REG_deleted', $deleted );
914
+		$this->set('REG_deleted', $deleted);
915 915
 	}
916 916
 
917 917
 
@@ -921,7 +921,7 @@  discard block
 block discarded – undo
921 921
 	 * @return EE_Status
922 922
 	 */
923 923
 	public function status_obj() {
924
-		return $this->get_first_related( 'Status' );
924
+		return $this->get_first_related('Status');
925 925
 	}
926 926
 
927 927
 
@@ -932,7 +932,7 @@  discard block
 block discarded – undo
932 932
 	 * @return int
933 933
 	 */
934 934
 	public function count_checkins() {
935
-		return $this->get_model()->count_related( $this, 'Checkin' );
935
+		return $this->get_model()->count_related($this, 'Checkin');
936 936
 	}
937 937
 
938 938
 
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
 	 * @return int
943 943
 	 */
944 944
 	public function count_checkins_not_checkedout() {
945
-		return $this->get_model()->count_related( $this, 'Checkin', array( array( 'CHK_in' => 1 ) ) );
945
+		return $this->get_model()->count_related($this, 'Checkin', array(array('CHK_in' => 1)));
946 946
 	}
947 947
 
948 948
 
@@ -955,20 +955,20 @@  discard block
 block discarded – undo
955 955
 	 *
956 956
 	 * @return bool
957 957
 	 */
958
-	public function can_checkin( $DTT_OR_ID, $check_approved = TRUE ) {
959
-		$DTT_ID = EEM_Datetime::instance()->ensure_is_ID( $DTT_OR_ID );
958
+	public function can_checkin($DTT_OR_ID, $check_approved = TRUE) {
959
+		$DTT_ID = EEM_Datetime::instance()->ensure_is_ID($DTT_OR_ID);
960 960
 
961 961
 		//first check registration status
962
-		if (  ( $check_approved && ! $this->is_approved() ) || ! $DTT_ID ) {
962
+		if (($check_approved && ! $this->is_approved()) || ! $DTT_ID) {
963 963
 			return false;
964 964
 		}
965 965
 		//is there a datetime ticket that matches this dtt_ID?
966
-		if ( ! ( EEM_Datetime_Ticket::instance()->exists( array( array( 'TKT_ID' => $this->get('TKT_ID' ), 'DTT_ID' => $DTT_ID ) ) ) ) ) {
966
+		if ( ! (EEM_Datetime_Ticket::instance()->exists(array(array('TKT_ID' => $this->get('TKT_ID'), 'DTT_ID' => $DTT_ID))))) {
967 967
 			return false;
968 968
 		}
969 969
 
970 970
 		//final check is against TKT_uses
971
-		return $this->verify_can_checkin_against_TKT_uses( $DTT_ID );
971
+		return $this->verify_can_checkin_against_TKT_uses($DTT_ID);
972 972
 	}
973 973
 
974 974
 
@@ -981,10 +981,10 @@  discard block
 block discarded – undo
981 981
 	 * @param int | EE_Datetime  $DTT_OR_ID  The datetime the registration is being checked against
982 982
 	 * @return bool   true means can checkin.  false means cannot checkin.
983 983
 	 */
984
-	public function verify_can_checkin_against_TKT_uses( $DTT_OR_ID ) {
985
-		$DTT_ID = EEM_Datetime::instance()->ensure_is_ID( $DTT_OR_ID );
984
+	public function verify_can_checkin_against_TKT_uses($DTT_OR_ID) {
985
+		$DTT_ID = EEM_Datetime::instance()->ensure_is_ID($DTT_OR_ID);
986 986
 
987
-		if ( ! $DTT_ID ) {
987
+		if ( ! $DTT_ID) {
988 988
 			return false;
989 989
 		}
990 990
 
@@ -992,23 +992,23 @@  discard block
 block discarded – undo
992 992
 
993 993
 		// if max uses is not set or equals infinity then return true cause its not a factor for whether user can check-in
994 994
 		// or not.
995
-		if ( ! $max_uses || $max_uses === EE_INF ) {
995
+		if ( ! $max_uses || $max_uses === EE_INF) {
996 996
 			return true;
997 997
 		}
998 998
 
999 999
 		//does this datetime have a checkin record?  If so, then the dtt count has already been verified so we can just
1000 1000
 		//go ahead and toggle.
1001
-		if ( EEM_Checkin::instance()->exists( array( array( 'REG_ID' => $this->ID(), 'DTT_ID' => $DTT_ID ) ) ) ) {
1001
+		if (EEM_Checkin::instance()->exists(array(array('REG_ID' => $this->ID(), 'DTT_ID' => $DTT_ID)))) {
1002 1002
 			return true;
1003 1003
 		}
1004 1004
 
1005 1005
 		//made it here so the last check is whether the number of checkins per unique datetime on this registration
1006 1006
 		//disallows further check-ins.
1007
-		$count_unique_dtt_checkins = EEM_Checkin::instance()->count( array( array( 'REG_ID' => $this->ID(), 'CHK_in' => true ) ), 'DTT_ID', true );
1007
+		$count_unique_dtt_checkins = EEM_Checkin::instance()->count(array(array('REG_ID' => $this->ID(), 'CHK_in' => true)), 'DTT_ID', true);
1008 1008
 		// checkins have already reached their max number of uses
1009 1009
 		// so registrant can NOT checkin
1010
-		if ( $count_unique_dtt_checkins >= $max_uses ) {
1011
-			EE_Error::add_error( __( 'Check-in denied because number of datetime uses for the ticket has been reached or exceeded.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__ );
1010
+		if ($count_unique_dtt_checkins >= $max_uses) {
1011
+			EE_Error::add_error(__('Check-in denied because number of datetime uses for the ticket has been reached or exceeded.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
1012 1012
 			return false;
1013 1013
 		}
1014 1014
 		return true;
@@ -1029,15 +1029,15 @@  discard block
 block discarded – undo
1029 1029
 	 * @param  bool $verify  If true then can_checkin() is used to verify whether the person can be checked in or not.  Otherwise this forces change in checkin status.
1030 1030
 	 * @return int|BOOL            the chk_in status toggled to OR false if nothing got changed.
1031 1031
 	 */
1032
-	public function toggle_checkin_status( $DTT_ID = null, $verify = false ) {
1033
-		if ( empty( $DTT_ID ) ) {
1032
+	public function toggle_checkin_status($DTT_ID = null, $verify = false) {
1033
+		if (empty($DTT_ID)) {
1034 1034
 			$datetime = $this->get_related_primary_datetime();
1035 1035
 			$DTT_ID = $datetime->ID();
1036 1036
 		// verify the registration can checkin for the given DTT_ID
1037
-		} elseif ( ! $this->can_checkin( $DTT_ID, $verify ) ) {
1037
+		} elseif ( ! $this->can_checkin($DTT_ID, $verify)) {
1038 1038
 			EE_Error::add_error(
1039 1039
 					sprintf(
1040
-						__( 'The given registration (ID:%1$d) can not be checked in to the given DTT_ID (%2$d), because the registration does not have access', 'event_espresso'),
1040
+						__('The given registration (ID:%1$d) can not be checked in to the given DTT_ID (%2$d), because the registration does not have access', 'event_espresso'),
1041 1041
 						$this->ID(),
1042 1042
 						$DTT_ID
1043 1043
 					),
@@ -1051,8 +1051,8 @@  discard block
 block discarded – undo
1051 1051
 			EE_Registration::checkin_status_out => EE_Registration::checkin_status_in
1052 1052
 		);
1053 1053
 		//start by getting the current status so we know what status we'll be changing to.
1054
-		$cur_status = $this->check_in_status_for_datetime( $DTT_ID, NULL );
1055
-		$status_to = $status_paths[ $cur_status ];
1054
+		$cur_status = $this->check_in_status_for_datetime($DTT_ID, NULL);
1055
+		$status_to = $status_paths[$cur_status];
1056 1056
 		// database only records true for checked IN or false for checked OUT
1057 1057
 		// no record ( null ) means checked in NEVER, but we obviously don't save that
1058 1058
 		$new_status = $status_to == EE_Registration::checkin_status_in ? true : false;
@@ -1060,24 +1060,24 @@  discard block
 block discarded – undo
1060 1060
 		// because we are keeping track of Check-ins over time.
1061 1061
 		// Eventually we'll probably want to show a list table
1062 1062
 		// for the individual Check-ins so that they can be managed.
1063
-		$checkin = EE_Checkin::new_instance( array(
1063
+		$checkin = EE_Checkin::new_instance(array(
1064 1064
 				'REG_ID' => $this->ID(),
1065 1065
 				'DTT_ID' => $DTT_ID,
1066 1066
 				'CHK_in' => $new_status
1067
-		) );
1067
+		));
1068 1068
 		// if the record could not be saved then return false
1069
-		if ( $checkin->save() === 0 ) {
1070
-			if ( WP_DEBUG ) {
1069
+		if ($checkin->save() === 0) {
1070
+			if (WP_DEBUG) {
1071 1071
 				global $wpdb;
1072 1072
 				$error = sprintf(
1073
-					__( 'Registration check in update failed because of the following database error: %1$s%2$s', 'event_espresso' ),
1073
+					__('Registration check in update failed because of the following database error: %1$s%2$s', 'event_espresso'),
1074 1074
 					'<br />',
1075 1075
 					$wpdb->last_error
1076 1076
 				);
1077 1077
 			} else {
1078
-				$error = __( 'Registration check in update failed because of an unknown database error', 'event_espresso' );
1078
+				$error = __('Registration check in update failed because of an unknown database error', 'event_espresso');
1079 1079
 			}
1080
-			EE_Error::add_error( $error, __FILE__, __FUNCTION__, __LINE__ );
1080
+			EE_Error::add_error($error, __FILE__, __FUNCTION__, __LINE__);
1081 1081
 			return false;
1082 1082
 		}
1083 1083
 		return $status_to;
@@ -1101,19 +1101,19 @@  discard block
 block discarded – undo
1101 1101
 	 * @param EE_Checkin $checkin If present, we use the given checkin object rather than the dtt_id.
1102 1102
 	 * @return int            Integer representing Check-in status.
1103 1103
 	 */
1104
-	public function check_in_status_for_datetime( $DTT_ID = 0, $checkin = NULL ) {
1105
-		if ( empty( $DTT_ID ) && ! $checkin instanceof EE_Checkin ) {
1104
+	public function check_in_status_for_datetime($DTT_ID = 0, $checkin = NULL) {
1105
+		if (empty($DTT_ID) && ! $checkin instanceof EE_Checkin) {
1106 1106
 			$datetime = $this->get_related_primary_datetime();
1107
-			if ( ! $datetime instanceof EE_Datetime ) {
1107
+			if ( ! $datetime instanceof EE_Datetime) {
1108 1108
 				return 0;
1109 1109
 			}
1110 1110
 			$DTT_ID = $datetime->ID();
1111 1111
 		//verify the registration can checkin for the given DTT_ID
1112 1112
 		}
1113 1113
 		//get checkin object (if exists)
1114
-		$checkin = $checkin instanceof EE_Checkin ? $checkin : $this->get_first_related( 'Checkin', array( array( 'DTT_ID' => $DTT_ID ), 'order_by' => array( 'CHK_timestamp' => 'DESC' ) ) );
1115
-		if ( $checkin instanceof EE_Checkin ) {
1116
-			if ( $checkin->get( 'CHK_in' ) ) {
1114
+		$checkin = $checkin instanceof EE_Checkin ? $checkin : $this->get_first_related('Checkin', array(array('DTT_ID' => $DTT_ID), 'order_by' => array('CHK_timestamp' => 'DESC')));
1115
+		if ($checkin instanceof EE_Checkin) {
1116
+			if ($checkin->get('CHK_in')) {
1117 1117
 				return EE_Registration::checkin_status_in; //checked in
1118 1118
 			} else {
1119 1119
 				return EE_Registration::checkin_status_out; //had checked in but is now checked out.
@@ -1131,28 +1131,28 @@  discard block
 block discarded – undo
1131 1131
 	 * @param bool $error  This just flags that you want an error message returned. This is put in so that the error message can be customized with the attendee name.
1132 1132
 	 * @return string         internationalized message
1133 1133
 	 */
1134
-	public function get_checkin_msg( $DTT_ID, $error = FALSE ) {
1134
+	public function get_checkin_msg($DTT_ID, $error = FALSE) {
1135 1135
 		//let's get the attendee first so we can include the name of the attendee
1136
-		$attendee = $this->get_first_related( 'Attendee' );
1137
-		if ( $attendee instanceof EE_Attendee ) {
1138
-			if ( $error ) {
1139
-				return sprintf( __( "%s's check-in status was not changed.", "event_espresso" ), $attendee->full_name() );
1136
+		$attendee = $this->get_first_related('Attendee');
1137
+		if ($attendee instanceof EE_Attendee) {
1138
+			if ($error) {
1139
+				return sprintf(__("%s's check-in status was not changed.", "event_espresso"), $attendee->full_name());
1140 1140
 			}
1141
-			$cur_status = $this->check_in_status_for_datetime( $DTT_ID );
1141
+			$cur_status = $this->check_in_status_for_datetime($DTT_ID);
1142 1142
 			//what is the status message going to be?
1143
-			switch ( $cur_status ) {
1143
+			switch ($cur_status) {
1144 1144
 				case EE_Registration::checkin_status_never :
1145
-					return sprintf( __( "%s has been removed from Check-in records", "event_espresso" ), $attendee->full_name() );
1145
+					return sprintf(__("%s has been removed from Check-in records", "event_espresso"), $attendee->full_name());
1146 1146
 					break;
1147 1147
 				case EE_Registration::checkin_status_in :
1148
-					return sprintf( __( '%s has been checked in', 'event_espresso' ), $attendee->full_name() );
1148
+					return sprintf(__('%s has been checked in', 'event_espresso'), $attendee->full_name());
1149 1149
 					break;
1150 1150
 				case EE_Registration::checkin_status_out :
1151
-					return sprintf( __( '%s has been checked out', 'event_espresso' ), $attendee->full_name() );
1151
+					return sprintf(__('%s has been checked out', 'event_espresso'), $attendee->full_name());
1152 1152
 					break;
1153 1153
 			}
1154 1154
 		}
1155
-		return __( "The check-in status could not be determined.", "event_espresso" );
1155
+		return __("The check-in status could not be determined.", "event_espresso");
1156 1156
 	}
1157 1157
 
1158 1158
 
@@ -1177,7 +1177,7 @@  discard block
 block discarded – undo
1177 1177
 	 * @access        public
1178 1178
 	 */
1179 1179
 	public function reg_code() {
1180
-		return $this->get( 'REG_code' );
1180
+		return $this->get('REG_code');
1181 1181
 	}
1182 1182
 
1183 1183
 
@@ -1187,7 +1187,7 @@  discard block
 block discarded – undo
1187 1187
 	 * @access        public
1188 1188
 	 */
1189 1189
 	public function transaction_ID() {
1190
-		return $this->get( 'TXN_ID' );
1190
+		return $this->get('TXN_ID');
1191 1191
 	}
1192 1192
 
1193 1193
 
@@ -1196,7 +1196,7 @@  discard block
 block discarded – undo
1196 1196
 	 * @return int
1197 1197
 	 */
1198 1198
 	public function ticket_ID() {
1199
-		return $this->get( 'TKT_ID' );
1199
+		return $this->get('TKT_ID');
1200 1200
 	}
1201 1201
 
1202 1202
 
@@ -1208,17 +1208,17 @@  discard block
 block discarded – undo
1208 1208
 	 * @param    string $REG_code Registration Code
1209 1209
 	 * @param	boolean $use_default
1210 1210
 	 */
1211
-	public function set_reg_code( $REG_code, $use_default = FALSE ) {
1212
-		if ( empty( $REG_code )) {
1213
-			EE_Error::add_error( __( 'REG_code can not be empty.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__ );
1211
+	public function set_reg_code($REG_code, $use_default = FALSE) {
1212
+		if (empty($REG_code)) {
1213
+			EE_Error::add_error(__('REG_code can not be empty.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
1214 1214
 			return;
1215 1215
 		}
1216
-		if ( ! $this->reg_code() ) {
1217
-			parent::set( 'REG_code', $REG_code, $use_default );
1216
+		if ( ! $this->reg_code()) {
1217
+			parent::set('REG_code', $REG_code, $use_default);
1218 1218
 		} else {
1219 1219
 			EE_Error::doing_it_wrong(
1220
-				__CLASS__ . '::' . __FUNCTION__,
1221
-				__( 'Can not change a registration REG_code once it has been set.', 'event_espresso' ),
1220
+				__CLASS__.'::'.__FUNCTION__,
1221
+				__('Can not change a registration REG_code once it has been set.', 'event_espresso'),
1222 1222
 				'4.6.0'
1223 1223
 			);
1224 1224
 		}
@@ -1238,17 +1238,17 @@  discard block
 block discarded – undo
1238 1238
 	 * @return EE_Registration[]  or empty array if this isn't a group registration.
1239 1239
 	 */
1240 1240
 	public function get_all_other_registrations_in_group() {
1241
-		if ( $this->group_size() < 2 ) {
1241
+		if ($this->group_size() < 2) {
1242 1242
 			return array();
1243 1243
 		}
1244 1244
 
1245 1245
 		$query[0] = array(
1246 1246
 			'TXN_ID' => $this->transaction_ID(),
1247
-			'REG_ID' => array( '!=', $this->ID() ),
1247
+			'REG_ID' => array('!=', $this->ID()),
1248 1248
 			'TKT_ID' => $this->ticket_ID()
1249 1249
 			);
1250 1250
 
1251
-		$registrations = $this->get_model()->get_all( $query );
1251
+		$registrations = $this->get_model()->get_all($query);
1252 1252
 		return $registrations;
1253 1253
 	}
1254 1254
 
@@ -1257,14 +1257,14 @@  discard block
 block discarded – undo
1257 1257
 	 * @return string
1258 1258
 	 */
1259 1259
 	public function get_admin_details_link() {
1260
-		EE_Registry::instance()->load_helper( 'URL' );
1260
+		EE_Registry::instance()->load_helper('URL');
1261 1261
 		return EEH_URL::add_query_args_and_nonce(
1262 1262
 			array(
1263 1263
 				'page' => 'espresso_registrations',
1264 1264
 				'action' => 'view_registration',
1265 1265
 				'_REG_ID' => $this->ID()
1266 1266
 			),
1267
-			admin_url( 'admin.php' )
1267
+			admin_url('admin.php')
1268 1268
 		);
1269 1269
 	}
1270 1270
 
@@ -1289,12 +1289,12 @@  discard block
 block discarded – undo
1289 1289
 	 * @return string
1290 1290
 	 */
1291 1291
 	public function get_admin_overview_link() {
1292
-		EE_Registry::instance()->load_helper( 'URL' );
1292
+		EE_Registry::instance()->load_helper('URL');
1293 1293
 		return EEH_URL::add_query_args_and_nonce(
1294 1294
 			array(
1295 1295
 				'page' => 'espresso_registrations'
1296 1296
 			),
1297
-			admin_url( 'admin.php' )
1297
+			admin_url('admin.php')
1298 1298
 		);
1299 1299
 	}
1300 1300
 
@@ -1305,8 +1305,8 @@  discard block
 block discarded – undo
1305 1305
 	 * @return \EE_Registration[]
1306 1306
 	 * @throws \EE_Error
1307 1307
 	 */
1308
-	public function payments( $query_params = array() ) {
1309
-		return $this->get_many_related( 'Payment', $query_params );
1308
+	public function payments($query_params = array()) {
1309
+		return $this->get_many_related('Payment', $query_params);
1310 1310
 	}
1311 1311
 
1312 1312
 
@@ -1316,8 +1316,8 @@  discard block
 block discarded – undo
1316 1316
 	 * @return \EE_Registration_Payment[]
1317 1317
 	 * @throws \EE_Error
1318 1318
 	 */
1319
-	public function registration_payments( $query_params = array() ) {
1320
-		return $this->get_many_related( 'Registration_Payment', $query_params );
1319
+	public function registration_payments($query_params = array()) {
1320
+		return $this->get_many_related('Registration_Payment', $query_params);
1321 1321
 	}
1322 1322
 
1323 1323
 
@@ -1330,7 +1330,7 @@  discard block
 block discarded – undo
1330 1330
 	 * @return EE_Payment_Method|null
1331 1331
 	 */
1332 1332
 	public function payment_method() {
1333
-		return EEM_Payment_Method::instance()->get_last_used_for_registration( $this );
1333
+		return EEM_Payment_Method::instance()->get_last_used_for_registration($this);
1334 1334
 	}
1335 1335
 
1336 1336
 
Please login to merge, or discard this patch.
core/db_classes/EE_State.class.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
2
-	exit( 'No direct script access allowed' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3 3
 }
4 4
 /**
5 5
  * Event Espresso
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 	 * @param array $props_n_values
33 33
 	 * @return EE_State|mixed
34 34
 	 */
35
-	public static function new_instance( $props_n_values = array() ) {
36
-		$has_object = parent::_check_for_object( $props_n_values, __CLASS__ );
37
-		return $has_object ? $has_object : new self( $props_n_values );
35
+	public static function new_instance($props_n_values = array()) {
36
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
37
+		return $has_object ? $has_object : new self($props_n_values);
38 38
 	}
39 39
 
40 40
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 	 * @param array $props_n_values
44 44
 	 * @return EE_State
45 45
 	 */
46
-	public static function new_instance_from_db( $props_n_values = array() ) {
47
-		return new self( $props_n_values, TRUE );
46
+	public static function new_instance_from_db($props_n_values = array()) {
47
+		return new self($props_n_values, TRUE);
48 48
 	}
49 49
 
50 50
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 * @return string
54 54
 	 */
55 55
 	public function country_iso() {
56
-		return $this->get( 'CNT_ISO' );
56
+		return $this->get('CNT_ISO');
57 57
 	}
58 58
 
59 59
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * @return string
63 63
 	 */
64 64
 	public function abbrev() {
65
-		return $this->get( 'STA_abbrev' );
65
+		return $this->get('STA_abbrev');
66 66
 	}
67 67
 
68 68
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 * @return bool
72 72
 	 */
73 73
 	public function active() {
74
-		return $this->get( 'STA_active' );
74
+		return $this->get('STA_active');
75 75
 	}
76 76
 
77 77
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 * @return string
81 81
 	 */
82 82
 	public function name() {
83
-		return $this->get( 'STA_name' );
83
+		return $this->get('STA_name');
84 84
 	}
85 85
 
86 86
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	 * @return EE_Country
90 90
 	 */
91 91
 	public function country() {
92
-		return $this->get_first_related( 'Country' );
92
+		return $this->get_first_related('Country');
93 93
 	}
94 94
 
95 95
 
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
 	/**
98 98
 	 * @param $iso
99 99
 	 */
100
-	public function set_country_iso( $iso ) {
101
-		$this->set( 'CNT_ISO', $iso );
100
+	public function set_country_iso($iso) {
101
+		$this->set('CNT_ISO', $iso);
102 102
 	}
103 103
 
104 104
 
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
 	/**
107 107
 	 * @param $abbrev
108 108
 	 */
109
-	public function set_abbrev( $abbrev ) {
110
-		$this->set( 'STA_abbrev', $abbrev );
109
+	public function set_abbrev($abbrev) {
110
+		$this->set('STA_abbrev', $abbrev);
111 111
 	}
112 112
 
113 113
 
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
 	/**
116 116
 	 * @param $active
117 117
 	 */
118
-	public function set_active( $active ) {
119
-		$this->set( 'STA_active', $active );
118
+	public function set_active($active) {
119
+		$this->set('STA_active', $active);
120 120
 	}
121 121
 
122 122
 
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
 	/**
125 125
 	 * @param $name
126 126
 	 */
127
-	public function set_name( $name ) {
128
-		$this->set( 'STA_name', $name );
127
+	public function set_name($name) {
128
+		$this->set('STA_name', $name);
129 129
 	}
130 130
 }
131 131
 
Please login to merge, or discard this patch.
core/db_classes/EE_Status.class.php 2 patches
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
2
-	exit( 'No direct script access allowed' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3 3
 }
4 4
 /**
5 5
  * Event Espresso
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 	 * @param array $props_n_values
33 33
 	 * @return EE_Status
34 34
 	 */
35
-	public static function new_instance( $props_n_values = array() ) {
36
-		$has_object = parent::_check_for_object( $props_n_values, __CLASS__ );
37
-		return $has_object ? $has_object : new self( $props_n_values );
35
+	public static function new_instance($props_n_values = array()) {
36
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
37
+		return $has_object ? $has_object : new self($props_n_values);
38 38
 	}
39 39
 
40 40
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 	 * @param array $props_n_values
44 44
 	 * @return EE_Status
45 45
 	 */
46
-	public static function new_instance_from_db( $props_n_values = array() ) {
47
-		return new self( $props_n_values, TRUE );
46
+	public static function new_instance_from_db($props_n_values = array()) {
47
+		return new self($props_n_values, TRUE);
48 48
 	}
49 49
 
50 50
 
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
 	 * @param string $schema
56 56
 	 * @return string
57 57
 	 */
58
-	function code( $plural = FALSE, $schema = 'upper' ) {
59
-		$id = $this->get( 'STS_ID' );
60
-		$code = EEM_Status::instance()->localized_status( array( $id => $this->get( 'STS_code' ) ), $plural, $schema );
61
-		return $code[ $id ];
58
+	function code($plural = FALSE, $schema = 'upper') {
59
+		$id = $this->get('STS_ID');
60
+		$code = EEM_Status::instance()->localized_status(array($id => $this->get('STS_code')), $plural, $schema);
61
+		return $code[$id];
62 62
 	}
63 63
 
64 64
 
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
 	 * @param string $code
69 69
 	 * @return boolean
70 70
 	 */
71
-	function set_code( $code ) {
72
-		$this->set( 'STS_code', $code );
71
+	function set_code($code) {
72
+		$this->set('STS_code', $code);
73 73
 	}
74 74
 
75 75
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	 * @return string
80 80
 	 */
81 81
 	function desc() {
82
-		return $this->get( 'STS_desc' );
82
+		return $this->get('STS_desc');
83 83
 	}
84 84
 
85 85
 
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
 	 * @param string $desc
90 90
 	 * @return boolean
91 91
 	 */
92
-	function set_desc( $desc ) {
93
-		$this->set( 'STS_desc', $desc );
92
+	function set_desc($desc) {
93
+		$this->set('STS_desc', $desc);
94 94
 	}
95 95
 
96 96
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 * @return string
101 101
 	 */
102 102
 	function type() {
103
-		return $this->get( 'STS_type' );
103
+		return $this->get('STS_type');
104 104
 	}
105 105
 
106 106
 
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
 	 * @param string $type
111 111
 	 * @return boolean
112 112
 	 */
113
-	function set_type( $type ) {
114
-		$this->set( 'STS_type', $type );
113
+	function set_type($type) {
114
+		$this->set('STS_type', $type);
115 115
 	}
116 116
 
117 117
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	 * @return boolean
122 122
 	 */
123 123
 	function can_edit() {
124
-		return $this->get( 'STS_can_edit' );
124
+		return $this->get('STS_can_edit');
125 125
 	}
126 126
 
127 127
 
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
 	 * @param boolean $can_edit
132 132
 	 * @return boolean
133 133
 	 */
134
-	function set_can_edit( $can_edit ) {
135
-		$this->set( 'STS_can_edit', $can_edit );
134
+	function set_can_edit($can_edit) {
135
+		$this->set('STS_can_edit', $can_edit);
136 136
 	}
137 137
 
138 138
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 	 * @return boolean
143 143
 	 */
144 144
 	function open() {
145
-		return $this->get( 'STS_open' );
145
+		return $this->get('STS_open');
146 146
 	}
147 147
 
148 148
 
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
 	 * @param boolean $open
153 153
 	 * @return boolean
154 154
 	 */
155
-	function set_open( $open ) {
156
-		$this->set( 'STS_open', $open );
155
+	function set_open($open) {
156
+		$this->set('STS_open', $open);
157 157
 	}
158 158
 }
159 159
 
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	/**
67 67
 	 * Sets code
68 68
 	 * @param string $code
69
-	 * @return boolean
69
+	 * @return boolean|null
70 70
 	 */
71 71
 	function set_code( $code ) {
72 72
 		$this->set( 'STS_code', $code );
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	/**
88 88
 	 * Sets desc
89 89
 	 * @param string $desc
90
-	 * @return boolean
90
+	 * @return boolean|null
91 91
 	 */
92 92
 	function set_desc( $desc ) {
93 93
 		$this->set( 'STS_desc', $desc );
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	/**
109 109
 	 * Sets type
110 110
 	 * @param string $type
111
-	 * @return boolean
111
+	 * @return boolean|null
112 112
 	 */
113 113
 	function set_type( $type ) {
114 114
 		$this->set( 'STS_type', $type );
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	/**
130 130
 	 * Sets can_edit
131 131
 	 * @param boolean $can_edit
132
-	 * @return boolean
132
+	 * @return boolean|null
133 133
 	 */
134 134
 	function set_can_edit( $can_edit ) {
135 135
 		$this->set( 'STS_can_edit', $can_edit );
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	/**
151 151
 	 * Sets open
152 152
 	 * @param boolean $open
153
-	 * @return boolean
153
+	 * @return boolean|null
154 154
 	 */
155 155
 	function set_open( $open ) {
156 156
 		$this->set( 'STS_open', $open );
Please login to merge, or discard this patch.
core/db_classes/EE_Taxes.class.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,9 @@
 block discarded – undo
36 36
 		$tax = 0;
37 37
 		$total_tax = 0;
38 38
 		//This first checks to see if the given ticket is taxable.
39
-		if ( ! $ticket->get( 'TKT_taxable' ) )
40
-			return $tax;
39
+		if ( ! $ticket->get( 'TKT_taxable' ) ) {
40
+					return $tax;
41
+		}
41 42
 		//get subtotal (notice we're only retrieving a subtotal if there isn't one given)
42 43
 		$subtotal = self::get_subtotal_for_admin( $ticket );
43 44
 		//get taxes
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
2
-	exit( 'No direct script access allowed' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3 3
 }
4 4
 /**
5 5
  * Taxes class
@@ -32,20 +32,20 @@  discard block
 block discarded – undo
32 32
 	 * @param  EE_Ticket $ticket incoming EE_Ticket
33 33
 	 * @return float             total taxes to apply to ticket.
34 34
 	 */
35
-	public static function get_total_taxes_for_admin( EE_Ticket $ticket ) {
35
+	public static function get_total_taxes_for_admin(EE_Ticket $ticket) {
36 36
 		$tax = 0;
37 37
 		$total_tax = 0;
38 38
 		//This first checks to see if the given ticket is taxable.
39
-		if ( ! $ticket->get( 'TKT_taxable' ) )
39
+		if ( ! $ticket->get('TKT_taxable'))
40 40
 			return $tax;
41 41
 		//get subtotal (notice we're only retrieving a subtotal if there isn't one given)
42
-		$subtotal = self::get_subtotal_for_admin( $ticket );
42
+		$subtotal = self::get_subtotal_for_admin($ticket);
43 43
 		//get taxes
44 44
 		$taxes = self::get_taxes_for_admin();
45 45
 		//apply taxes to subtotal
46
-		foreach ( $taxes as $tax ) {
46
+		foreach ($taxes as $tax) {
47 47
 			//assuming taxes are not cumulative
48
-			$total_tax += $subtotal * $tax->get( 'PRC_amount' ) / 100;
48
+			$total_tax += $subtotal * $tax->get('PRC_amount') / 100;
49 49
 		}
50 50
 		return $total_tax;
51 51
 	}
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 	 */
58 58
 	public static function get_total_taxes_percentage() {
59 59
 		$total_tax_percent = 0;
60
-		foreach( self::get_taxes_for_admin() as $tax_price ) {
61
-			$total_tax_percent += $tax_price->get( 'PRC_amount' );
60
+		foreach (self::get_taxes_for_admin() as $tax_price) {
61
+			$total_tax_percent += $tax_price->get('PRC_amount');
62 62
 		}
63 63
 		return $total_tax_percent;
64 64
 	}
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
 	 * @param EE_Ticket $ticket
70 70
 	 * @return float
71 71
 	 */
72
-	public static function get_subtotal_for_admin( EE_Ticket $ticket ) {
72
+	public static function get_subtotal_for_admin(EE_Ticket $ticket) {
73 73
 		$TKT_ID = $ticket->ID();
74
-		return isset( self::$_subtotal[ $TKT_ID ] ) ? self::$_subtotal[ $TKT_ID ] : self::_get_subtotal_for_admin( $ticket );
74
+		return isset(self::$_subtotal[$TKT_ID]) ? self::$_subtotal[$TKT_ID] : self::_get_subtotal_for_admin($ticket);
75 75
 	}
76 76
 
77 77
 
@@ -81,29 +81,29 @@  discard block
 block discarded – undo
81 81
 	 * @param  EE_Ticket $ticket
82 82
 	 * @return float     subtotal calculated from all EE_Price[] on Ticket.
83 83
 	 */
84
-	private static function _get_subtotal_for_admin( EE_Ticket $ticket ) {
84
+	private static function _get_subtotal_for_admin(EE_Ticket $ticket) {
85 85
 		$subtotal = 0;
86 86
 		//get all prices
87
-		$prices = $ticket->get_many_related( 'Price', array( 'default_where_conditions' => 'none', 'order_by' => array( 'PRC_order' => 'ASC' ) ) );
87
+		$prices = $ticket->get_many_related('Price', array('default_where_conditions' => 'none', 'order_by' => array('PRC_order' => 'ASC')));
88 88
 		//let's loop through them (base price is always the first item)
89
-		foreach ( $prices as $price ) {
90
-			if ( $price instanceof EE_Price ) {
89
+		foreach ($prices as $price) {
90
+			if ($price instanceof EE_Price) {
91 91
 				$price_type = $price->type_obj();
92
-				if ( $price_type instanceof EE_Price_Type ) {
93
-					switch ( $price->type_obj()->base_type() ) {
92
+				if ($price_type instanceof EE_Price_Type) {
93
+					switch ($price->type_obj()->base_type()) {
94 94
 						case 1: // base price
95 95
 						case 3: // surcharges
96
-							$subtotal += $price->is_percent() ? $subtotal * $price->get( 'PRC_amount' ) / 100 : $price->get( 'PRC_amount' );
96
+							$subtotal += $price->is_percent() ? $subtotal * $price->get('PRC_amount') / 100 : $price->get('PRC_amount');
97 97
 							break;
98 98
 						case 2: // discounts
99
-							$subtotal -= $price->is_percent() ? $subtotal * $price->get( 'PRC_amount' ) / 100 : $price->get( 'PRC_amount' );
99
+							$subtotal -= $price->is_percent() ? $subtotal * $price->get('PRC_amount') / 100 : $price->get('PRC_amount');
100 100
 							break;
101 101
 					}
102 102
 				}
103 103
 			}
104 104
 		}
105 105
 		$TKT_ID = $ticket->ID();
106
-		self::$_subtotal = array( $TKT_ID => $subtotal );
106
+		self::$_subtotal = array($TKT_ID => $subtotal);
107 107
 		return $subtotal;
108 108
 	}
109 109
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 * @return EE_Price[] EE_Price objects that have PRT_ID == 4
115 115
 	 */
116 116
 	public static function get_taxes_for_admin() {
117
-		self::$_default_taxes = ! empty( self::$_default_taxes ) ? self::$_default_taxes : EE_Registry::instance()->load_model( 'Price' )->get_all( array( array( 'Price_Type.PBT_ID' => 4 ) ) );
117
+		self::$_default_taxes = ! empty(self::$_default_taxes) ? self::$_default_taxes : EE_Registry::instance()->load_model('Price')->get_all(array(array('Price_Type.PBT_ID' => 4)));
118 118
 		return self::$_default_taxes;
119 119
 	}
120 120
 
Please login to merge, or discard this patch.
core/db_classes/EE_Term.class.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
2
-	exit( 'No direct script access allowed' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3 3
 }
4 4
 /**
5 5
  * Event Espresso
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
 	 * @param bool $bydb
35 35
 	 * @param string $timezone
36 36
 	 */
37
-	protected function __construct( $fieldValues = array(), $bydb = FALSE, $timezone = '' ) {
38
-		if ( ! isset( $fieldValues[ 'slug' ] ) ) {
39
-			$fieldValues[ 'slug' ] = $fieldValues[ 'name' ];
37
+	protected function __construct($fieldValues = array(), $bydb = FALSE, $timezone = '') {
38
+		if ( ! isset($fieldValues['slug'])) {
39
+			$fieldValues['slug'] = $fieldValues['name'];
40 40
 		}
41
-		parent::__construct( $fieldValues, $bydb, $timezone );
41
+		parent::__construct($fieldValues, $bydb, $timezone);
42 42
 	}
43 43
 
44 44
 
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 	 * @param array $props_n_values
48 48
 	 * @return EE_Term|mixed
49 49
 	 */
50
-	public static function new_instance( $props_n_values = array() ) {
51
-		$has_object = parent::_check_for_object( $props_n_values, __CLASS__ );
52
-		return $has_object ? $has_object : new self( $props_n_values );
50
+	public static function new_instance($props_n_values = array()) {
51
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
52
+		return $has_object ? $has_object : new self($props_n_values);
53 53
 	}
54 54
 
55 55
 
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
 	 * @param array $props_n_values
59 59
 	 * @return EE_Term
60 60
 	 */
61
-	public static function new_instance_from_db( $props_n_values = array() ) {
62
-		return new self( $props_n_values, TRUE );
61
+	public static function new_instance_from_db($props_n_values = array()) {
62
+		return new self($props_n_values, TRUE);
63 63
 	}
64 64
 
65 65
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 * @return string
70 70
 	 */
71 71
 	function name() {
72
-		return $this->get( 'name' );
72
+		return $this->get('name');
73 73
 	}
74 74
 
75 75
 
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
 	 * @param string $name
80 80
 	 * @return boolean
81 81
 	 */
82
-	function set_name( $name ) {
83
-		$this->set( 'name', $name );
82
+	function set_name($name) {
83
+		$this->set('name', $name);
84 84
 	}
85 85
 
86 86
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 * @return string
91 91
 	 */
92 92
 	function slug() {
93
-		return $this->get( 'slug' );
93
+		return $this->get('slug');
94 94
 	}
95 95
 
96 96
 
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
 	 * @param string $slug
101 101
 	 * @return boolean
102 102
 	 */
103
-	function set_slug( $slug ) {
104
-		$this->set( 'slug', $slug );
103
+	function set_slug($slug) {
104
+		$this->set('slug', $slug);
105 105
 	}
106 106
 }
107 107
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	/**
80 80
 	 * Sets name
81 81
 	 * @param string $name
82
-	 * @return boolean
82
+	 * @return boolean|null
83 83
 	 */
84 84
 	function set_name( $name ) {
85 85
 		$this->set( 'name', $name );
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	/**
101 101
 	 * Sets slug
102 102
 	 * @param string $slug
103
-	 * @return boolean
103
+	 * @return boolean|null
104 104
 	 */
105 105
 	function set_slug( $slug ) {
106 106
 		$this->set( 'slug', $slug );
Please login to merge, or discard this patch.
core/db_classes/EE_Term_Relationship.class.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
2
-	exit( 'No direct script access allowed' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3 3
 }
4 4
 /**
5 5
  * Event Espresso
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
 	 * @param array $props_n_values
31 31
 	 * @return EE_Term_Relationship
32 32
 	 */
33
-	public static function new_instance( $props_n_values = array() ) {
34
-		$has_object = parent::_check_for_object( $props_n_values, __CLASS__ );
35
-		return $has_object ? $has_object : new self( $props_n_values );
33
+	public static function new_instance($props_n_values = array()) {
34
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
35
+		return $has_object ? $has_object : new self($props_n_values);
36 36
 	}
37 37
 
38 38
 
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 	 * @param array $props_n_values
42 42
 	 * @return EE_Term_Relationship
43 43
 	 */
44
-	public static function new_instance_from_db( $props_n_values = array() ) {
45
-		return new self( $props_n_values, TRUE );
44
+	public static function new_instance_from_db($props_n_values = array()) {
45
+		return new self($props_n_values, TRUE);
46 46
 	}
47 47
 
48 48
 
Please login to merge, or discard this patch.
core/db_classes/EE_Term_Taxonomy.class.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
2
-	exit( 'No direct script access allowed' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3 3
 }
4 4
 /**
5 5
  * Event Espresso
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 	 * @param array $props_n_values
33 33
 	 * @return EE_Term_Taxonomy
34 34
 	 */
35
-	public static function new_instance( $props_n_values = array() ) {
36
-		$has_object = parent::_check_for_object( $props_n_values, __CLASS__ );
37
-		return $has_object ? $has_object : new self( $props_n_values );
35
+	public static function new_instance($props_n_values = array()) {
36
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
37
+		return $has_object ? $has_object : new self($props_n_values);
38 38
 	}
39 39
 
40 40
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 	 * @param array $props_n_values
44 44
 	 * @return EE_Term_Taxonomy
45 45
 	 */
46
-	public static function new_instance_from_db( $props_n_values = array() ) {
47
-		return new self( $props_n_values, TRUE );
46
+	public static function new_instance_from_db($props_n_values = array()) {
47
+		return new self($props_n_values, TRUE);
48 48
 	}
49 49
 
50 50
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 * @return string
55 55
 	 */
56 56
 	function taxonomy() {
57
-		return $this->get( 'taxonomy' );
57
+		return $this->get('taxonomy');
58 58
 	}
59 59
 
60 60
 
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 	 * @param string $taxonomy
65 65
 	 * @return boolean
66 66
 	 */
67
-	function set_taxonomy( $taxonomy ) {
68
-		$this->set( 'taxonomy', $taxonomy );
67
+	function set_taxonomy($taxonomy) {
68
+		$this->set('taxonomy', $taxonomy);
69 69
 	}
70 70
 
71 71
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 * @return int
76 76
 	 */
77 77
 	function count() {
78
-		return $this->get( 'term_count' );
78
+		return $this->get('term_count');
79 79
 	}
80 80
 
81 81
 
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
 	 * @param int $term_count
86 86
 	 * @return boolean
87 87
 	 */
88
-	function set_count( $term_count ) {
89
-		$this->set( 'term_count', $term_count );
88
+	function set_count($term_count) {
89
+		$this->set('term_count', $term_count);
90 90
 	}
91 91
 
92 92
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 * @return EE_Term
97 97
 	 */
98 98
 	function term() {
99
-		return $this->get_first_related( 'Term' );
99
+		return $this->get_first_related('Term');
100 100
 	}
101 101
 
102 102
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	/**
63 63
 	 * Sets taxonomy
64 64
 	 * @param string $taxonomy
65
-	 * @return boolean
65
+	 * @return boolean|null
66 66
 	 */
67 67
 	function set_taxonomy( $taxonomy ) {
68 68
 		$this->set( 'taxonomy', $taxonomy );
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	/**
84 84
 	 * Sets term_count
85 85
 	 * @param int $term_count
86
-	 * @return boolean
86
+	 * @return boolean|null
87 87
 	 */
88 88
 	function set_count( $term_count ) {
89 89
 		$this->set( 'term_count', $term_count );
Please login to merge, or discard this patch.