Completed
Branch dependabot/composer/tijsverkoy... (491ea6)
by
unknown
32:00 queued 25:42
created
core/db_classes/EE_Post_Meta.class.php 1 patch
Indentation   +108 added lines, -108 removed lines patch added patch discarded remove patch
@@ -9,112 +9,112 @@
 block discarded – undo
9 9
  */
10 10
 class EE_Post_Meta extends EE_Base_Class
11 11
 {
12
-    /**
13
-     * @param array $props_n_values
14
-     * @return EE_Post_Meta|mixed
15
-     */
16
-    public static function new_instance($props_n_values = array())
17
-    {
18
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__);
19
-        return $has_object ? $has_object : new self($props_n_values);
20
-    }
21
-
22
-
23
-    /**
24
-     * @param array $props_n_values
25
-     * @return EE_Post_Meta
26
-     */
27
-    public static function new_instance_from_db($props_n_values = array())
28
-    {
29
-        return new self($props_n_values, true);
30
-    }
31
-
32
-
33
-    /**
34
-     * Gets meta_id
35
-     *
36
-     * @return int
37
-     */
38
-    public function meta_id()
39
-    {
40
-        return $this->get('meta_id');
41
-    }
42
-
43
-
44
-    /**
45
-     * Sets meta_id
46
-     *
47
-     * @param int $meta_id
48
-     * @return boolean
49
-     */
50
-    public function set_meta_id($meta_id)
51
-    {
52
-        return $this->set('meta_id', $meta_id);
53
-    }
54
-
55
-    /**
56
-     * Gets post_id
57
-     *
58
-     * @return int
59
-     */
60
-    public function post_id()
61
-    {
62
-        return $this->get('post_id');
63
-    }
64
-
65
-
66
-    /**
67
-     * Sets post_id
68
-     *
69
-     * @param int $post_id
70
-     * @return boolean
71
-     */
72
-    public function set_post_id($post_id)
73
-    {
74
-        return $this->set('post_id', $post_id);
75
-    }
76
-
77
-    /**
78
-     * Gets meta_key
79
-     *
80
-     * @return string
81
-     */
82
-    public function meta_key()
83
-    {
84
-        return $this->get('meta_key');
85
-    }
86
-
87
-
88
-    /**
89
-     * Sets meta_key
90
-     *
91
-     * @param string $meta_key
92
-     * @return boolean
93
-     */
94
-    public function set_meta_key($meta_key)
95
-    {
96
-        return $this->set('meta_key', $meta_key);
97
-    }
98
-
99
-    /**
100
-     * Gets meta_value
101
-     *
102
-     * @return mixed
103
-     */
104
-    public function meta_value()
105
-    {
106
-        return $this->get('meta_value');
107
-    }
108
-
109
-
110
-    /**
111
-     * Sets meta_value
112
-     *
113
-     * @param mixed $meta_value
114
-     * @return boolean
115
-     */
116
-    public function set_meta_value($meta_value)
117
-    {
118
-        return $this->set('meta_value', $meta_value);
119
-    }
12
+	/**
13
+	 * @param array $props_n_values
14
+	 * @return EE_Post_Meta|mixed
15
+	 */
16
+	public static function new_instance($props_n_values = array())
17
+	{
18
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
19
+		return $has_object ? $has_object : new self($props_n_values);
20
+	}
21
+
22
+
23
+	/**
24
+	 * @param array $props_n_values
25
+	 * @return EE_Post_Meta
26
+	 */
27
+	public static function new_instance_from_db($props_n_values = array())
28
+	{
29
+		return new self($props_n_values, true);
30
+	}
31
+
32
+
33
+	/**
34
+	 * Gets meta_id
35
+	 *
36
+	 * @return int
37
+	 */
38
+	public function meta_id()
39
+	{
40
+		return $this->get('meta_id');
41
+	}
42
+
43
+
44
+	/**
45
+	 * Sets meta_id
46
+	 *
47
+	 * @param int $meta_id
48
+	 * @return boolean
49
+	 */
50
+	public function set_meta_id($meta_id)
51
+	{
52
+		return $this->set('meta_id', $meta_id);
53
+	}
54
+
55
+	/**
56
+	 * Gets post_id
57
+	 *
58
+	 * @return int
59
+	 */
60
+	public function post_id()
61
+	{
62
+		return $this->get('post_id');
63
+	}
64
+
65
+
66
+	/**
67
+	 * Sets post_id
68
+	 *
69
+	 * @param int $post_id
70
+	 * @return boolean
71
+	 */
72
+	public function set_post_id($post_id)
73
+	{
74
+		return $this->set('post_id', $post_id);
75
+	}
76
+
77
+	/**
78
+	 * Gets meta_key
79
+	 *
80
+	 * @return string
81
+	 */
82
+	public function meta_key()
83
+	{
84
+		return $this->get('meta_key');
85
+	}
86
+
87
+
88
+	/**
89
+	 * Sets meta_key
90
+	 *
91
+	 * @param string $meta_key
92
+	 * @return boolean
93
+	 */
94
+	public function set_meta_key($meta_key)
95
+	{
96
+		return $this->set('meta_key', $meta_key);
97
+	}
98
+
99
+	/**
100
+	 * Gets meta_value
101
+	 *
102
+	 * @return mixed
103
+	 */
104
+	public function meta_value()
105
+	{
106
+		return $this->get('meta_value');
107
+	}
108
+
109
+
110
+	/**
111
+	 * Sets meta_value
112
+	 *
113
+	 * @param mixed $meta_value
114
+	 * @return boolean
115
+	 */
116
+	public function set_meta_value($meta_value)
117
+	{
118
+		return $this->set('meta_value', $meta_value);
119
+	}
120 120
 }
Please login to merge, or discard this patch.
core/db_classes/EE_Ticket_Price.class.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -11,25 +11,25 @@
 block discarded – undo
11 11
  */
12 12
 class EE_Ticket_Price extends EE_Base_Class
13 13
 {
14
-    /**
15
-     * @param array  $props_n_values
16
-     * @param string $timezone
17
-     * @return EE_Ticket_Price|mixed
18
-     */
19
-    public static function new_instance($props_n_values = array(), $timezone = '', $date_formats = array())
20
-    {
21
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__, $timezone, $date_formats);
22
-        return $has_object ? $has_object : new self($props_n_values, false, $timezone, $date_formats);
23
-    }
14
+	/**
15
+	 * @param array  $props_n_values
16
+	 * @param string $timezone
17
+	 * @return EE_Ticket_Price|mixed
18
+	 */
19
+	public static function new_instance($props_n_values = array(), $timezone = '', $date_formats = array())
20
+	{
21
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__, $timezone, $date_formats);
22
+		return $has_object ? $has_object : new self($props_n_values, false, $timezone, $date_formats);
23
+	}
24 24
 
25 25
 
26
-    /**
27
-     * @param array  $props_n_values
28
-     * @param string $timezone
29
-     * @return EE_Ticket_Price
30
-     */
31
-    public static function new_instance_from_db($props_n_values = array(), $timezone = '')
32
-    {
33
-        return new self($props_n_values, true, $timezone);
34
-    }
26
+	/**
27
+	 * @param array  $props_n_values
28
+	 * @param string $timezone
29
+	 * @return EE_Ticket_Price
30
+	 */
31
+	public static function new_instance_from_db($props_n_values = array(), $timezone = '')
32
+	{
33
+		return new self($props_n_values, true, $timezone);
34
+	}
35 35
 }
Please login to merge, or discard this patch.
core/db_classes/EE_Question_Group.class.php 1 patch
Indentation   +276 added lines, -276 removed lines patch added patch discarded remove patch
@@ -11,280 +11,280 @@
 block discarded – undo
11 11
  */
12 12
 class EE_Question_Group extends EE_Soft_Delete_Base_Class
13 13
 {
14
-    /**
15
-     * @param array $props_n_values
16
-     * @return EE_Question_Group|mixed
17
-     */
18
-    public static function new_instance($props_n_values = array())
19
-    {
20
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__);
21
-        return $has_object ? $has_object : new self($props_n_values);
22
-    }
23
-
24
-
25
-    /**
26
-     * @param array $props_n_values
27
-     * @return EE_Question_Group
28
-     */
29
-    public static function new_instance_from_db($props_n_values = array())
30
-    {
31
-        return new self($props_n_values, true);
32
-    }
33
-
34
-
35
-    /**
36
-     * gets the question group's name
37
-     *
38
-     * @access public
39
-     * @param bool $pretty
40
-     * @return string
41
-     */
42
-    public function name($pretty = false)
43
-    {
44
-        return $pretty ? $this->get_pretty('QSG_name') : $this->get('QSG_name');
45
-    }
46
-
47
-
48
-    /**
49
-     * Gets the question group's internal name
50
-     *
51
-     * @access public
52
-     * @return string
53
-     */
54
-    public function identifier()
55
-    {
56
-        return $this->get('QSG_identifier');
57
-    }
58
-
59
-
60
-    /**
61
-     * Gets the question group's description
62
-     *
63
-     * @access public
64
-     * @param bool $pretty
65
-     * @return string
66
-     */
67
-    public function desc($pretty = false)
68
-    {
69
-        return $pretty ? $this->get_pretty('QSG_desc') : $this->get('QSG_desc');
70
-    }
71
-
72
-
73
-    /**
74
-     * Gets the question group's order number in a sequence
75
-     * of other question groups
76
-     *
77
-     * @access public
78
-     * @return int
79
-     */
80
-    public function order()
81
-    {
82
-        return $this->get('QSG_order');
83
-    }
84
-
85
-
86
-    /**
87
-     * Returns whether to show the group's name on the frontend
88
-     *
89
-     * @access public
90
-     * @return boolean
91
-     */
92
-    public function show_group_name()
93
-    {
94
-        return $this->get('QSG_show_group_name');
95
-    }
96
-
97
-
98
-    /**
99
-     * Returns whether to show the group's description
100
-     * on the frontend
101
-     *
102
-     * @access public
103
-     * @return boolean
104
-     */
105
-    public function show_group_desc()
106
-    {
107
-        return $this->get('QSG_show_group_desc');
108
-    }
109
-
110
-
111
-    /**
112
-     * Returns whether this is a 'system group' (meaning
113
-     * a question group integral to the system, whose questions
114
-     * relate to the attendee table)
115
-     *
116
-     * @access public
117
-     * @return int
118
-     */
119
-    public function system_group()
120
-    {
121
-        return $this->get('QSG_system');
122
-    }
123
-
124
-
125
-    /**
126
-     * get the author of the question group.
127
-     *
128
-     * @since 4.5.0
129
-     *
130
-     * @return int
131
-     */
132
-    public function wp_user()
133
-    {
134
-        return $this->get('QSG_wp_user');
135
-    }
136
-
137
-
138
-    /**
139
-     * Returns whether this question group has
140
-     * been deleted
141
-     *
142
-     * @access public
143
-     * @return boolean
144
-     */
145
-    public function deleted()
146
-    {
147
-        return $this->get('QST_deleted');
148
-    }
149
-
150
-
151
-    /**
152
-     * Gets an array of questions with questions IN the group at the start of the array and questions NOT in the group
153
-     * at the end of the array.  Questions in the group are ordered by Question_Group_Question.QGQ_order and questions
154
-     * NOT in the group are ordered by Question.QGQ_order
155
-     *
156
-     * @return EE_Question[]
157
-     */
158
-    public function questions_in_and_not_in_group()
159
-    {
160
-        $questions_in_group = $this->questions();
161
-        $exclude_question_ids = ! empty($questions_in_group) ? array_keys($questions_in_group) : array();
162
-        $questions_not_in_group = $this->questions_not_in_group($exclude_question_ids);
163
-        return $questions_in_group + $questions_not_in_group;
164
-    }
165
-
166
-
167
-    /**
168
-     * Gets all the questions which are part of this question group (ordered Question_Group_Question.QGQ_order)
169
-     *
170
-     * @param array $query_params
171
-     * @return EE_Question[]
172
-     */
173
-    public function questions($query_params = array())
174
-    {
175
-        $query_params = ! empty($query_params) ? $query_params
176
-            : array('order_by' => array('Question_Group_Question.QGQ_order' => 'ASC'));
177
-        return $this->ID() ? $this->get_many_related('Question', $query_params) : array();
178
-    }
179
-
180
-
181
-    /**
182
-     * Gets all the questions which are NOT part of this question group.
183
-     *
184
-     * @param  mixed $question_IDS_in_group if empty array then all questions returned.  if FALSE then we first get
185
-     *                                      questions in this group and exclude them from questions get all. IF empty
186
-     *                                      array then we just return all questions.
187
-     * @return EE_Question[]
188
-     */
189
-    public function questions_not_in_group($question_IDS_in_group = false)
190
-    {
191
-        if ($question_IDS_in_group === false) {
192
-            $questions = $this->questions();
193
-            $question_IDS_in_group = ! empty($questions) ? array_keys($questions) : array();
194
-        }
195
-        $_where = ! empty($question_IDS_in_group) ? array('QST_ID' => array('not_in', $question_IDS_in_group))
196
-            : array();
197
-
198
-        return EEM_Question::instance()->get_all(array($_where, 'order_by' => array('QST_ID' => 'ASC')));
199
-    }
200
-
201
-
202
-    /**
203
-     * Gets all events which are related to this question group
204
-     *
205
-     * @return EE_Event[]
206
-     */
207
-    public function events()
208
-    {
209
-        return $this->get_many_related('Event');
210
-    }
211
-
212
-
213
-    /**
214
-     * Adds the question to this question group
215
-     *
216
-     * @param EE_Question || int $question object or ID
217
-     * @return boolean if successful
218
-     */
219
-    public function add_question($questionObjectOrID)
220
-    {
221
-        return $this->_add_relation_to($questionObjectOrID, 'Question');
222
-    }
223
-
224
-
225
-    /**
226
-     * Removes the question from this question group
227
-     *
228
-     * @param EE_Question || int $question object or ID
229
-     * @return boolean of success
230
-     */
231
-    public function remove_question($questionObjectOrID)
232
-    {
233
-        return $this->_remove_relation_to($questionObjectOrID, 'Question');
234
-    }
235
-
236
-
237
-    /**
238
-     * @param $questionObjectOrID
239
-     * @param $qst_order
240
-     * @return int
241
-     */
242
-    public function update_question_order($questionObjectOrID, $qst_order)
243
-    {
244
-        $qst_ID = $questionObjectOrID instanceof EE_Question ? $questionObjectOrID->ID() : (int) $questionObjectOrID;
245
-        return EEM_Question_Group_Question::instance()->update(
246
-            array('QGQ_order' => $qst_order),
247
-            array(
248
-                array(
249
-                    'QST_ID' => $qst_ID,
250
-                    'QSG_ID' => $this->ID(),
251
-                ),
252
-            )
253
-        );
254
-    }
255
-
256
-
257
-    /**
258
-     * Basically this is method just returns whether the question group has any questions with answers.  This is used
259
-     * by the admin currently to determine whether we should display the ui for deleting permanently or not b/c
260
-     * question groups with questions that have answers should not be possible to delete permanently
261
-     *
262
-     * @return boolean true if has questions with answers, false if not.
263
-     */
264
-    public function has_questions_with_answers()
265
-    {
266
-        $has_answers = false;
267
-        $questions = $this->get_many_related('Question');
268
-        foreach ($questions as $question) {
269
-            if ($question->count_related('Answer') > 0) {
270
-                $has_answers = true;
271
-            }
272
-        }
273
-        return $has_answers;
274
-    }
275
-
276
-
277
-    /**
278
-     * The purpose of this method is set the question group order for this question group to be the max out of all
279
-     * question groups
280
-     *
281
-     * @access public
282
-     * @return void
283
-     */
284
-    public function set_order_to_latest()
285
-    {
286
-        $latest_order = $this->get_model()->get_latest_question_group_order();
287
-        $latest_order++;
288
-        $this->set('QSG_order', $latest_order);
289
-    }
14
+	/**
15
+	 * @param array $props_n_values
16
+	 * @return EE_Question_Group|mixed
17
+	 */
18
+	public static function new_instance($props_n_values = array())
19
+	{
20
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
21
+		return $has_object ? $has_object : new self($props_n_values);
22
+	}
23
+
24
+
25
+	/**
26
+	 * @param array $props_n_values
27
+	 * @return EE_Question_Group
28
+	 */
29
+	public static function new_instance_from_db($props_n_values = array())
30
+	{
31
+		return new self($props_n_values, true);
32
+	}
33
+
34
+
35
+	/**
36
+	 * gets the question group's name
37
+	 *
38
+	 * @access public
39
+	 * @param bool $pretty
40
+	 * @return string
41
+	 */
42
+	public function name($pretty = false)
43
+	{
44
+		return $pretty ? $this->get_pretty('QSG_name') : $this->get('QSG_name');
45
+	}
46
+
47
+
48
+	/**
49
+	 * Gets the question group's internal name
50
+	 *
51
+	 * @access public
52
+	 * @return string
53
+	 */
54
+	public function identifier()
55
+	{
56
+		return $this->get('QSG_identifier');
57
+	}
58
+
59
+
60
+	/**
61
+	 * Gets the question group's description
62
+	 *
63
+	 * @access public
64
+	 * @param bool $pretty
65
+	 * @return string
66
+	 */
67
+	public function desc($pretty = false)
68
+	{
69
+		return $pretty ? $this->get_pretty('QSG_desc') : $this->get('QSG_desc');
70
+	}
71
+
72
+
73
+	/**
74
+	 * Gets the question group's order number in a sequence
75
+	 * of other question groups
76
+	 *
77
+	 * @access public
78
+	 * @return int
79
+	 */
80
+	public function order()
81
+	{
82
+		return $this->get('QSG_order');
83
+	}
84
+
85
+
86
+	/**
87
+	 * Returns whether to show the group's name on the frontend
88
+	 *
89
+	 * @access public
90
+	 * @return boolean
91
+	 */
92
+	public function show_group_name()
93
+	{
94
+		return $this->get('QSG_show_group_name');
95
+	}
96
+
97
+
98
+	/**
99
+	 * Returns whether to show the group's description
100
+	 * on the frontend
101
+	 *
102
+	 * @access public
103
+	 * @return boolean
104
+	 */
105
+	public function show_group_desc()
106
+	{
107
+		return $this->get('QSG_show_group_desc');
108
+	}
109
+
110
+
111
+	/**
112
+	 * Returns whether this is a 'system group' (meaning
113
+	 * a question group integral to the system, whose questions
114
+	 * relate to the attendee table)
115
+	 *
116
+	 * @access public
117
+	 * @return int
118
+	 */
119
+	public function system_group()
120
+	{
121
+		return $this->get('QSG_system');
122
+	}
123
+
124
+
125
+	/**
126
+	 * get the author of the question group.
127
+	 *
128
+	 * @since 4.5.0
129
+	 *
130
+	 * @return int
131
+	 */
132
+	public function wp_user()
133
+	{
134
+		return $this->get('QSG_wp_user');
135
+	}
136
+
137
+
138
+	/**
139
+	 * Returns whether this question group has
140
+	 * been deleted
141
+	 *
142
+	 * @access public
143
+	 * @return boolean
144
+	 */
145
+	public function deleted()
146
+	{
147
+		return $this->get('QST_deleted');
148
+	}
149
+
150
+
151
+	/**
152
+	 * Gets an array of questions with questions IN the group at the start of the array and questions NOT in the group
153
+	 * at the end of the array.  Questions in the group are ordered by Question_Group_Question.QGQ_order and questions
154
+	 * NOT in the group are ordered by Question.QGQ_order
155
+	 *
156
+	 * @return EE_Question[]
157
+	 */
158
+	public function questions_in_and_not_in_group()
159
+	{
160
+		$questions_in_group = $this->questions();
161
+		$exclude_question_ids = ! empty($questions_in_group) ? array_keys($questions_in_group) : array();
162
+		$questions_not_in_group = $this->questions_not_in_group($exclude_question_ids);
163
+		return $questions_in_group + $questions_not_in_group;
164
+	}
165
+
166
+
167
+	/**
168
+	 * Gets all the questions which are part of this question group (ordered Question_Group_Question.QGQ_order)
169
+	 *
170
+	 * @param array $query_params
171
+	 * @return EE_Question[]
172
+	 */
173
+	public function questions($query_params = array())
174
+	{
175
+		$query_params = ! empty($query_params) ? $query_params
176
+			: array('order_by' => array('Question_Group_Question.QGQ_order' => 'ASC'));
177
+		return $this->ID() ? $this->get_many_related('Question', $query_params) : array();
178
+	}
179
+
180
+
181
+	/**
182
+	 * Gets all the questions which are NOT part of this question group.
183
+	 *
184
+	 * @param  mixed $question_IDS_in_group if empty array then all questions returned.  if FALSE then we first get
185
+	 *                                      questions in this group and exclude them from questions get all. IF empty
186
+	 *                                      array then we just return all questions.
187
+	 * @return EE_Question[]
188
+	 */
189
+	public function questions_not_in_group($question_IDS_in_group = false)
190
+	{
191
+		if ($question_IDS_in_group === false) {
192
+			$questions = $this->questions();
193
+			$question_IDS_in_group = ! empty($questions) ? array_keys($questions) : array();
194
+		}
195
+		$_where = ! empty($question_IDS_in_group) ? array('QST_ID' => array('not_in', $question_IDS_in_group))
196
+			: array();
197
+
198
+		return EEM_Question::instance()->get_all(array($_where, 'order_by' => array('QST_ID' => 'ASC')));
199
+	}
200
+
201
+
202
+	/**
203
+	 * Gets all events which are related to this question group
204
+	 *
205
+	 * @return EE_Event[]
206
+	 */
207
+	public function events()
208
+	{
209
+		return $this->get_many_related('Event');
210
+	}
211
+
212
+
213
+	/**
214
+	 * Adds the question to this question group
215
+	 *
216
+	 * @param EE_Question || int $question object or ID
217
+	 * @return boolean if successful
218
+	 */
219
+	public function add_question($questionObjectOrID)
220
+	{
221
+		return $this->_add_relation_to($questionObjectOrID, 'Question');
222
+	}
223
+
224
+
225
+	/**
226
+	 * Removes the question from this question group
227
+	 *
228
+	 * @param EE_Question || int $question object or ID
229
+	 * @return boolean of success
230
+	 */
231
+	public function remove_question($questionObjectOrID)
232
+	{
233
+		return $this->_remove_relation_to($questionObjectOrID, 'Question');
234
+	}
235
+
236
+
237
+	/**
238
+	 * @param $questionObjectOrID
239
+	 * @param $qst_order
240
+	 * @return int
241
+	 */
242
+	public function update_question_order($questionObjectOrID, $qst_order)
243
+	{
244
+		$qst_ID = $questionObjectOrID instanceof EE_Question ? $questionObjectOrID->ID() : (int) $questionObjectOrID;
245
+		return EEM_Question_Group_Question::instance()->update(
246
+			array('QGQ_order' => $qst_order),
247
+			array(
248
+				array(
249
+					'QST_ID' => $qst_ID,
250
+					'QSG_ID' => $this->ID(),
251
+				),
252
+			)
253
+		);
254
+	}
255
+
256
+
257
+	/**
258
+	 * Basically this is method just returns whether the question group has any questions with answers.  This is used
259
+	 * by the admin currently to determine whether we should display the ui for deleting permanently or not b/c
260
+	 * question groups with questions that have answers should not be possible to delete permanently
261
+	 *
262
+	 * @return boolean true if has questions with answers, false if not.
263
+	 */
264
+	public function has_questions_with_answers()
265
+	{
266
+		$has_answers = false;
267
+		$questions = $this->get_many_related('Question');
268
+		foreach ($questions as $question) {
269
+			if ($question->count_related('Answer') > 0) {
270
+				$has_answers = true;
271
+			}
272
+		}
273
+		return $has_answers;
274
+	}
275
+
276
+
277
+	/**
278
+	 * The purpose of this method is set the question group order for this question group to be the max out of all
279
+	 * question groups
280
+	 *
281
+	 * @access public
282
+	 * @return void
283
+	 */
284
+	public function set_order_to_latest()
285
+	{
286
+		$latest_order = $this->get_model()->get_latest_question_group_order();
287
+		$latest_order++;
288
+		$this->set('QSG_order', $latest_order);
289
+	}
290 290
 }
Please login to merge, or discard this patch.
core/db_classes/EE_Answer.class.php 1 patch
Indentation   +138 added lines, -138 removed lines patch added patch discarded remove patch
@@ -9,144 +9,144 @@
 block discarded – undo
9 9
  */
10 10
 class EE_Answer extends EE_Base_Class
11 11
 {
12
-    /**
13
-     *
14
-     * @param array $props_n_values
15
-     * @return EE_Answer
16
-     */
17
-    public static function new_instance($props_n_values = array())
18
-    {
19
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__);
20
-        return $has_object ? $has_object : new self($props_n_values);
21
-    }
22
-
23
-
24
-    /**
25
-     *
26
-     * @param array $props_n_values
27
-     * @return EE_Answer
28
-     */
29
-    public static function new_instance_from_db($props_n_values = array())
30
-    {
31
-        return new self($props_n_values, true);
32
-    }
33
-
34
-
35
-    /**
36
-     *    Set Question ID
37
-     *
38
-     * @access        public
39
-     * @param int $QST_ID
40
-     */
41
-    public function set_question($QST_ID = 0)
42
-    {
43
-        $this->set('QST_ID', $QST_ID);
44
-    }
45
-
46
-
47
-    /**
48
-     *    Set Registration ID
49
-     *
50
-     * @access        public
51
-     * @param int $REG_ID
52
-     */
53
-    public function set_registration($REG_ID = 0)
54
-    {
55
-        $this->set('REG_ID', $REG_ID);
56
-    }
57
-
58
-
59
-    /**
60
-     *    Set Answer value
61
-     *
62
-     * @access        public
63
-     * @param mixed $ANS_value
64
-     */
65
-    public function set_value($ANS_value = '')
66
-    {
67
-        $this->set('ANS_value', $ANS_value);
68
-    }
69
-
70
-
71
-    /**
72
-     *    get Attendee First Name
73
-     *
74
-     * @access        public
75
-     * @return        int
76
-     */
77
-    public function registration_ID()
78
-    {
79
-        return $this->get('REG_ID');
80
-    }
81
-
82
-
83
-    /**
84
-     *    get Attendee Last Name
85
-     *
86
-     * @access        public
87
-     * @return        int
88
-     */
89
-    public function question_ID()
90
-    {
91
-        return $this->get('QST_ID');
92
-    }
93
-
94
-
95
-    /**
96
-     *    get Attendee Address
97
-     *
98
-     * @access        public
99
-     * @return        string
100
-     */
101
-    public function value()
102
-    {
103
-        return $this->get('ANS_value');
104
-    }
105
-
106
-
107
-    /**
108
-     * Gets a pretty form of the value (mostly applies to answers that have multiple answers)
109
-     *
110
-     * @param null $schema
111
-     * @return string
112
-     */
113
-    public function pretty_value($schema = null)
114
-    {
115
-        return $this->get_pretty('ANS_value', $schema);
116
-    }
117
-
118
-
119
-    /**
120
-     * Echoes out a pretty value (even for multi-choice options)
121
-     *
122
-     * @param string $schema
123
-     */
124
-    public function e_value($schema = null)
125
-    {
126
-        $this->e('ANS_value', $schema);
127
-    }
128
-
129
-
130
-    /**
131
-     * Gets the related EE_Question to this EE_Answer
132
-     *
133
-     * @return EE_Question
134
-     */
135
-    public function question()
136
-    {
137
-        return $this->get_first_related('Question');
138
-    }
139
-
140
-
141
-    /**
142
-     * Gets the related EE_Registration to this EE_Answer
143
-     *
144
-     * @return EE_Registration
145
-     */
146
-    public function registration()
147
-    {
148
-        return $this->get_first_related('Registration');
149
-    }
12
+	/**
13
+	 *
14
+	 * @param array $props_n_values
15
+	 * @return EE_Answer
16
+	 */
17
+	public static function new_instance($props_n_values = array())
18
+	{
19
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
20
+		return $has_object ? $has_object : new self($props_n_values);
21
+	}
22
+
23
+
24
+	/**
25
+	 *
26
+	 * @param array $props_n_values
27
+	 * @return EE_Answer
28
+	 */
29
+	public static function new_instance_from_db($props_n_values = array())
30
+	{
31
+		return new self($props_n_values, true);
32
+	}
33
+
34
+
35
+	/**
36
+	 *    Set Question ID
37
+	 *
38
+	 * @access        public
39
+	 * @param int $QST_ID
40
+	 */
41
+	public function set_question($QST_ID = 0)
42
+	{
43
+		$this->set('QST_ID', $QST_ID);
44
+	}
45
+
46
+
47
+	/**
48
+	 *    Set Registration ID
49
+	 *
50
+	 * @access        public
51
+	 * @param int $REG_ID
52
+	 */
53
+	public function set_registration($REG_ID = 0)
54
+	{
55
+		$this->set('REG_ID', $REG_ID);
56
+	}
57
+
58
+
59
+	/**
60
+	 *    Set Answer value
61
+	 *
62
+	 * @access        public
63
+	 * @param mixed $ANS_value
64
+	 */
65
+	public function set_value($ANS_value = '')
66
+	{
67
+		$this->set('ANS_value', $ANS_value);
68
+	}
69
+
70
+
71
+	/**
72
+	 *    get Attendee First Name
73
+	 *
74
+	 * @access        public
75
+	 * @return        int
76
+	 */
77
+	public function registration_ID()
78
+	{
79
+		return $this->get('REG_ID');
80
+	}
81
+
82
+
83
+	/**
84
+	 *    get Attendee Last Name
85
+	 *
86
+	 * @access        public
87
+	 * @return        int
88
+	 */
89
+	public function question_ID()
90
+	{
91
+		return $this->get('QST_ID');
92
+	}
93
+
94
+
95
+	/**
96
+	 *    get Attendee Address
97
+	 *
98
+	 * @access        public
99
+	 * @return        string
100
+	 */
101
+	public function value()
102
+	{
103
+		return $this->get('ANS_value');
104
+	}
105
+
106
+
107
+	/**
108
+	 * Gets a pretty form of the value (mostly applies to answers that have multiple answers)
109
+	 *
110
+	 * @param null $schema
111
+	 * @return string
112
+	 */
113
+	public function pretty_value($schema = null)
114
+	{
115
+		return $this->get_pretty('ANS_value', $schema);
116
+	}
117
+
118
+
119
+	/**
120
+	 * Echoes out a pretty value (even for multi-choice options)
121
+	 *
122
+	 * @param string $schema
123
+	 */
124
+	public function e_value($schema = null)
125
+	{
126
+		$this->e('ANS_value', $schema);
127
+	}
128
+
129
+
130
+	/**
131
+	 * Gets the related EE_Question to this EE_Answer
132
+	 *
133
+	 * @return EE_Question
134
+	 */
135
+	public function question()
136
+	{
137
+		return $this->get_first_related('Question');
138
+	}
139
+
140
+
141
+	/**
142
+	 * Gets the related EE_Registration to this EE_Answer
143
+	 *
144
+	 * @return EE_Registration
145
+	 */
146
+	public function registration()
147
+	{
148
+		return $this->get_first_related('Registration');
149
+	}
150 150
 }
151 151
 
152 152
 /* End of file EE_Answer.class.php */
Please login to merge, or discard this patch.
core/Factory.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -17,32 +17,32 @@
 block discarded – undo
17 17
  */
18 18
 class Factory
19 19
 {
20
-    /**
21
-     * @param string $class_name
22
-     * @param array  $arguments
23
-     * @return mixed|null
24
-     * @throws EE_Error
25
-     */
26
-    public static function create($class_name, $arguments = array())
27
-    {
28
-        if (empty($class_name)) {
29
-            throw new EE_Error(
30
-                esc_html__('You must provide a class name in order to instantiate it.', 'event_espresso')
31
-            );
32
-        }
33
-        switch ($class_name) {
34
-            case 'Request':
35
-            case 'EE_Request':
36
-                $object = LoaderFactory::getLoader()->getShared('EventEspresso\core\services\request\Request');
37
-                break;
38
-            case 'Iframe':
39
-                $title = isset($arguments['title']) ? $arguments['title'] : null;
40
-                $content = isset($arguments['content']) ? $arguments['content'] : null;
41
-                $object = new Iframe($title, $content);
42
-                break;
43
-            default:
44
-                $object = new $class_name($arguments);
45
-        }
46
-        return $object;
47
-    }
20
+	/**
21
+	 * @param string $class_name
22
+	 * @param array  $arguments
23
+	 * @return mixed|null
24
+	 * @throws EE_Error
25
+	 */
26
+	public static function create($class_name, $arguments = array())
27
+	{
28
+		if (empty($class_name)) {
29
+			throw new EE_Error(
30
+				esc_html__('You must provide a class name in order to instantiate it.', 'event_espresso')
31
+			);
32
+		}
33
+		switch ($class_name) {
34
+			case 'Request':
35
+			case 'EE_Request':
36
+				$object = LoaderFactory::getLoader()->getShared('EventEspresso\core\services\request\Request');
37
+				break;
38
+			case 'Iframe':
39
+				$title = isset($arguments['title']) ? $arguments['title'] : null;
40
+				$content = isset($arguments['content']) ? $arguments['content'] : null;
41
+				$object = new Iframe($title, $content);
42
+				break;
43
+			default:
44
+				$object = new $class_name($arguments);
45
+		}
46
+		return $object;
47
+	}
48 48
 }
Please login to merge, or discard this patch.
admin_pages/events/qtips/EE_Event_Editor_Decaf_Tips.lib.php 1 patch
Indentation   +357 added lines, -357 removed lines patch added patch discarded remove patch
@@ -11,386 +11,386 @@
 block discarded – undo
11 11
  */
12 12
 class EE_Event_Editor_Decaf_Tips extends EE_Qtip_Config
13 13
 {
14
-    /**
15
-     * Creates the array for the tips
16
-     */
17
-    protected function _set_tips_array()
18
-    {
19
-        $this->_qtipsa = array(
20
-            2   => array(
21
-                'content_id' => 'dtt-evt-name-label',
22
-                'target'     => '.DTT_name_label',
23
-                'content'    => $this->_get_event_name_label_info(),
24
-            ),
25
-            3   => array(
26
-                'content_id' => 'dtt-evt-start-label',
27
-                'target'     => '.DTT_EVT_start_label',
28
-                'content'    => $this->_get_event_start_label_info(),
29
-            ),
30
-            5   => array(
31
-                'content_id' => 'dtt-evt-end-label',
32
-                'target'     => '.DTT_EVT_end_label',
33
-                'content'    => $this->_get_event_end_label_info(),
34
-            ),
35
-            10  => array(
36
-                'content_id' => 'dtt-reg-limit-label',
37
-                'target'     => '.DTT_reg_limit_label',
38
-                'content'    => $this->_get_event_datetime_DTT_reg_limit_label_info(),
39
-            ),
40
-            15  => array(
41
-                'content_id' => 'dtt-sold-label',
42
-                'target'     => '.DTT_sold_label',
43
-                'content'    => $this->_get_event_datetime_DTT_sold_label_info(),
44
-            ),
45
-            17  => array(
46
-                'content_id' => 'dtt-reserved-label',
47
-                'target'     => '.DTT_reserved_label',
48
-                'content'    => $this->_get_event_datetime_DTT_reserved_label_info(),
49
-            ),
50
-            20  => array(
51
-                'content_id' => 'tkt-name-label',
52
-                'target'     => '.TKT_name_label',
53
-                'content'    => $this->_get_event_ticket_TKT_name_label_info(),
54
-            ),
55
-            25  => array(
56
-                'content_id' => 'tkt-goes-on-sale-label',
57
-                'target'     => '.TKT_goes_on_sale_label',
58
-                'content'    => $this->_get_event_ticket_TKT_goes_on_sale_label_info(),
59
-            ),
60
-            30  => array(
61
-                'content_id' => 'tkt-sell-until-label',
62
-                'target'     => '.TKT_sell_until_label',
63
-                'content'    => $this->_get_event_ticket_TKT_sell_until_label_info(),
64
-            ),
65
-            35  => array(
66
-                'content_id' => 'tkt-price-label',
67
-                'target'     => '.TKT_price_label',
68
-                'content'    => $this->_get_event_ticket_TKT_price_label_info(),
69
-            ),
70
-            40  => array(
71
-                'content_id' => 'tkt-qty-label',
72
-                'target'     => '.TKT_qty_label',
73
-                'content'    => $this->_get_event_ticket_TKT_qty_label_info(),
74
-            ),
75
-            45  => array(
76
-                'content_id' => 'tkt-sold-label',
77
-                'target'     => '.TKT_sold_label',
78
-                'content'    => $this->_get_event_ticket_TKT_sold_label_info(),
79
-            ),
80
-            47  => array(
81
-                'content_id' => 'tkt-reserved-label',
82
-                'target'     => '.TKT_reserved_label',
83
-                'content'    => $this->_get_event_ticket_TKT_reserved_label_info(),
84
-            ),
85
-            50  => array(
86
-                'content_id' => 'tkt-regs-label',
87
-                'target'     => '.TKT_regs_label',
88
-                'content'    => $this->_get_event_ticket_TKT_regs_label_info(),
89
-            ),
90
-            55  => array(
91
-                'content_id' => 'ant-tkt-name-label',
92
-                'target'     => '.ANT_TKT_name_label',
93
-                'content'    => $this->_get_event_ticket_ANT_TKT_name_label_info(),
94
-            ),
95
-            60  => array(
96
-                'content_id' => 'ant-tkt-goes-on-sale-label',
97
-                'target'     => '.ANT_TKT_goes_on_sale_label',
98
-                'content'    => $this->_get_event_ticket_ANT_TKT_goes_on_sale_label_info(),
99
-            ),
100
-            65  => array(
101
-                'content_id' => 'ant-tkt-sell-until-label',
102
-                'target'     => '.ANT_TKT_sell_until_label',
103
-                'content'    => $this->_get_event_ticket_ANT_TKT_sell_until_label_info(),
104
-            ),
105
-            70  => array(
106
-                'content_id' => 'ant-tkt-price-label',
107
-                'target'     => '.ANT_TKT_price_label',
108
-                'content'    => $this->_get_event_ticket_ANT_TKT_price_label_info(),
109
-            ),
110
-            75  => array(
111
-                'content_id' => 'ant-tkt-qty-label',
112
-                'target'     => '.ANT_TKT_qty_label',
113
-                'content'    => $this->_get_event_ticket_ANT_TKT_qty_label_info(),
114
-            ),
115
-            80  => array(
116
-                'content_id' => 'ane-dtt-evt-start-label',
117
-                'target'     => '.add-new-event-datetime-DTT_EVT_start_label',
118
-                'content'    => $this->_get_add_new_event_start_label_info(),
119
-            ),
120
-            85  => array(
121
-                'content_id' => 'ane-dtt-evt-end-label',
122
-                'target'     => '.add-new-event-datetime-DTT_EVT_end_label',
123
-                'content'    => $this->_get_add_new_event_end_label_info(),
124
-            ),
125
-            90  => array(
126
-                'content_id' => 'ane_dtt-reg-limit-label',
127
-                'target'     => '.add-new-event-datetime-DTT_reg_limit_label',
128
-                'content'    => $this->_get_add_new_event_datetime_DTT_reg_limit_label_info(),
129
-            ),
130
-            100 => array(
131
-                'content_id' => 'td-tkt-number-datetimes-label',
132
-                'target'     => '.TD_TKT_number_datetimes_label',
133
-                'content'    => $this->_get_event_ticket_TD_TKT_number_datetimes_label_info(),
134
-            ),
135
-            110 => array(
136
-                'content_id' => 'td-tkt-min-qty-label',
137
-                'target'     => '.TD_TKT_min_qty_label',
138
-                'content'    => $this->_get_event_ticket_TD_TKT_min_qty_label_info(),
139
-            ),
140
-            120 => array(
141
-                'content_id' => 'td-tkt-max-qty-label',
142
-                'target'     => '.TD_TKT_max_qty_label',
143
-                'content'    => $this->_get_event_ticket_TD_TKT_max_qty_label_info(),
144
-            ),
145
-            130 => array(
146
-                'content_id' => 'ticket-lock-icon',
147
-                'target'     => '.ticket-archived .dashicons-lock',
148
-                'content'    => esc_html__(
149
-                    'This ticket was automatically locked and archived because it has a sold quantity and the price was modified. Existing ticket holders will still be verified using these ticket details. However, Event Espresso has automatically created a new active ticket with the modified price for new registrants. This lock is meant to prevent accidental trashing of this ticket. Certain details of this ticket can still be edited (non disabled inputs).',
150
-                    'event_espresso'
151
-                ),
152
-            ),
153
-            135 => array(
154
-                'content_id' => 'ticket-lock-icon-event-editor',
155
-                'target'     => '.dashicons-lock',
156
-                'content'    => esc_html__(
157
-                    'This datetime can no longer be duplicated or deleted because tickets associated with this datetime have already been sold.',
158
-                    'event_espresso'
159
-                ),
160
-            ),
161
-        );
162
-    }
14
+	/**
15
+	 * Creates the array for the tips
16
+	 */
17
+	protected function _set_tips_array()
18
+	{
19
+		$this->_qtipsa = array(
20
+			2   => array(
21
+				'content_id' => 'dtt-evt-name-label',
22
+				'target'     => '.DTT_name_label',
23
+				'content'    => $this->_get_event_name_label_info(),
24
+			),
25
+			3   => array(
26
+				'content_id' => 'dtt-evt-start-label',
27
+				'target'     => '.DTT_EVT_start_label',
28
+				'content'    => $this->_get_event_start_label_info(),
29
+			),
30
+			5   => array(
31
+				'content_id' => 'dtt-evt-end-label',
32
+				'target'     => '.DTT_EVT_end_label',
33
+				'content'    => $this->_get_event_end_label_info(),
34
+			),
35
+			10  => array(
36
+				'content_id' => 'dtt-reg-limit-label',
37
+				'target'     => '.DTT_reg_limit_label',
38
+				'content'    => $this->_get_event_datetime_DTT_reg_limit_label_info(),
39
+			),
40
+			15  => array(
41
+				'content_id' => 'dtt-sold-label',
42
+				'target'     => '.DTT_sold_label',
43
+				'content'    => $this->_get_event_datetime_DTT_sold_label_info(),
44
+			),
45
+			17  => array(
46
+				'content_id' => 'dtt-reserved-label',
47
+				'target'     => '.DTT_reserved_label',
48
+				'content'    => $this->_get_event_datetime_DTT_reserved_label_info(),
49
+			),
50
+			20  => array(
51
+				'content_id' => 'tkt-name-label',
52
+				'target'     => '.TKT_name_label',
53
+				'content'    => $this->_get_event_ticket_TKT_name_label_info(),
54
+			),
55
+			25  => array(
56
+				'content_id' => 'tkt-goes-on-sale-label',
57
+				'target'     => '.TKT_goes_on_sale_label',
58
+				'content'    => $this->_get_event_ticket_TKT_goes_on_sale_label_info(),
59
+			),
60
+			30  => array(
61
+				'content_id' => 'tkt-sell-until-label',
62
+				'target'     => '.TKT_sell_until_label',
63
+				'content'    => $this->_get_event_ticket_TKT_sell_until_label_info(),
64
+			),
65
+			35  => array(
66
+				'content_id' => 'tkt-price-label',
67
+				'target'     => '.TKT_price_label',
68
+				'content'    => $this->_get_event_ticket_TKT_price_label_info(),
69
+			),
70
+			40  => array(
71
+				'content_id' => 'tkt-qty-label',
72
+				'target'     => '.TKT_qty_label',
73
+				'content'    => $this->_get_event_ticket_TKT_qty_label_info(),
74
+			),
75
+			45  => array(
76
+				'content_id' => 'tkt-sold-label',
77
+				'target'     => '.TKT_sold_label',
78
+				'content'    => $this->_get_event_ticket_TKT_sold_label_info(),
79
+			),
80
+			47  => array(
81
+				'content_id' => 'tkt-reserved-label',
82
+				'target'     => '.TKT_reserved_label',
83
+				'content'    => $this->_get_event_ticket_TKT_reserved_label_info(),
84
+			),
85
+			50  => array(
86
+				'content_id' => 'tkt-regs-label',
87
+				'target'     => '.TKT_regs_label',
88
+				'content'    => $this->_get_event_ticket_TKT_regs_label_info(),
89
+			),
90
+			55  => array(
91
+				'content_id' => 'ant-tkt-name-label',
92
+				'target'     => '.ANT_TKT_name_label',
93
+				'content'    => $this->_get_event_ticket_ANT_TKT_name_label_info(),
94
+			),
95
+			60  => array(
96
+				'content_id' => 'ant-tkt-goes-on-sale-label',
97
+				'target'     => '.ANT_TKT_goes_on_sale_label',
98
+				'content'    => $this->_get_event_ticket_ANT_TKT_goes_on_sale_label_info(),
99
+			),
100
+			65  => array(
101
+				'content_id' => 'ant-tkt-sell-until-label',
102
+				'target'     => '.ANT_TKT_sell_until_label',
103
+				'content'    => $this->_get_event_ticket_ANT_TKT_sell_until_label_info(),
104
+			),
105
+			70  => array(
106
+				'content_id' => 'ant-tkt-price-label',
107
+				'target'     => '.ANT_TKT_price_label',
108
+				'content'    => $this->_get_event_ticket_ANT_TKT_price_label_info(),
109
+			),
110
+			75  => array(
111
+				'content_id' => 'ant-tkt-qty-label',
112
+				'target'     => '.ANT_TKT_qty_label',
113
+				'content'    => $this->_get_event_ticket_ANT_TKT_qty_label_info(),
114
+			),
115
+			80  => array(
116
+				'content_id' => 'ane-dtt-evt-start-label',
117
+				'target'     => '.add-new-event-datetime-DTT_EVT_start_label',
118
+				'content'    => $this->_get_add_new_event_start_label_info(),
119
+			),
120
+			85  => array(
121
+				'content_id' => 'ane-dtt-evt-end-label',
122
+				'target'     => '.add-new-event-datetime-DTT_EVT_end_label',
123
+				'content'    => $this->_get_add_new_event_end_label_info(),
124
+			),
125
+			90  => array(
126
+				'content_id' => 'ane_dtt-reg-limit-label',
127
+				'target'     => '.add-new-event-datetime-DTT_reg_limit_label',
128
+				'content'    => $this->_get_add_new_event_datetime_DTT_reg_limit_label_info(),
129
+			),
130
+			100 => array(
131
+				'content_id' => 'td-tkt-number-datetimes-label',
132
+				'target'     => '.TD_TKT_number_datetimes_label',
133
+				'content'    => $this->_get_event_ticket_TD_TKT_number_datetimes_label_info(),
134
+			),
135
+			110 => array(
136
+				'content_id' => 'td-tkt-min-qty-label',
137
+				'target'     => '.TD_TKT_min_qty_label',
138
+				'content'    => $this->_get_event_ticket_TD_TKT_min_qty_label_info(),
139
+			),
140
+			120 => array(
141
+				'content_id' => 'td-tkt-max-qty-label',
142
+				'target'     => '.TD_TKT_max_qty_label',
143
+				'content'    => $this->_get_event_ticket_TD_TKT_max_qty_label_info(),
144
+			),
145
+			130 => array(
146
+				'content_id' => 'ticket-lock-icon',
147
+				'target'     => '.ticket-archived .dashicons-lock',
148
+				'content'    => esc_html__(
149
+					'This ticket was automatically locked and archived because it has a sold quantity and the price was modified. Existing ticket holders will still be verified using these ticket details. However, Event Espresso has automatically created a new active ticket with the modified price for new registrants. This lock is meant to prevent accidental trashing of this ticket. Certain details of this ticket can still be edited (non disabled inputs).',
150
+					'event_espresso'
151
+				),
152
+			),
153
+			135 => array(
154
+				'content_id' => 'ticket-lock-icon-event-editor',
155
+				'target'     => '.dashicons-lock',
156
+				'content'    => esc_html__(
157
+					'This datetime can no longer be duplicated or deleted because tickets associated with this datetime have already been sold.',
158
+					'event_espresso'
159
+				),
160
+			),
161
+		);
162
+	}
163 163
 
164
-    /**
165
-     * @return string
166
-     */
167
-    private function _get_event_name_label_info()
168
-    {
169
-        return esc_html__(
170
-            'This is the name or title for an event datetime.',
171
-            'event_espresso'
172
-        );
173
-    }
164
+	/**
165
+	 * @return string
166
+	 */
167
+	private function _get_event_name_label_info()
168
+	{
169
+		return esc_html__(
170
+			'This is the name or title for an event datetime.',
171
+			'event_espresso'
172
+		);
173
+	}
174 174
 
175
-    /**
176
-     * @return string
177
-     */
178
-    private function _get_event_start_label_info()
179
-    {
180
-        return esc_html__(
181
-            'This shows when this event datetime starts.',
182
-            'event_espresso'
183
-        );
184
-    }
175
+	/**
176
+	 * @return string
177
+	 */
178
+	private function _get_event_start_label_info()
179
+	{
180
+		return esc_html__(
181
+			'This shows when this event datetime starts.',
182
+			'event_espresso'
183
+		);
184
+	}
185 185
 
186
-    /**
187
-     * @return string
188
-     */
189
-    private function _get_event_end_label_info()
190
-    {
191
-        return esc_html__('This shows when this event datetime ends.', 'event_espresso');
192
-    }
186
+	/**
187
+	 * @return string
188
+	 */
189
+	private function _get_event_end_label_info()
190
+	{
191
+		return esc_html__('This shows when this event datetime ends.', 'event_espresso');
192
+	}
193 193
 
194
-    /**
195
-     * @return string
196
-     */
197
-    private function _get_event_datetime_DTT_reg_limit_label_info()
198
-    {
199
-        return esc_html__(
200
-            'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.',
201
-            'event_espresso'
202
-        );
203
-    }
194
+	/**
195
+	 * @return string
196
+	 */
197
+	private function _get_event_datetime_DTT_reg_limit_label_info()
198
+	{
199
+		return esc_html__(
200
+			'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.',
201
+			'event_espresso'
202
+		);
203
+	}
204 204
 
205
-    /**
206
-     * @return string
207
-     */
208
-    private function _get_event_datetime_DTT_sold_label_info()
209
-    {
210
-        return esc_html__(
211
-            'This shows the number of tickets that have been sold that have access to this event datetime.',
212
-            'event_espresso'
213
-        );
214
-    }
205
+	/**
206
+	 * @return string
207
+	 */
208
+	private function _get_event_datetime_DTT_sold_label_info()
209
+	{
210
+		return esc_html__(
211
+			'This shows the number of tickets that have been sold that have access to this event datetime.',
212
+			'event_espresso'
213
+		);
214
+	}
215 215
 
216
-    /**
217
-     * @return string
218
-     */
219
-    private function _get_event_datetime_DTT_reserved_label_info()
220
-    {
221
-        return esc_html__(
222
-            'This shows the number of reserved tickets that have access to this event datetime.',
223
-            'event_espresso'
224
-        );
225
-    }
216
+	/**
217
+	 * @return string
218
+	 */
219
+	private function _get_event_datetime_DTT_reserved_label_info()
220
+	{
221
+		return esc_html__(
222
+			'This shows the number of reserved tickets that have access to this event datetime.',
223
+			'event_espresso'
224
+		);
225
+	}
226 226
 
227
-    /**
228
-     * @return string
229
-     */
230
-    private function _get_event_ticket_TKT_name_label_info()
231
-    {
232
-        return esc_html__('This is the name of this ticket option.', 'event_espresso');
233
-    }
227
+	/**
228
+	 * @return string
229
+	 */
230
+	private function _get_event_ticket_TKT_name_label_info()
231
+	{
232
+		return esc_html__('This is the name of this ticket option.', 'event_espresso');
233
+	}
234 234
 
235
-    /**
236
-     * @return string
237
-     */
238
-    private function _get_event_ticket_TKT_goes_on_sale_label_info()
239
-    {
240
-        return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso');
241
-    }
235
+	/**
236
+	 * @return string
237
+	 */
238
+	private function _get_event_ticket_TKT_goes_on_sale_label_info()
239
+	{
240
+		return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso');
241
+	}
242 242
 
243
-    /**
244
-     * @return string
245
-     */
246
-    private function _get_event_ticket_TKT_sell_until_label_info()
247
-    {
248
-        return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso');
249
-    }
243
+	/**
244
+	 * @return string
245
+	 */
246
+	private function _get_event_ticket_TKT_sell_until_label_info()
247
+	{
248
+		return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso');
249
+	}
250 250
 
251
-    /**
252
-     * @return string
253
-     */
254
-    private function _get_event_ticket_TKT_price_label_info()
255
-    {
256
-        return esc_html__('This is the price for this ticket.', 'event_espresso');
257
-    }
251
+	/**
252
+	 * @return string
253
+	 */
254
+	private function _get_event_ticket_TKT_price_label_info()
255
+	{
256
+		return esc_html__('This is the price for this ticket.', 'event_espresso');
257
+	}
258 258
 
259
-    /**
260
-     * @return string
261
-     */
262
-    private function _get_event_ticket_TKT_qty_label_info()
263
-    {
264
-        return esc_html__(
265
-            'This field shows the quantity of tickets that are available for this type of ticket.',
266
-            'event_espresso'
267
-        );
268
-    }
259
+	/**
260
+	 * @return string
261
+	 */
262
+	private function _get_event_ticket_TKT_qty_label_info()
263
+	{
264
+		return esc_html__(
265
+			'This field shows the quantity of tickets that are available for this type of ticket.',
266
+			'event_espresso'
267
+		);
268
+	}
269 269
 
270
-    /**
271
-     * @return string
272
-     */
273
-    private function _get_event_ticket_TKT_sold_label_info()
274
-    {
275
-        return esc_html__('This shows the number of tickets that have been sold for this ticket.', 'event_espresso');
276
-    }
270
+	/**
271
+	 * @return string
272
+	 */
273
+	private function _get_event_ticket_TKT_sold_label_info()
274
+	{
275
+		return esc_html__('This shows the number of tickets that have been sold for this ticket.', 'event_espresso');
276
+	}
277 277
 
278
-    /**
279
-     * @return string
280
-     */
281
-    private function _get_event_ticket_TKT_reserved_label_info()
282
-    {
283
-        return esc_html__('This shows the number of tickets that are reserved for this ticket.', 'event_espresso');
284
-    }
278
+	/**
279
+	 * @return string
280
+	 */
281
+	private function _get_event_ticket_TKT_reserved_label_info()
282
+	{
283
+		return esc_html__('This shows the number of tickets that are reserved for this ticket.', 'event_espresso');
284
+	}
285 285
 
286
-    /**
287
-     * @return string
288
-     */
289
-    private function _get_event_ticket_TKT_regs_label_info()
290
-    {
291
-        return esc_html__(
292
-            'This shows the number of registrations that have occurred from ticket sales.',
293
-            'event_espresso'
294
-        );
295
-    }
286
+	/**
287
+	 * @return string
288
+	 */
289
+	private function _get_event_ticket_TKT_regs_label_info()
290
+	{
291
+		return esc_html__(
292
+			'This shows the number of registrations that have occurred from ticket sales.',
293
+			'event_espresso'
294
+		);
295
+	}
296 296
 
297
-    /**
298
-     * @return string
299
-     */
300
-    private function _get_event_ticket_ANT_TKT_name_label_info()
301
-    {
302
-        return esc_html__('This is the name of this ticket option.', 'event_espresso');
303
-    }
297
+	/**
298
+	 * @return string
299
+	 */
300
+	private function _get_event_ticket_ANT_TKT_name_label_info()
301
+	{
302
+		return esc_html__('This is the name of this ticket option.', 'event_espresso');
303
+	}
304 304
 
305
-    /**
306
-     * @return string
307
-     */
308
-    private function _get_event_ticket_ANT_TKT_goes_on_sale_label_info()
309
-    {
310
-        return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso');
311
-    }
305
+	/**
306
+	 * @return string
307
+	 */
308
+	private function _get_event_ticket_ANT_TKT_goes_on_sale_label_info()
309
+	{
310
+		return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso');
311
+	}
312 312
 
313
-    /**
314
-     * @return string
315
-     */
316
-    private function _get_event_ticket_ANT_TKT_sell_until_label_info()
317
-    {
318
-        return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso');
319
-    }
313
+	/**
314
+	 * @return string
315
+	 */
316
+	private function _get_event_ticket_ANT_TKT_sell_until_label_info()
317
+	{
318
+		return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso');
319
+	}
320 320
 
321
-    /**
322
-     * @return string
323
-     */
324
-    private function _get_event_ticket_ANT_TKT_price_label_info()
325
-    {
326
-        return esc_html__('This is the price for this ticket.', 'event_espresso');
327
-    }
321
+	/**
322
+	 * @return string
323
+	 */
324
+	private function _get_event_ticket_ANT_TKT_price_label_info()
325
+	{
326
+		return esc_html__('This is the price for this ticket.', 'event_espresso');
327
+	}
328 328
 
329
-    /**
330
-     * @return string
331
-     */
332
-    private function _get_event_ticket_ANT_TKT_qty_label_info()
333
-    {
334
-        return esc_html__(
335
-            'This field shows the quantity of tickets that are available for this type of ticket.',
336
-            'event_espresso'
337
-        );
338
-    }
329
+	/**
330
+	 * @return string
331
+	 */
332
+	private function _get_event_ticket_ANT_TKT_qty_label_info()
333
+	{
334
+		return esc_html__(
335
+			'This field shows the quantity of tickets that are available for this type of ticket.',
336
+			'event_espresso'
337
+		);
338
+	}
339 339
 
340
-    /**
341
-     * @return string
342
-     */
343
-    private function _get_add_new_event_start_label_info()
344
-    {
345
-        return esc_html__('This shows when this event datetime starts.', 'event_espresso');
346
-    }
340
+	/**
341
+	 * @return string
342
+	 */
343
+	private function _get_add_new_event_start_label_info()
344
+	{
345
+		return esc_html__('This shows when this event datetime starts.', 'event_espresso');
346
+	}
347 347
 
348
-    /**
349
-     * @return string
350
-     */
351
-    private function _get_add_new_event_end_label_info()
352
-    {
353
-        return esc_html__('This shows when this event datetime ends.', 'event_espresso');
354
-    }
348
+	/**
349
+	 * @return string
350
+	 */
351
+	private function _get_add_new_event_end_label_info()
352
+	{
353
+		return esc_html__('This shows when this event datetime ends.', 'event_espresso');
354
+	}
355 355
 
356
-    /**
357
-     * @return string
358
-     */
359
-    private function _get_add_new_event_datetime_DTT_reg_limit_label_info()
360
-    {
361
-        return esc_html__(
362
-            'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.',
363
-            'event_espresso'
364
-        );
365
-    }
356
+	/**
357
+	 * @return string
358
+	 */
359
+	private function _get_add_new_event_datetime_DTT_reg_limit_label_info()
360
+	{
361
+		return esc_html__(
362
+			'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.',
363
+			'event_espresso'
364
+		);
365
+	}
366 366
 
367
-    /**
368
-     * @return string
369
-     */
370
-    private function _get_event_ticket_TD_TKT_number_datetimes_label_info()
371
-    {
372
-        return esc_html__(
373
-            'This field allows you to set the number of datetimes that a ticket should have access to.',
374
-            'event_espresso'
375
-        );
376
-    }
367
+	/**
368
+	 * @return string
369
+	 */
370
+	private function _get_event_ticket_TD_TKT_number_datetimes_label_info()
371
+	{
372
+		return esc_html__(
373
+			'This field allows you to set the number of datetimes that a ticket should have access to.',
374
+			'event_espresso'
375
+		);
376
+	}
377 377
 
378
-    /**
379
-     * @return string
380
-     */
381
-    private function _get_event_ticket_TD_TKT_min_qty_label_info()
382
-    {
383
-        return esc_html__(
384
-            'This shows the minimum quantity that can be purchased for this ticket.',
385
-            'event_espresso'
386
-        );
387
-    }
378
+	/**
379
+	 * @return string
380
+	 */
381
+	private function _get_event_ticket_TD_TKT_min_qty_label_info()
382
+	{
383
+		return esc_html__(
384
+			'This shows the minimum quantity that can be purchased for this ticket.',
385
+			'event_espresso'
386
+		);
387
+	}
388 388
 
389
-    /**
390
-     * @return string
391
-     */
392
-    private function _get_event_ticket_TD_TKT_max_qty_label_info()
393
-    {
394
-        return esc_html__('This shows the maximum quantity that can be purchased for this ticket.', 'event_espresso');
395
-    }
389
+	/**
390
+	 * @return string
391
+	 */
392
+	private function _get_event_ticket_TD_TKT_max_qty_label_info()
393
+	{
394
+		return esc_html__('This shows the maximum quantity that can be purchased for this ticket.', 'event_espresso');
395
+	}
396 396
 }
Please login to merge, or discard this patch.
admin_pages/messages/espresso_events_Messages_Hooks.class.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
  */
15 15
 class espresso_events_Messages_Hooks extends EE_Admin_Hooks
16 16
 {
17
-    public function __construct(EE_Admin_Page $admin_page)
18
-    {
19
-        parent::__construct($admin_page);
20
-    }
17
+	public function __construct(EE_Admin_Page $admin_page)
18
+	{
19
+		parent::__construct($admin_page);
20
+	}
21 21
 
22 22
 
23
-    protected function _set_hooks_properties()
24
-    {
25
-        $this->_name = 'messages';
26
-    }
23
+	protected function _set_hooks_properties()
24
+	{
25
+		$this->_name = 'messages';
26
+	}
27 27
 }
Please login to merge, or discard this patch.
caffeinated/modules/recaptcha/ReCaptcha/RequestMethod.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@
 block discarded – undo
32 32
  */
33 33
 interface RequestMethod
34 34
 {
35
-    /**
36
-     * Submit the request with the specified parameters.
37
-     *
38
-     * @param RequestParameters $params Request parameters
39
-     * @return string Body of the reCAPTCHA response
40
-     */
41
-    public function submit(RequestParameters $params);
35
+	/**
36
+	 * Submit the request with the specified parameters.
37
+	 *
38
+	 * @param RequestParameters $params Request parameters
39
+	 * @return string Body of the reCAPTCHA response
40
+	 */
41
+	public function submit(RequestParameters $params);
42 42
 }
Please login to merge, or discard this patch.
caffeinated/modules/recaptcha_invisible/RecaptchaFactory.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -18,35 +18,35 @@
 block discarded – undo
18 18
  */
19 19
 class RecaptchaFactory implements FactoryInterface
20 20
 {
21
-    /**
22
-     * @param array $arguments
23
-     * @return InvisibleRecaptcha
24
-     * @throws InvalidDataTypeException
25
-     * @throws InvalidInterfaceException
26
-     * @throws InvalidArgumentException
27
-     */
28
-    public static function create($arguments = array())
29
-    {
30
-        return LoaderFactory::getLoader()->getShared(
31
-            'EventEspresso\caffeinated\modules\recaptcha_invisible\InvisibleRecaptcha',
32
-            $arguments
33
-        );
34
-    }
21
+	/**
22
+	 * @param array $arguments
23
+	 * @return InvisibleRecaptcha
24
+	 * @throws InvalidDataTypeException
25
+	 * @throws InvalidInterfaceException
26
+	 * @throws InvalidArgumentException
27
+	 */
28
+	public static function create($arguments = array())
29
+	{
30
+		return LoaderFactory::getLoader()->getShared(
31
+			'EventEspresso\caffeinated\modules\recaptcha_invisible\InvisibleRecaptcha',
32
+			$arguments
33
+		);
34
+	}
35 35
 
36 36
 
37 37
 
38
-    /**
39
-     * @param array $arguments
40
-     * @return RecaptchaAdminSettings
41
-     * @throws InvalidDataTypeException
42
-     * @throws InvalidInterfaceException
43
-     * @throws InvalidArgumentException
44
-     */
45
-    public static function getAdminModule($arguments = array())
46
-    {
47
-        return LoaderFactory::getLoader()->getShared(
48
-            'EventEspresso\caffeinated\modules\recaptcha_invisible\RecaptchaAdminSettings',
49
-            $arguments
50
-        );
51
-    }
38
+	/**
39
+	 * @param array $arguments
40
+	 * @return RecaptchaAdminSettings
41
+	 * @throws InvalidDataTypeException
42
+	 * @throws InvalidInterfaceException
43
+	 * @throws InvalidArgumentException
44
+	 */
45
+	public static function getAdminModule($arguments = array())
46
+	{
47
+		return LoaderFactory::getLoader()->getShared(
48
+			'EventEspresso\caffeinated\modules\recaptcha_invisible\RecaptchaAdminSettings',
49
+			$arguments
50
+		);
51
+	}
52 52
 }
Please login to merge, or discard this patch.