Completed
Branch rest-authorization (c7240a)
by
unknown
21:21 queued 18:16
created
core/db_models/fields/EE_Field_With_Model_Name.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,10 +70,10 @@
 block discarded – undo
70 70
         $model_names = array();
71 71
         if (is_array($this->_model_name_pointed_to)) {
72 72
             foreach ($this->_model_name_pointed_to as $model_name) {
73
-                $model_names[] = "EE_" . $model_name;
73
+                $model_names[] = "EE_".$model_name;
74 74
             }
75 75
         } else {
76
-            $model_names = array("EE_" . $this->_model_name_pointed_to);
76
+            $model_names = array("EE_".$this->_model_name_pointed_to);
77 77
         }
78 78
         return $model_names;
79 79
     }
Please login to merge, or discard this patch.
Indentation   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -8,89 +8,89 @@
 block discarded – undo
8 8
  */
9 9
 abstract class EE_Field_With_Model_Name extends EE_Model_Field_Base
10 10
 {
11
-    /**
12
-     * Usually the name of a single model. However, as in the case for custom post types,
13
-     * it can actually be an array of models
14
-     *
15
-     * @var string or array
16
-     */
17
-    protected $_model_name_pointed_to;
11
+	/**
12
+	 * Usually the name of a single model. However, as in the case for custom post types,
13
+	 * it can actually be an array of models
14
+	 *
15
+	 * @var string or array
16
+	 */
17
+	protected $_model_name_pointed_to;
18 18
 
19
-    /**
20
-     * @param string  $table_column  name fo column for field
21
-     * @param string  $nicename      should eb internationalized with esc_html__('blah','event_espresso')
22
-     * @param boolean $nullable
23
-     * @param mixed   $default_value if this is a integer field, it shoudl be an int. if it's a string field, it shoul
24
-     *                               dbe a string
25
-     * @param string|string[]  $model_name    eg 'Event','Answer','Term', etc. Basically its the model class's name
26
-     *                               without the
27
-     *                               "EEM_"
28
-     */
29
-    public function __construct($table_column, $nicename, $nullable, $default_value, $model_name)
30
-    {
31
-        $this->_model_name_pointed_to = $model_name;
32
-        parent::__construct($table_column, $nicename, $nullable, $default_value);
33
-    }
19
+	/**
20
+	 * @param string  $table_column  name fo column for field
21
+	 * @param string  $nicename      should eb internationalized with esc_html__('blah','event_espresso')
22
+	 * @param boolean $nullable
23
+	 * @param mixed   $default_value if this is a integer field, it shoudl be an int. if it's a string field, it shoul
24
+	 *                               dbe a string
25
+	 * @param string|string[]  $model_name    eg 'Event','Answer','Term', etc. Basically its the model class's name
26
+	 *                               without the
27
+	 *                               "EEM_"
28
+	 */
29
+	public function __construct($table_column, $nicename, $nullable, $default_value, $model_name)
30
+	{
31
+		$this->_model_name_pointed_to = $model_name;
32
+		parent::__construct($table_column, $nicename, $nullable, $default_value);
33
+	}
34 34
 
35
-    /**
36
-     * Returns the name of the model(s) pointed to
37
-     *
38
-     * @deprecated since version 4.6.7
39
-     * @return mixed string or array of strings
40
-     */
41
-    public function get_model_name_pointed_to()
42
-    {
43
-        EE_Error::doing_it_wrong(
44
-            'get_model_name_pointed_to',
45
-            esc_html__(
46
-                'This method has been deprecated in favour of instead using get_model_names_pointed_to, which consistently returns an array',
47
-                'event_espresso'
48
-            ),
49
-            '4.6.7'
50
-        );
51
-        return $this->_model_name_pointed_to;
52
-    }
35
+	/**
36
+	 * Returns the name of the model(s) pointed to
37
+	 *
38
+	 * @deprecated since version 4.6.7
39
+	 * @return mixed string or array of strings
40
+	 */
41
+	public function get_model_name_pointed_to()
42
+	{
43
+		EE_Error::doing_it_wrong(
44
+			'get_model_name_pointed_to',
45
+			esc_html__(
46
+				'This method has been deprecated in favour of instead using get_model_names_pointed_to, which consistently returns an array',
47
+				'event_espresso'
48
+			),
49
+			'4.6.7'
50
+		);
51
+		return $this->_model_name_pointed_to;
52
+	}
53 53
 
54
-    /**
55
-     * Gets the model names pointed to by this field, always as an array
56
-     * (even if there's only one)
57
-     *
58
-     * @return array of model names pointed to by this field
59
-     */
60
-    public function get_model_names_pointed_to()
61
-    {
62
-        if (is_array($this->_model_name_pointed_to)) {
63
-            return $this->_model_name_pointed_to;
64
-        } else {
65
-            return array($this->_model_name_pointed_to);
66
-        }
67
-    }
54
+	/**
55
+	 * Gets the model names pointed to by this field, always as an array
56
+	 * (even if there's only one)
57
+	 *
58
+	 * @return array of model names pointed to by this field
59
+	 */
60
+	public function get_model_names_pointed_to()
61
+	{
62
+		if (is_array($this->_model_name_pointed_to)) {
63
+			return $this->_model_name_pointed_to;
64
+		} else {
65
+			return array($this->_model_name_pointed_to);
66
+		}
67
+	}
68 68
 
69
-    /**
70
-     * Returns the model's classname (eg EE_Event instead of just Event)
71
-     *
72
-     * @return array
73
-     */
74
-    public function get_model_class_names_pointed_to()
75
-    {
76
-        $model_names = array();
77
-        if (is_array($this->_model_name_pointed_to)) {
78
-            foreach ($this->_model_name_pointed_to as $model_name) {
79
-                $model_names[] = "EE_" . $model_name;
80
-            }
81
-        } else {
82
-            $model_names = array("EE_" . $this->_model_name_pointed_to);
83
-        }
84
-        return $model_names;
85
-    }
69
+	/**
70
+	 * Returns the model's classname (eg EE_Event instead of just Event)
71
+	 *
72
+	 * @return array
73
+	 */
74
+	public function get_model_class_names_pointed_to()
75
+	{
76
+		$model_names = array();
77
+		if (is_array($this->_model_name_pointed_to)) {
78
+			foreach ($this->_model_name_pointed_to as $model_name) {
79
+				$model_names[] = "EE_" . $model_name;
80
+			}
81
+		} else {
82
+			$model_names = array("EE_" . $this->_model_name_pointed_to);
83
+		}
84
+		return $model_names;
85
+	}
86 86
 
87
-    public function is_model_obj_of_type_pointed_to($model_obj_or_ID)
88
-    {
89
-        foreach ($this->get_model_class_names_pointed_to() as $model_obj_classname) {
90
-            if ($model_obj_or_ID instanceof $model_obj_classname) {
91
-                return true;
92
-            }
93
-        }
94
-        return false;
95
-    }
87
+	public function is_model_obj_of_type_pointed_to($model_obj_or_ID)
88
+	{
89
+		foreach ($this->get_model_class_names_pointed_to() as $model_obj_classname) {
90
+			if ($model_obj_or_ID instanceof $model_obj_classname) {
91
+				return true;
92
+			}
93
+		}
94
+		return false;
95
+	}
96 96
 }
Please login to merge, or discard this patch.
core/db_models/fields/EE_Serialized_Text_Field.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     public function __construct($table_column, $nicename, $nullable, $default_value = null)
20 20
     {
21 21
         parent::__construct($table_column, $nicename, $nullable, $default_value);
22
-        $this->setSchemaType(array('object','string'));
22
+        $this->setSchemaType(array('object', 'string'));
23 23
     }
24 24
 
25 25
 
Please login to merge, or discard this patch.
Indentation   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -8,72 +8,72 @@
 block discarded – undo
8 8
  */
9 9
 class EE_Serialized_Text_Field extends EE_Text_Field_Base
10 10
 {
11
-    /**
12
-     * @param string $table_column
13
-     * @param string $nicename
14
-     * @param bool   $nullable
15
-     * @param null   $default_value
16
-     */
17
-    public function __construct($table_column, $nicename, $nullable, $default_value = null)
18
-    {
19
-        parent::__construct($table_column, $nicename, $nullable, $default_value);
20
-        $this->setSchemaType(array('object','string'));
21
-    }
11
+	/**
12
+	 * @param string $table_column
13
+	 * @param string $nicename
14
+	 * @param bool   $nullable
15
+	 * @param null   $default_value
16
+	 */
17
+	public function __construct($table_column, $nicename, $nullable, $default_value = null)
18
+	{
19
+		parent::__construct($table_column, $nicename, $nullable, $default_value);
20
+		$this->setSchemaType(array('object','string'));
21
+	}
22 22
 
23 23
 
24
-    /**
25
-     * Value SHOULD be an array, and we want to now convert it to a serialized string
26
-     *
27
-     * @param array $value_of_field_on_model_object
28
-     * @return string
29
-     */
30
-    public function prepare_for_use_in_db($value_of_field_on_model_object)
31
-    {
32
-        return maybe_serialize($value_of_field_on_model_object);
33
-    }
24
+	/**
25
+	 * Value SHOULD be an array, and we want to now convert it to a serialized string
26
+	 *
27
+	 * @param array $value_of_field_on_model_object
28
+	 * @return string
29
+	 */
30
+	public function prepare_for_use_in_db($value_of_field_on_model_object)
31
+	{
32
+		return maybe_serialize($value_of_field_on_model_object);
33
+	}
34 34
 
35
-    public function prepare_for_set($value_inputted_for_field_on_model_object)
36
-    {
37
-        $value_inputted_for_field_on_model_object = EEH_Array::maybe_unserialize($value_inputted_for_field_on_model_object);
38
-        if (is_string($value_inputted_for_field_on_model_object)) {
39
-            return parent::prepare_for_set($value_inputted_for_field_on_model_object);
40
-        } elseif (is_array($value_inputted_for_field_on_model_object)) {
41
-            return array_map(array($this, 'prepare_for_set'), $value_inputted_for_field_on_model_object);
42
-        } else {// so they passed NULL or an INT or something wack
43
-            return $value_inputted_for_field_on_model_object;
44
-        }
45
-    }
35
+	public function prepare_for_set($value_inputted_for_field_on_model_object)
36
+	{
37
+		$value_inputted_for_field_on_model_object = EEH_Array::maybe_unserialize($value_inputted_for_field_on_model_object);
38
+		if (is_string($value_inputted_for_field_on_model_object)) {
39
+			return parent::prepare_for_set($value_inputted_for_field_on_model_object);
40
+		} elseif (is_array($value_inputted_for_field_on_model_object)) {
41
+			return array_map(array($this, 'prepare_for_set'), $value_inputted_for_field_on_model_object);
42
+		} else {// so they passed NULL or an INT or something wack
43
+			return $value_inputted_for_field_on_model_object;
44
+		}
45
+	}
46 46
 
47
-    /**
48
-     * Value provided should definetely be a serialized string. We should unserialize into an array
49
-     *
50
-     * @param string $value_found_in_db_for_model_object
51
-     * @return array
52
-     */
53
-    public function prepare_for_set_from_db($value_found_in_db_for_model_object)
54
-    {
55
-        return EEH_Array::maybe_unserialize($value_found_in_db_for_model_object);
56
-    }
47
+	/**
48
+	 * Value provided should definetely be a serialized string. We should unserialize into an array
49
+	 *
50
+	 * @param string $value_found_in_db_for_model_object
51
+	 * @return array
52
+	 */
53
+	public function prepare_for_set_from_db($value_found_in_db_for_model_object)
54
+	{
55
+		return EEH_Array::maybe_unserialize($value_found_in_db_for_model_object);
56
+	}
57 57
 
58
-    /**
59
-     * Gets a string representation of the array
60
-     *
61
-     * @param type   $value_on_field_to_be_outputted
62
-     * @param string $schema , possible values are ',', others can be added
63
-     * @return string
64
-     */
65
-    public function prepare_for_pretty_echoing($value_on_field_to_be_outputted, $schema = null)
66
-    {
67
-        switch ($schema) {
68
-            case 'print_r':
69
-                $pretty_value = print_r($value_on_field_to_be_outputted, true);
70
-                break;
71
-            case 'as_table':
72
-                $pretty_value = EEH_Template::layout_array_as_table($value_on_field_to_be_outputted);
73
-                break;
74
-            default:
75
-                $pretty_value = implode(", ", $value_on_field_to_be_outputted);
76
-        }
77
-        return $pretty_value;
78
-    }
58
+	/**
59
+	 * Gets a string representation of the array
60
+	 *
61
+	 * @param type   $value_on_field_to_be_outputted
62
+	 * @param string $schema , possible values are ',', others can be added
63
+	 * @return string
64
+	 */
65
+	public function prepare_for_pretty_echoing($value_on_field_to_be_outputted, $schema = null)
66
+	{
67
+		switch ($schema) {
68
+			case 'print_r':
69
+				$pretty_value = print_r($value_on_field_to_be_outputted, true);
70
+				break;
71
+			case 'as_table':
72
+				$pretty_value = EEH_Template::layout_array_as_table($value_on_field_to_be_outputted);
73
+				break;
74
+			default:
75
+				$pretty_value = implode(", ", $value_on_field_to_be_outputted);
76
+		}
77
+		return $pretty_value;
78
+	}
79 79
 }
Please login to merge, or discard this patch.
core/db_models/fields/EE_DB_Only_Float_Field.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -3,16 +3,16 @@
 block discarded – undo
3 3
 
4 4
 class EE_DB_Only_Float_Field extends EE_DB_Only_Field_Base
5 5
 {
6
-    /**
7
-     * @param string $table_column
8
-     * @param string $nicename
9
-     * @param bool   $nullable
10
-     * @param null   $default_value
11
-     */
12
-    public function __construct($table_column, $nicename, $nullable, $default_value = null)
13
-    {
14
-        parent::__construct($table_column, $nicename, $nullable, $default_value);
15
-        $this->setSchemaType('number');
16
-    }
6
+	/**
7
+	 * @param string $table_column
8
+	 * @param string $nicename
9
+	 * @param bool   $nullable
10
+	 * @param null   $default_value
11
+	 */
12
+	public function __construct($table_column, $nicename, $nullable, $default_value = null)
13
+	{
14
+		parent::__construct($table_column, $nicename, $nullable, $default_value);
15
+		$this->setSchemaType('number');
16
+	}
17 17
 
18 18
 }
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/single-espresso_events.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
 				<div id="espresso-event-details-dv" class="" >
20 20
 			<?php
21 21
 				// Start the Loop.
22
-				while ( have_posts() ) : the_post();
22
+				while (have_posts()) : the_post();
23 23
 					//  Include the post TYPE-specific template for the content.
24
-					espresso_get_template_part( 'content', 'espresso_events' );
24
+					espresso_get_template_part('content', 'espresso_events');
25 25
 					// If comments are open or we have at least one comment, load up the comment template.
26
-					if ( comments_open() || get_comments_number() ) {
26
+					if (comments_open() || get_comments_number()) {
27 27
 						comments_template();
28 28
 					}
29 29
 				endwhile;
@@ -35,6 +35,6 @@  discard block
 block discarded – undo
35 35
 	</div><!-- #primary -->
36 36
 
37 37
 <?php
38
-get_sidebar( 'content' );
38
+get_sidebar('content');
39 39
 get_sidebar();
40 40
 get_footer();
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
core/services/commands/transaction/CreateTransactionCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     public function getCapCheck()
58 58
     {
59 59
         // need cap for non-AJAX admin requests
60
-        if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
60
+        if ( ! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
61 61
             // there's no specific caps for editing/creating transactions,
62 62
             // so that's why we are using ee_edit_registrations
63 63
             return new CapCheck('ee_edit_registrations', 'create_new_transaction');
Please login to merge, or discard this patch.
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -20,60 +20,60 @@
 block discarded – undo
20 20
  */
21 21
 class CreateTransactionCommand extends Command implements CommandRequiresCapCheckInterface
22 22
 {
23
-    /**
24
-     * @var EE_Checkout $checkout
25
-     */
26
-    protected $checkout;
23
+	/**
24
+	 * @var EE_Checkout $checkout
25
+	 */
26
+	protected $checkout;
27 27
 
28
-    /**
29
-     * @var array $transaction_details
30
-     */
31
-    protected $transaction_details;
28
+	/**
29
+	 * @var array $transaction_details
30
+	 */
31
+	protected $transaction_details;
32 32
 
33 33
 
34
-    /**
35
-     * CreateTransactionCommand constructor.
36
-     *
37
-     * @param EE_Checkout $checkout
38
-     * @param array       $transaction_details
39
-     */
40
-    public function __construct(EE_Checkout $checkout = null, array $transaction_details = array())
41
-    {
42
-        $this->checkout            = $checkout;
43
-        $this->transaction_details = $transaction_details;
44
-    }
34
+	/**
35
+	 * CreateTransactionCommand constructor.
36
+	 *
37
+	 * @param EE_Checkout $checkout
38
+	 * @param array       $transaction_details
39
+	 */
40
+	public function __construct(EE_Checkout $checkout = null, array $transaction_details = array())
41
+	{
42
+		$this->checkout            = $checkout;
43
+		$this->transaction_details = $transaction_details;
44
+	}
45 45
 
46 46
 
47
-    /**
48
-     * @return CapCheckInterface
49
-     * @throws InvalidDataTypeException
50
-     */
51
-    public function getCapCheck()
52
-    {
53
-        // need cap for non-AJAX admin requests
54
-        if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
55
-            // there's no specific caps for editing/creating transactions,
56
-            // so that's why we are using ee_edit_registrations
57
-            return new CapCheck('ee_edit_registrations', 'create_new_transaction');
58
-        }
59
-        return new PublicCapabilities('', 'create_new_transaction');
60
-    }
47
+	/**
48
+	 * @return CapCheckInterface
49
+	 * @throws InvalidDataTypeException
50
+	 */
51
+	public function getCapCheck()
52
+	{
53
+		// need cap for non-AJAX admin requests
54
+		if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
55
+			// there's no specific caps for editing/creating transactions,
56
+			// so that's why we are using ee_edit_registrations
57
+			return new CapCheck('ee_edit_registrations', 'create_new_transaction');
58
+		}
59
+		return new PublicCapabilities('', 'create_new_transaction');
60
+	}
61 61
 
62 62
 
63
-    /**
64
-     * @return EE_Checkout
65
-     */
66
-    public function checkout()
67
-    {
68
-        return $this->checkout;
69
-    }
63
+	/**
64
+	 * @return EE_Checkout
65
+	 */
66
+	public function checkout()
67
+	{
68
+		return $this->checkout;
69
+	}
70 70
 
71 71
 
72
-    /**
73
-     * @return array
74
-     */
75
-    public function transactionDetails()
76
-    {
77
-        return $this->transaction_details;
78
-    }
72
+	/**
73
+	 * @return array
74
+	 */
75
+	public function transactionDetails()
76
+	{
77
+		return $this->transaction_details;
78
+	}
79 79
 }
Please login to merge, or discard this patch.
core/services/commands/attendee/CreateAttendeeCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     public function getCapCheck()
82 82
     {
83 83
         // need cap for non-AJAX admin requests
84
-        if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
84
+        if ( ! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
85 85
             return new CapCheck('ee_edit_contacts', 'create_new_contact');
86 86
         }
87 87
         return new PublicCapabilities('', 'create_new_contact');
Please login to merge, or discard this patch.
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -19,62 +19,62 @@
 block discarded – undo
19 19
  */
20 20
 class CreateAttendeeCommand extends Command implements CommandRequiresCapCheckInterface
21 21
 {
22
-    /**
23
-     * array of details where keys are names of EEM_Attendee model fields
24
-     *
25
-     * @var array $attendee_details
26
-     */
27
-    protected $attendee_details;
22
+	/**
23
+	 * array of details where keys are names of EEM_Attendee model fields
24
+	 *
25
+	 * @var array $attendee_details
26
+	 */
27
+	protected $attendee_details;
28 28
 
29
-    /**
30
-     * an existing registration to associate this attendee with
31
-     *
32
-     * @var EE_Registration $registration
33
-     */
34
-    protected $registration;
29
+	/**
30
+	 * an existing registration to associate this attendee with
31
+	 *
32
+	 * @var EE_Registration $registration
33
+	 */
34
+	protected $registration;
35 35
 
36 36
 
37
-    /**
38
-     * CreateAttendeeCommand constructor.
39
-     *
40
-     * @param array           $attendee_details
41
-     * @param EE_Registration $registration
42
-     */
43
-    public function __construct(array $attendee_details, EE_Registration $registration)
44
-    {
45
-        $this->attendee_details = $attendee_details;
46
-        $this->registration = $registration;
47
-    }
37
+	/**
38
+	 * CreateAttendeeCommand constructor.
39
+	 *
40
+	 * @param array           $attendee_details
41
+	 * @param EE_Registration $registration
42
+	 */
43
+	public function __construct(array $attendee_details, EE_Registration $registration)
44
+	{
45
+		$this->attendee_details = $attendee_details;
46
+		$this->registration = $registration;
47
+	}
48 48
 
49 49
 
50
-    /**
51
-     * @return array
52
-     */
53
-    public function attendeeDetails()
54
-    {
55
-        return $this->attendee_details;
56
-    }
50
+	/**
51
+	 * @return array
52
+	 */
53
+	public function attendeeDetails()
54
+	{
55
+		return $this->attendee_details;
56
+	}
57 57
 
58 58
 
59
-    /**
60
-     * @return EE_Registration
61
-     */
62
-    public function registration()
63
-    {
64
-        return $this->registration;
65
-    }
59
+	/**
60
+	 * @return EE_Registration
61
+	 */
62
+	public function registration()
63
+	{
64
+		return $this->registration;
65
+	}
66 66
 
67 67
 
68
-    /**
69
-     * @return CapCheckInterface
70
-     * @throws InvalidDataTypeException
71
-     */
72
-    public function getCapCheck()
73
-    {
74
-        // need cap for non-AJAX admin requests
75
-        if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
76
-            return new CapCheck('ee_edit_contacts', 'create_new_contact');
77
-        }
78
-        return new PublicCapabilities('', 'create_new_contact');
79
-    }
68
+	/**
69
+	 * @return CapCheckInterface
70
+	 * @throws InvalidDataTypeException
71
+	 */
72
+	public function getCapCheck()
73
+	{
74
+		// need cap for non-AJAX admin requests
75
+		if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
76
+			return new CapCheck('ee_edit_contacts', 'create_new_contact');
77
+		}
78
+		return new PublicCapabilities('', 'create_new_contact');
79
+	}
80 80
 }
Please login to merge, or discard this patch.
events/help_tabs/events_default_settings_max_tickets.help_tab.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <p>
2 2
     <?php esc_html_e(
3
-        'Use this to control what the default will be for maximum tickets on an order when creating a new event.',
4
-        'event_espresso'
5
-    ); ?>
3
+		'Use this to control what the default will be for maximum tickets on an order when creating a new event.',
4
+		'event_espresso'
5
+	); ?>
6 6
 </p>
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
core/services/notices/ConvertNoticesToEeErrors.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $error_string = esc_html__('The following errors occurred:', 'event_espresso');
44 44
             foreach ($notices->getError() as $notice) {
45 45
                 if ($this->getThrowExceptions()) {
46
-                    $error_string .= '<br />' . $notice->message();
46
+                    $error_string .= '<br />'.$notice->message();
47 47
                 } else {
48 48
                     EE_Error::add_error(
49 49
                         $notice->message(),
Please login to merge, or discard this patch.
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -13,54 +13,54 @@
 block discarded – undo
13 13
  */
14 14
 class ConvertNoticesToEeErrors extends NoticeConverter
15 15
 {
16
-    /**
17
-     * Converts Notice objects into EE_Error notifications
18
-     *
19
-     * @param NoticesContainerInterface $notices
20
-     * @throws EE_Error
21
-     */
22
-    public function process(NoticesContainerInterface $notices)
23
-    {
24
-        $this->setNotices($notices);
25
-        $notices = $this->getNotices();
26
-        if ($notices->hasAttention()) {
27
-            foreach ($notices->getAttention() as $notice) {
28
-                EE_Error::add_attention(
29
-                    $notice->message(),
30
-                    $notice->file(),
31
-                    $notice->func(),
32
-                    $notice->line()
33
-                );
34
-            }
35
-        }
36
-        if ($notices->hasError()) {
37
-            $error_string = esc_html__('The following errors occurred:', 'event_espresso');
38
-            foreach ($notices->getError() as $notice) {
39
-                if ($this->getThrowExceptions()) {
40
-                    $error_string .= '<br />' . $notice->message();
41
-                } else {
42
-                    EE_Error::add_error(
43
-                        $notice->message(),
44
-                        $notice->file(),
45
-                        $notice->func(),
46
-                        $notice->line()
47
-                    );
48
-                }
49
-            }
50
-            if ($this->getThrowExceptions()) {
51
-                throw new EE_Error($error_string);
52
-            }
53
-        }
54
-        if ($notices->hasSuccess()) {
55
-            foreach ($notices->getSuccess() as $notice) {
56
-                EE_Error::add_success(
57
-                    $notice->message(),
58
-                    $notice->file(),
59
-                    $notice->func(),
60
-                    $notice->line()
61
-                );
62
-            }
63
-        }
64
-        $this->clearNotices();
65
-    }
16
+	/**
17
+	 * Converts Notice objects into EE_Error notifications
18
+	 *
19
+	 * @param NoticesContainerInterface $notices
20
+	 * @throws EE_Error
21
+	 */
22
+	public function process(NoticesContainerInterface $notices)
23
+	{
24
+		$this->setNotices($notices);
25
+		$notices = $this->getNotices();
26
+		if ($notices->hasAttention()) {
27
+			foreach ($notices->getAttention() as $notice) {
28
+				EE_Error::add_attention(
29
+					$notice->message(),
30
+					$notice->file(),
31
+					$notice->func(),
32
+					$notice->line()
33
+				);
34
+			}
35
+		}
36
+		if ($notices->hasError()) {
37
+			$error_string = esc_html__('The following errors occurred:', 'event_espresso');
38
+			foreach ($notices->getError() as $notice) {
39
+				if ($this->getThrowExceptions()) {
40
+					$error_string .= '<br />' . $notice->message();
41
+				} else {
42
+					EE_Error::add_error(
43
+						$notice->message(),
44
+						$notice->file(),
45
+						$notice->func(),
46
+						$notice->line()
47
+					);
48
+				}
49
+			}
50
+			if ($this->getThrowExceptions()) {
51
+				throw new EE_Error($error_string);
52
+			}
53
+		}
54
+		if ($notices->hasSuccess()) {
55
+			foreach ($notices->getSuccess() as $notice) {
56
+				EE_Error::add_success(
57
+					$notice->message(),
58
+					$notice->file(),
59
+					$notice->func(),
60
+					$notice->line()
61
+				);
62
+			}
63
+		}
64
+		$this->clearNotices();
65
+	}
66 66
 }
Please login to merge, or discard this patch.
acceptance_tests/Helpers/TicketSelector.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,23 +12,23 @@
 block discarded – undo
12 12
 trait TicketSelector
13 13
 {
14 14
 
15
-    /**
16
-     * Use to select a quantity from the first ticket for the given event (so this can be used on a event archive page).
17
-     * @param int|string $event_id
18
-     * @param int|string $quantity
19
-     */
20
-    public function selectQuantityOfFirstTicketForEventId($event_id, $quantity = 1)
21
-    {
22
-        $this->actor()->selectOption(TicketSelectorElements::ticketOptionByEventIdSelector($event_id), $quantity);
23
-    }
15
+	/**
16
+	 * Use to select a quantity from the first ticket for the given event (so this can be used on a event archive page).
17
+	 * @param int|string $event_id
18
+	 * @param int|string $quantity
19
+	 */
20
+	public function selectQuantityOfFirstTicketForEventId($event_id, $quantity = 1)
21
+	{
22
+		$this->actor()->selectOption(TicketSelectorElements::ticketOptionByEventIdSelector($event_id), $quantity);
23
+	}
24 24
 
25 25
 
26
-    /**
27
-     * Used to submit the ticket selection for the given event id (so this can be used on an event archive page).
28
-     * @param int|string $event_id
29
-     */
30
-    public function submitTicketSelectionsForEventId($event_id)
31
-    {
32
-        $this->actor()->click(TicketSelectorElements::ticketSelectionSubmitSelectorByEventId($event_id));
33
-    }
26
+	/**
27
+	 * Used to submit the ticket selection for the given event id (so this can be used on an event archive page).
28
+	 * @param int|string $event_id
29
+	 */
30
+	public function submitTicketSelectionsForEventId($event_id)
31
+	{
32
+		$this->actor()->click(TicketSelectorElements::ticketSelectionSubmitSelectorByEventId($event_id));
33
+	}
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.