Completed
Branch dependabot/composer/wp-graphql... (5a0e42)
by
unknown
18:09 queued 13:06
created
core/libraries/form_sections/strategies/layout/EE_No_Layout.strategy.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -61,28 +61,28 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $html = '';
63 63
         if ($input instanceof EE_Hidden_Input) {
64
-            $html .= EEH_HTML::nl() . $input->get_html_for_input();
64
+            $html .= EEH_HTML::nl().$input->get_html_for_input();
65 65
         } elseif ($input instanceof EE_Submit_Input) {
66 66
             $html .= $this->br();
67 67
             $html .= $input->get_html_for_input();
68 68
         } elseif ($input instanceof EE_Select_Input) {
69 69
             $html .= $this->br();
70
-            $html .= EEH_HTML::nl(1) . $input->get_html_for_label();
71
-            $html .= EEH_HTML::nl() . $input->get_html_for_errors();
72
-            $html .= EEH_HTML::nl() . $input->get_html_for_input();
73
-            $html .= EEH_HTML::nl() . $input->get_html_for_help();
70
+            $html .= EEH_HTML::nl(1).$input->get_html_for_label();
71
+            $html .= EEH_HTML::nl().$input->get_html_for_errors();
72
+            $html .= EEH_HTML::nl().$input->get_html_for_input();
73
+            $html .= EEH_HTML::nl().$input->get_html_for_help();
74 74
             $html .= $this->br();
75 75
         } elseif ($input instanceof EE_Form_Input_With_Options_Base) {
76 76
             $html .= $this->br();
77
-            $html .= EEH_HTML::nl() . $input->get_html_for_errors();
78
-            $html .= EEH_HTML::nl() . $input->get_html_for_input();
79
-            $html .= EEH_HTML::nl() . $input->get_html_for_help();
77
+            $html .= EEH_HTML::nl().$input->get_html_for_errors();
78
+            $html .= EEH_HTML::nl().$input->get_html_for_input();
79
+            $html .= EEH_HTML::nl().$input->get_html_for_help();
80 80
         } else {
81 81
             $html .= $this->br();
82
-            $html .= EEH_HTML::nl(1) . $input->get_html_for_label();
83
-            $html .= EEH_HTML::nl() . $input->get_html_for_errors();
84
-            $html .= EEH_HTML::nl() . $input->get_html_for_input();
85
-            $html .= EEH_HTML::nl() . $input->get_html_for_help();
82
+            $html .= EEH_HTML::nl(1).$input->get_html_for_label();
83
+            $html .= EEH_HTML::nl().$input->get_html_for_errors();
84
+            $html .= EEH_HTML::nl().$input->get_html_for_input();
85
+            $html .= EEH_HTML::nl().$input->get_html_for_help();
86 86
         }
87 87
         $html .= EEH_HTML::nl(-1);
88 88
         return $html;
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     public function layout_subsection($form_section)
100 100
     {
101 101
         //      d( $form_section );
102
-        return EEH_HTML::nl(1) . $form_section->get_html() . EEH_HTML::nl(-1);
102
+        return EEH_HTML::nl(1).$form_section->get_html().EEH_HTML::nl(-1);
103 103
     }
104 104
 
105 105
 
Please login to merge, or discard this patch.
Indentation   +113 added lines, -113 removed lines patch added patch discarded remove patch
@@ -10,117 +10,117 @@
 block discarded – undo
10 10
  */
11 11
 class EE_No_Layout extends EE_Div_Per_Section_Layout
12 12
 {
13
-    /**
14
-     * This is a flag indicating whether to use '<br>' tags after each input in the layout
15
-     * strategy.
16
-     *
17
-     * @var bool
18
-     */
19
-    protected $_use_break_tags = true;
20
-
21
-
22
-
23
-    /**
24
-     * EE_No_Layout constructor.
25
-     *
26
-     * @param array $options  Currently if this has a 'use_break_tags' key that is used to set the _use_break_tags
27
-     *                        property on the class.
28
-     */
29
-    public function __construct($options = array())
30
-    {
31
-        $this->_use_break_tags = is_array($options) && isset($options['use_break_tags'])
32
-            ? filter_var($options['use_break_tags'], FILTER_VALIDATE_BOOLEAN)
33
-            : $this->_use_break_tags;
34
-        parent::__construct();
35
-    }
36
-
37
-
38
-
39
-    /**
40
-     * Add line break at beginning of form
41
-     *
42
-     * @return string
43
-     */
44
-    public function layout_form_begin()
45
-    {
46
-        return EEH_HTML::nl(1);
47
-    }
48
-
49
-
50
-
51
-    /**
52
-     * Lays out the row for the input, including label and errors
53
-     *
54
-     * @param EE_Form_Input_Base $input
55
-     * @return string
56
-     * @throws \EE_Error
57
-     */
58
-    public function layout_input($input)
59
-    {
60
-        $html = '';
61
-        if ($input instanceof EE_Hidden_Input) {
62
-            $html .= EEH_HTML::nl() . $input->get_html_for_input();
63
-        } elseif ($input instanceof EE_Submit_Input) {
64
-            $html .= $this->br();
65
-            $html .= $input->get_html_for_input();
66
-        } elseif ($input instanceof EE_Select_Input) {
67
-            $html .= $this->br();
68
-            $html .= EEH_HTML::nl(1) . $input->get_html_for_label();
69
-            $html .= EEH_HTML::nl() . $input->get_html_for_errors();
70
-            $html .= EEH_HTML::nl() . $input->get_html_for_input();
71
-            $html .= EEH_HTML::nl() . $input->get_html_for_help();
72
-            $html .= $this->br();
73
-        } elseif ($input instanceof EE_Form_Input_With_Options_Base) {
74
-            $html .= $this->br();
75
-            $html .= EEH_HTML::nl() . $input->get_html_for_errors();
76
-            $html .= EEH_HTML::nl() . $input->get_html_for_input();
77
-            $html .= EEH_HTML::nl() . $input->get_html_for_help();
78
-        } else {
79
-            $html .= $this->br();
80
-            $html .= EEH_HTML::nl(1) . $input->get_html_for_label();
81
-            $html .= EEH_HTML::nl() . $input->get_html_for_errors();
82
-            $html .= EEH_HTML::nl() . $input->get_html_for_input();
83
-            $html .= EEH_HTML::nl() . $input->get_html_for_help();
84
-        }
85
-        $html .= EEH_HTML::nl(-1);
86
-        return $html;
87
-    }
88
-
89
-
90
-
91
-    /**
92
-     * Lays out a row for the subsection
93
-     *
94
-     * @param EE_Form_Section_Proper $form_section
95
-     * @return string
96
-     */
97
-    public function layout_subsection($form_section)
98
-    {
99
-        //      d( $form_section );
100
-        return EEH_HTML::nl(1) . $form_section->get_html() . EEH_HTML::nl(-1);
101
-    }
102
-
103
-
104
-
105
-    /**
106
-     * Add line break at end of form.
107
-     *
108
-     * @return string
109
-     */
110
-    public function layout_form_end()
111
-    {
112
-        return EEH_HTML::nl(-1);
113
-    }
114
-
115
-
116
-
117
-    /**
118
-     * This returns a break tag or an empty string depending on the value of the `_use_break_tags` property.
119
-     *
120
-     * @return string
121
-     */
122
-    protected function br()
123
-    {
124
-        return $this->_use_break_tags ? EEH_HTML::br() : '';
125
-    }
13
+	/**
14
+	 * This is a flag indicating whether to use '<br>' tags after each input in the layout
15
+	 * strategy.
16
+	 *
17
+	 * @var bool
18
+	 */
19
+	protected $_use_break_tags = true;
20
+
21
+
22
+
23
+	/**
24
+	 * EE_No_Layout constructor.
25
+	 *
26
+	 * @param array $options  Currently if this has a 'use_break_tags' key that is used to set the _use_break_tags
27
+	 *                        property on the class.
28
+	 */
29
+	public function __construct($options = array())
30
+	{
31
+		$this->_use_break_tags = is_array($options) && isset($options['use_break_tags'])
32
+			? filter_var($options['use_break_tags'], FILTER_VALIDATE_BOOLEAN)
33
+			: $this->_use_break_tags;
34
+		parent::__construct();
35
+	}
36
+
37
+
38
+
39
+	/**
40
+	 * Add line break at beginning of form
41
+	 *
42
+	 * @return string
43
+	 */
44
+	public function layout_form_begin()
45
+	{
46
+		return EEH_HTML::nl(1);
47
+	}
48
+
49
+
50
+
51
+	/**
52
+	 * Lays out the row for the input, including label and errors
53
+	 *
54
+	 * @param EE_Form_Input_Base $input
55
+	 * @return string
56
+	 * @throws \EE_Error
57
+	 */
58
+	public function layout_input($input)
59
+	{
60
+		$html = '';
61
+		if ($input instanceof EE_Hidden_Input) {
62
+			$html .= EEH_HTML::nl() . $input->get_html_for_input();
63
+		} elseif ($input instanceof EE_Submit_Input) {
64
+			$html .= $this->br();
65
+			$html .= $input->get_html_for_input();
66
+		} elseif ($input instanceof EE_Select_Input) {
67
+			$html .= $this->br();
68
+			$html .= EEH_HTML::nl(1) . $input->get_html_for_label();
69
+			$html .= EEH_HTML::nl() . $input->get_html_for_errors();
70
+			$html .= EEH_HTML::nl() . $input->get_html_for_input();
71
+			$html .= EEH_HTML::nl() . $input->get_html_for_help();
72
+			$html .= $this->br();
73
+		} elseif ($input instanceof EE_Form_Input_With_Options_Base) {
74
+			$html .= $this->br();
75
+			$html .= EEH_HTML::nl() . $input->get_html_for_errors();
76
+			$html .= EEH_HTML::nl() . $input->get_html_for_input();
77
+			$html .= EEH_HTML::nl() . $input->get_html_for_help();
78
+		} else {
79
+			$html .= $this->br();
80
+			$html .= EEH_HTML::nl(1) . $input->get_html_for_label();
81
+			$html .= EEH_HTML::nl() . $input->get_html_for_errors();
82
+			$html .= EEH_HTML::nl() . $input->get_html_for_input();
83
+			$html .= EEH_HTML::nl() . $input->get_html_for_help();
84
+		}
85
+		$html .= EEH_HTML::nl(-1);
86
+		return $html;
87
+	}
88
+
89
+
90
+
91
+	/**
92
+	 * Lays out a row for the subsection
93
+	 *
94
+	 * @param EE_Form_Section_Proper $form_section
95
+	 * @return string
96
+	 */
97
+	public function layout_subsection($form_section)
98
+	{
99
+		//      d( $form_section );
100
+		return EEH_HTML::nl(1) . $form_section->get_html() . EEH_HTML::nl(-1);
101
+	}
102
+
103
+
104
+
105
+	/**
106
+	 * Add line break at end of form.
107
+	 *
108
+	 * @return string
109
+	 */
110
+	public function layout_form_end()
111
+	{
112
+		return EEH_HTML::nl(-1);
113
+	}
114
+
115
+
116
+
117
+	/**
118
+	 * This returns a break tag or an empty string depending on the value of the `_use_break_tags` property.
119
+	 *
120
+	 * @return string
121
+	 */
122
+	protected function br()
123
+	{
124
+		return $this->_use_break_tags ? EEH_HTML::br() : '';
125
+	}
126 126
 }
Please login to merge, or discard this patch.
strategies/validation/EE_Many_Valued_Validation_Strategy.strategy.php 2 patches
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -13,58 +13,58 @@
 block discarded – undo
13 13
  */
14 14
 class EE_Many_Valued_Validation_Strategy extends EE_Validation_Strategy_Base
15 15
 {
16
-    protected $_individual_item_validation_strategies = array();
17
-    /**
18
-     *
19
-     * @param EE_Validation_Strategy_Base[] $individual_item_validation_strategies (or a single EE_Validation_Strategy_Base)
20
-     */
21
-    public function __construct($individual_item_validation_strategies)
22
-    {
23
-        if (! is_array($individual_item_validation_strategies)) {
24
-            $individual_item_validation_strategies = array($individual_item_validation_strategies);
25
-        }
26
-        $this->_individual_item_validation_strategies = $individual_item_validation_strategies;
27
-        parent::__construct();
28
-    }
16
+	protected $_individual_item_validation_strategies = array();
17
+	/**
18
+	 *
19
+	 * @param EE_Validation_Strategy_Base[] $individual_item_validation_strategies (or a single EE_Validation_Strategy_Base)
20
+	 */
21
+	public function __construct($individual_item_validation_strategies)
22
+	{
23
+		if (! is_array($individual_item_validation_strategies)) {
24
+			$individual_item_validation_strategies = array($individual_item_validation_strategies);
25
+		}
26
+		$this->_individual_item_validation_strategies = $individual_item_validation_strategies;
27
+		parent::__construct();
28
+	}
29 29
 
30 30
 
31 31
 
32
-    /**
33
-     * Applies all teh individual item validation strategies on each item in the array
34
-     * @param array $normalized_value
35
-     * @return boolean
36
-     */
37
-    public function validate($normalized_value)
38
-    {
39
-        if (is_array($normalized_value)) {
40
-            $items_to_validate = $normalized_value;
41
-        } else {
42
-            $items_to_validate = array($normalized_value);
43
-        }
44
-        foreach ($items_to_validate as $individual_item) {
45
-            foreach ($this->_individual_item_validation_strategies as $validation_strategy) {
46
-                if ($validation_strategy instanceof EE_Validation_Strategy_Base) {
47
-                    $validation_strategy->validate($individual_item);
48
-                }
49
-            }
50
-        }
51
-        return true;
52
-    }
32
+	/**
33
+	 * Applies all teh individual item validation strategies on each item in the array
34
+	 * @param array $normalized_value
35
+	 * @return boolean
36
+	 */
37
+	public function validate($normalized_value)
38
+	{
39
+		if (is_array($normalized_value)) {
40
+			$items_to_validate = $normalized_value;
41
+		} else {
42
+			$items_to_validate = array($normalized_value);
43
+		}
44
+		foreach ($items_to_validate as $individual_item) {
45
+			foreach ($this->_individual_item_validation_strategies as $validation_strategy) {
46
+				if ($validation_strategy instanceof EE_Validation_Strategy_Base) {
47
+					$validation_strategy->validate($individual_item);
48
+				}
49
+			}
50
+		}
51
+		return true;
52
+	}
53 53
 
54 54
 
55 55
 
56
-    /**
57
-     * Extends parent's _construct_finalize so we ALSO set the input
58
-     * on each sub-validation-strategy
59
-     * @param \EE_Form_Input_Base $form_input
60
-     */
61
-    public function _construct_finalize(\EE_Form_Input_Base $form_input)
62
-    {
63
-        parent::_construct_finalize($form_input);
64
-        foreach ($this->_individual_item_validation_strategies as $item_validation_strategy) {
65
-            if ($item_validation_strategy instanceof EE_Validation_Strategy_Base) {
66
-                $item_validation_strategy->_construct_finalize($form_input);
67
-            }
68
-        }
69
-    }
56
+	/**
57
+	 * Extends parent's _construct_finalize so we ALSO set the input
58
+	 * on each sub-validation-strategy
59
+	 * @param \EE_Form_Input_Base $form_input
60
+	 */
61
+	public function _construct_finalize(\EE_Form_Input_Base $form_input)
62
+	{
63
+		parent::_construct_finalize($form_input);
64
+		foreach ($this->_individual_item_validation_strategies as $item_validation_strategy) {
65
+			if ($item_validation_strategy instanceof EE_Validation_Strategy_Base) {
66
+				$item_validation_strategy->_construct_finalize($form_input);
67
+			}
68
+		}
69
+	}
70 70
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function __construct($individual_item_validation_strategies)
22 22
     {
23
-        if (! is_array($individual_item_validation_strategies)) {
23
+        if ( ! is_array($individual_item_validation_strategies)) {
24 24
             $individual_item_validation_strategies = array($individual_item_validation_strategies);
25 25
         }
26 26
         $this->_individual_item_validation_strategies = $individual_item_validation_strategies;
Please login to merge, or discard this patch.
sensitive_data_removal/EE_Sensitive_Data_Removal_Base.strategy.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -11,16 +11,16 @@
 block discarded – undo
11 11
  */
12 12
 abstract class EE_Sensitive_Data_Removal_Base extends EE_Form_Input_Strategy_Base
13 13
 {
14
-    /**
15
-     * Removes all the sensitive data from this normalized value.
16
-     * For example, should could 'mask' a credit card from
17
-     * '1234 1234 1234 1234' TO '**** **** **** 1234'.
18
-     * Or turn a ccv number from
19
-     * '123' to '***',
20
-     * or turn a password from
21
-     * 'CantHac7Th15' to '*************',
22
-     * or just leave htevalue as-is
23
-     * @return mixed
24
-     */
25
-    abstract public function remove_sensitive_data($normalized_value);
14
+	/**
15
+	 * Removes all the sensitive data from this normalized value.
16
+	 * For example, should could 'mask' a credit card from
17
+	 * '1234 1234 1234 1234' TO '**** **** **** 1234'.
18
+	 * Or turn a ccv number from
19
+	 * '123' to '***',
20
+	 * or turn a password from
21
+	 * 'CantHac7Th15' to '*************',
22
+	 * or just leave htevalue as-is
23
+	 * @return mixed
24
+	 */
25
+	abstract public function remove_sensitive_data($normalized_value);
26 26
 }
Please login to merge, or discard this patch.
sensitive_data_removal/EE_All_Sensitive_Data_Removal.strategy.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -11,23 +11,23 @@
 block discarded – undo
11 11
  */
12 12
 class EE_All_Sensitive_Data_Removal extends EE_Sensitive_Data_Removal_Base
13 13
 {
14
-    public function remove_sensitive_data($normalized_value)
15
-    {
16
-        switch (gettype($normalized_value)) {
17
-            case "boolean":
18
-                return false;
19
-            case "integer":
20
-            case "double":
21
-                return 0;
22
-            case "string":
23
-                return '';
24
-            case "array":
25
-                return array();
26
-            case "object":
27
-            case "resource":
28
-            case "NULL":
29
-            default:
30
-                return null;
31
-        }
32
-    }
14
+	public function remove_sensitive_data($normalized_value)
15
+	{
16
+		switch (gettype($normalized_value)) {
17
+			case "boolean":
18
+				return false;
19
+			case "integer":
20
+			case "double":
21
+				return 0;
22
+			case "string":
23
+				return '';
24
+			case "array":
25
+				return array();
26
+			case "object":
27
+			case "resource":
28
+			case "NULL":
29
+			default:
30
+				return null;
31
+		}
32
+	}
33 33
 }
Please login to merge, or discard this patch.
strategies/sensitive_data_removal/EE_No_Sensitive_Data_Removal.strategy.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
  */
12 12
 class EE_No_Sensitive_Data_Removal extends EE_Sensitive_Data_Removal_Base
13 13
 {
14
-    public function remove_sensitive_data($normalized_value)
15
-    {
16
-        return $normalized_value;
17
-    }
14
+	public function remove_sensitive_data($normalized_value)
15
+	{
16
+		return $normalized_value;
17
+	}
18 18
 }
Please login to merge, or discard this patch.
libraries/form_sections/base/EE_Form_Section_HTML_From_Template.form.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
  */
12 12
 class EE_Form_Section_HTML_From_Template extends EE_Form_Section_HTML
13 13
 {
14
-    public function __construct($template_file, $args = array(), $options_array = array())
15
-    {
16
-        $html = EEH_Template::locate_template($template_file, $args);
14
+	public function __construct($template_file, $args = array(), $options_array = array())
15
+	{
16
+		$html = EEH_Template::locate_template($template_file, $args);
17 17
 
18 18
 //      echo " filepath:$template_file html $html";
19
-        parent::__construct($html, $options_array);
20
-    }
19
+		parent::__construct($html, $options_array);
20
+	}
21 21
 }
Please login to merge, or discard this patch.
core/libraries/form_sections/helpers/EE_Validation_Error.error.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -2,47 +2,47 @@
 block discarded – undo
2 2
 
3 3
 class EE_Validation_Error extends Exception
4 4
 {
5
-    /**
6
-     * Form Section from which this error originated.
7
-     * @var EE_Form_Section
8
-     */
9
-    protected $_form_section;
10
-    /**
11
-     * a short string for uniquely identifying the error, which isn't internationalized and
12
-     * machines can use to identify the error
13
-     * @var string
14
-     */
15
-    protected $_string_code;
5
+	/**
6
+	 * Form Section from which this error originated.
7
+	 * @var EE_Form_Section
8
+	 */
9
+	protected $_form_section;
10
+	/**
11
+	 * a short string for uniquely identifying the error, which isn't internationalized and
12
+	 * machines can use to identify the error
13
+	 * @var string
14
+	 */
15
+	protected $_string_code;
16 16
 
17
-    /**
18
-     * When creating a validation error, we need to know which field the error relates to.
19
-     * @param string $message message you want to display about this error
20
-     * @param string $string_code a code for uniquely identifying the exception
21
-     * @param EE_Form_Section_Validatable $form_section
22
-     * @param Exception $previous if there was an exception that caused this exception
23
-     */
24
-    public function __construct($message = null, $string_code = null, $form_section = null, $previous = null)
25
-    {
26
-        $this->_form_section = $form_section;
27
-        $this->_string_code = $string_code;
28
-        parent::__construct($message, 500, $previous);
29
-    }
17
+	/**
18
+	 * When creating a validation error, we need to know which field the error relates to.
19
+	 * @param string $message message you want to display about this error
20
+	 * @param string $string_code a code for uniquely identifying the exception
21
+	 * @param EE_Form_Section_Validatable $form_section
22
+	 * @param Exception $previous if there was an exception that caused this exception
23
+	 */
24
+	public function __construct($message = null, $string_code = null, $form_section = null, $previous = null)
25
+	{
26
+		$this->_form_section = $form_section;
27
+		$this->_string_code = $string_code;
28
+		parent::__construct($message, 500, $previous);
29
+	}
30 30
 
31
-    /**
32
-     * returns teh form section which caused the error.
33
-     * @return EE_Form_Section_Validatable
34
-     */
35
-    public function get_form_section()
36
-    {
37
-        return $this->_form_section;
38
-    }
39
-    /**
40
-     * Sets teh form seciton of the error, in case it wasnt set previously
41
-     * @param EE_Form_Section_Validatable $form_section
42
-     * @return void
43
-     */
44
-    public function set_form_section($form_section)
45
-    {
46
-        $this->_form_section = $form_section;
47
-    }
31
+	/**
32
+	 * returns teh form section which caused the error.
33
+	 * @return EE_Form_Section_Validatable
34
+	 */
35
+	public function get_form_section()
36
+	{
37
+		return $this->_form_section;
38
+	}
39
+	/**
40
+	 * Sets teh form seciton of the error, in case it wasnt set previously
41
+	 * @param EE_Form_Section_Validatable $form_section
42
+	 * @return void
43
+	 */
44
+	public function set_form_section($form_section)
45
+	{
46
+		$this->_form_section = $form_section;
47
+	}
48 48
 }
Please login to merge, or discard this patch.
line_item_display/EE_Invoice_Line_Item_Display_Strategy.strategy.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         // price td
109 109
         $html .= EEH_HTML::td($line_item->unit_price_no_code(), '', 'item_c');
110 110
         // total td
111
-        $total = $line_item->is_taxable() ? $line_item->total_no_code() . '*' : $line_item->total_no_code();
111
+        $total = $line_item->is_taxable() ? $line_item->total_no_code().'*' : $line_item->total_no_code();
112 112
         $html .= EEH_HTML::td($total, '', 'item_r');
113 113
         // end of row
114 114
         $html .= EEH_HTML::trx();
@@ -132,10 +132,10 @@  discard block
 block discarded – undo
132 132
         $html .= EEH_HTML::td($line_item->name(), '', 'item_l sub-item');
133 133
         // desc td
134 134
         $html .= $options['show_desc'] ? EEH_HTML::td($line_item->desc(), '', 'item_l') : '';
135
-        $html .= EEH_HTML::td() . EEH_HTML::tdx();
135
+        $html .= EEH_HTML::td().EEH_HTML::tdx();
136 136
         // discount/surcharge td
137 137
         if ($line_item->is_percent()) {
138
-            $html .= EEH_HTML::td($line_item->percent() . '%', '', 'item_c');
138
+            $html .= EEH_HTML::td($line_item->percent().'%', '', 'item_c');
139 139
         } else {
140 140
             $html .= EEH_HTML::td($line_item->unit_price_no_code(), '', 'item_c');
141 141
         }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         // desc td
165 165
         $html .= $options['show_desc'] ? EEH_HTML::td($line_item->desc(), '', 'item_l') : '';
166 166
         // percent td
167
-        $html .= EEH_HTML::td($line_item->percent() . '%', '', 'item_c', '', ' colspan="2"');
167
+        $html .= EEH_HTML::td($line_item->percent().'%', '', 'item_c', '', ' colspan="2"');
168 168
         // total td
169 169
         $html .= EEH_HTML::td($line_item->total_no_code(), '', 'item_r');
170 170
         // end of row
Please login to merge, or discard this patch.
Indentation   +212 added lines, -212 removed lines patch added patch discarded remove patch
@@ -1,223 +1,223 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
  /**
4
- *
5
- * Class EE_Invoice_Line_Item_Display_Strategy
6
- *
7
- * Description
8
- *
9
- * @package         Event Espresso
10
- * @subpackage    core
11
- * @author              Brent Christensen
12
- *
13
- *
14
- */
4
+  *
5
+  * Class EE_Invoice_Line_Item_Display_Strategy
6
+  *
7
+  * Description
8
+  *
9
+  * @package         Event Espresso
10
+  * @subpackage    core
11
+  * @author              Brent Christensen
12
+  *
13
+  *
14
+  */
15 15
 class EE_Invoice_Line_Item_Display_Strategy implements EEI_Line_Item_Display
16 16
 {
17 17
 
18
-    /**
19
-     * @param EE_Line_Item $line_item
20
-     * @param array        $options
21
-     * @return mixed
22
-     */
23
-    public function display_line_item(EE_Line_Item $line_item, $options = array())
24
-    {
25
-
26
-        $html = '';
27
-        // set some default options and merge with incoming
28
-        $default_options = array(
29
-            'show_desc' => true,
30
-            'odd' => false
31
-        );
32
-        $options = array_merge($default_options, (array) $options);
33
-
34
-        switch ($line_item->type()) {
35
-            case EEM_Line_Item::type_total:
36
-                // loop thru children
37
-                foreach ($line_item->children() as $child_line_item) {
38
-                    // recursively feed children back into this method
39
-                    $html .= $this->display_line_item($child_line_item, $options);
40
-                }
41
-                $html .= $this->_separator_row($options);
42
-                $html .= $this->_total_row($line_item, esc_html__('Total', 'event_espresso'), $options);
43
-                break;
44
-
45
-
46
-            case EEM_Line_Item::type_sub_total:
47
-                // loop thru children
48
-                foreach ($line_item->children() as $child_line_item) {
49
-                    // recursively feed children back into this method
50
-                    $html .= $this->display_line_item($child_line_item, $options);
51
-                }
52
-                $html .= $this->_total_row($line_item, esc_html__('Sub-Total', 'event_espresso'), $options);
53
-                break;
54
-
55
-
56
-            case EEM_Line_Item::type_tax_sub_total:
57
-                // loop thru children
58
-                foreach ($line_item->children() as $child_line_item) {
59
-                    // recursively feed children back into this method
60
-                    $html .= $this->display_line_item($child_line_item, $options);
61
-                }
62
-                $html .= $this->_total_row($line_item, esc_html__('Tax Total', 'event_espresso'), $options);
63
-                break;
64
-
65
-
66
-            case EEM_Line_Item::type_line_item:
67
-                // item row
68
-                $html .= $this->_item_row($line_item, $options);
69
-                // got any kids?
70
-                foreach ($line_item->children() as $child_line_item) {
71
-                    $this->display_line_item($child_line_item, $options);
72
-                }
73
-                break;
74
-
75
-
76
-            case EEM_Line_Item::type_sub_line_item:
77
-                $html .= $this->_sub_item_row($line_item, $options);
78
-                break;
79
-
80
-
81
-            case EEM_Line_Item::type_tax:
82
-                $html .= $this->_tax_row($line_item, $options);
83
-                break;
84
-        }
85
-
86
-        return $html;
87
-    }
88
-
89
-
90
-
91
-    /**
92
-     *  _total_row
93
-     *
94
-     * @param EE_Line_Item $line_item
95
-     * @param array        $options
96
-     * @return mixed
97
-     */
98
-    private function _item_row(EE_Line_Item $line_item, $options = array())
99
-    {
100
-        // start of row
101
-        $row_class = $options['odd'] ? 'item odd' : 'item';
102
-        $html = EEH_HTML::tr('', $row_class);
103
-        // name td
104
-        $html .= EEH_HTML::td($line_item->name(), '', 'item_l');
105
-        // desc td
106
-        $html .= $options['show_desc'] ? EEH_HTML::td($line_item->desc(), '', 'item_l') : '';
107
-        // quantity td
108
-        $html .= EEH_HTML::td($line_item->quantity(), '', 'item_l');
109
-        // price td
110
-        $html .= EEH_HTML::td($line_item->unit_price_no_code(), '', 'item_c');
111
-        // total td
112
-        $total = $line_item->is_taxable() ? $line_item->total_no_code() . '*' : $line_item->total_no_code();
113
-        $html .= EEH_HTML::td($total, '', 'item_r');
114
-        // end of row
115
-        $html .= EEH_HTML::trx();
116
-        return $html;
117
-    }
118
-
119
-
120
-
121
-    /**
122
-     *  _sub_item_row
123
-     *
124
-     * @param EE_Line_Item $line_item
125
-     * @param array        $options
126
-     * @return mixed
127
-     */
128
-    private function _sub_item_row(EE_Line_Item $line_item, $options = array())
129
-    {
130
-        // start of row
131
-        $html = EEH_HTML::tr('', 'item sub-item-row');
132
-        // name td
133
-        $html .= EEH_HTML::td($line_item->name(), '', 'item_l sub-item');
134
-        // desc td
135
-        $html .= $options['show_desc'] ? EEH_HTML::td($line_item->desc(), '', 'item_l') : '';
136
-        $html .= EEH_HTML::td() . EEH_HTML::tdx();
137
-        // discount/surcharge td
138
-        if ($line_item->is_percent()) {
139
-            $html .= EEH_HTML::td($line_item->percent() . '%', '', 'item_c');
140
-        } else {
141
-            $html .= EEH_HTML::td($line_item->unit_price_no_code(), '', 'item_c');
142
-        }
143
-        // total td
144
-        $html .= EEH_HTML::td($line_item->total_no_code(), '', 'item_r');
145
-        // end of row
146
-        $html .= EEH_HTML::trx();
147
-        return $html;
148
-    }
149
-
150
-
151
-
152
-    /**
153
-     *  _tax_row
154
-     *
155
-     * @param EE_Line_Item $line_item
156
-     * @param array        $options
157
-     * @return mixed
158
-     */
159
-    private function _tax_row(EE_Line_Item $line_item, $options = array())
160
-    {
161
-        // start of row
162
-        $html = EEH_HTML::tr('', 'item sub-item tax-total');
163
-        // name td
164
-        $html .= EEH_HTML::td($line_item->name(), '', 'item_l sub-item');
165
-        // desc td
166
-        $html .= $options['show_desc'] ? EEH_HTML::td($line_item->desc(), '', 'item_l') : '';
167
-        // percent td
168
-        $html .= EEH_HTML::td($line_item->percent() . '%', '', 'item_c', '', ' colspan="2"');
169
-        // total td
170
-        $html .= EEH_HTML::td($line_item->total_no_code(), '', 'item_r');
171
-        // end of row
172
-        $html .= EEH_HTML::trx();
173
-        return $html;
174
-    }
175
-
176
-
177
-
178
-    /**
179
-     *  _total_row
180
-     *
181
-     * @param EE_Line_Item $line_item
182
-     * @param string       $text
183
-     * @param array        $options
184
-     * @return mixed
185
-     */
186
-    private function _total_row(EE_Line_Item $line_item, $text = '', $options = array())
187
-    {
188
-        // colspan
189
-        $colspan = $options['show_desc'] ? ' colspan="2"' : '';
190
-        // start of row
191
-        $html = EEH_HTML::tr('', '', 'total_tr odd');
192
-        // empty td
193
-        $html .= EEH_HTML::td(EEH_HTML::nbsp(), '', '', '', $colspan);
194
-        // total td
195
-        $html .= EEH_HTML::td($text, '', 'total_currency total', '', $colspan);
196
-        // total td
197
-        $html .= EEH_HTML::td($line_item->total_no_code(), '', 'total');
198
-        // end of row
199
-        $html .= EEH_HTML::trx();
200
-        return $html;
201
-    }
202
-
203
-
204
-
205
-    /**
206
-     *  _separator_row
207
-     *
208
-     * @param array        $options
209
-     * @return mixed
210
-     */
211
-    private function _separator_row($options = array())
212
-    {
213
-        // colspan
214
-        $colspan = $options['show_desc'] ? ' colspan="5"' : ' colspan="4"';
215
-        // start of row
216
-        $html = EEH_HTML::tr(EEH_HTML::td('<hr>', '', '', '', $colspan));
18
+	/**
19
+	 * @param EE_Line_Item $line_item
20
+	 * @param array        $options
21
+	 * @return mixed
22
+	 */
23
+	public function display_line_item(EE_Line_Item $line_item, $options = array())
24
+	{
25
+
26
+		$html = '';
27
+		// set some default options and merge with incoming
28
+		$default_options = array(
29
+			'show_desc' => true,
30
+			'odd' => false
31
+		);
32
+		$options = array_merge($default_options, (array) $options);
33
+
34
+		switch ($line_item->type()) {
35
+			case EEM_Line_Item::type_total:
36
+				// loop thru children
37
+				foreach ($line_item->children() as $child_line_item) {
38
+					// recursively feed children back into this method
39
+					$html .= $this->display_line_item($child_line_item, $options);
40
+				}
41
+				$html .= $this->_separator_row($options);
42
+				$html .= $this->_total_row($line_item, esc_html__('Total', 'event_espresso'), $options);
43
+				break;
44
+
45
+
46
+			case EEM_Line_Item::type_sub_total:
47
+				// loop thru children
48
+				foreach ($line_item->children() as $child_line_item) {
49
+					// recursively feed children back into this method
50
+					$html .= $this->display_line_item($child_line_item, $options);
51
+				}
52
+				$html .= $this->_total_row($line_item, esc_html__('Sub-Total', 'event_espresso'), $options);
53
+				break;
54
+
55
+
56
+			case EEM_Line_Item::type_tax_sub_total:
57
+				// loop thru children
58
+				foreach ($line_item->children() as $child_line_item) {
59
+					// recursively feed children back into this method
60
+					$html .= $this->display_line_item($child_line_item, $options);
61
+				}
62
+				$html .= $this->_total_row($line_item, esc_html__('Tax Total', 'event_espresso'), $options);
63
+				break;
64
+
65
+
66
+			case EEM_Line_Item::type_line_item:
67
+				// item row
68
+				$html .= $this->_item_row($line_item, $options);
69
+				// got any kids?
70
+				foreach ($line_item->children() as $child_line_item) {
71
+					$this->display_line_item($child_line_item, $options);
72
+				}
73
+				break;
74
+
75
+
76
+			case EEM_Line_Item::type_sub_line_item:
77
+				$html .= $this->_sub_item_row($line_item, $options);
78
+				break;
79
+
80
+
81
+			case EEM_Line_Item::type_tax:
82
+				$html .= $this->_tax_row($line_item, $options);
83
+				break;
84
+		}
85
+
86
+		return $html;
87
+	}
88
+
89
+
90
+
91
+	/**
92
+	 *  _total_row
93
+	 *
94
+	 * @param EE_Line_Item $line_item
95
+	 * @param array        $options
96
+	 * @return mixed
97
+	 */
98
+	private function _item_row(EE_Line_Item $line_item, $options = array())
99
+	{
100
+		// start of row
101
+		$row_class = $options['odd'] ? 'item odd' : 'item';
102
+		$html = EEH_HTML::tr('', $row_class);
103
+		// name td
104
+		$html .= EEH_HTML::td($line_item->name(), '', 'item_l');
105
+		// desc td
106
+		$html .= $options['show_desc'] ? EEH_HTML::td($line_item->desc(), '', 'item_l') : '';
107
+		// quantity td
108
+		$html .= EEH_HTML::td($line_item->quantity(), '', 'item_l');
109
+		// price td
110
+		$html .= EEH_HTML::td($line_item->unit_price_no_code(), '', 'item_c');
111
+		// total td
112
+		$total = $line_item->is_taxable() ? $line_item->total_no_code() . '*' : $line_item->total_no_code();
113
+		$html .= EEH_HTML::td($total, '', 'item_r');
114
+		// end of row
115
+		$html .= EEH_HTML::trx();
116
+		return $html;
117
+	}
118
+
119
+
120
+
121
+	/**
122
+	 *  _sub_item_row
123
+	 *
124
+	 * @param EE_Line_Item $line_item
125
+	 * @param array        $options
126
+	 * @return mixed
127
+	 */
128
+	private function _sub_item_row(EE_Line_Item $line_item, $options = array())
129
+	{
130
+		// start of row
131
+		$html = EEH_HTML::tr('', 'item sub-item-row');
132
+		// name td
133
+		$html .= EEH_HTML::td($line_item->name(), '', 'item_l sub-item');
134
+		// desc td
135
+		$html .= $options['show_desc'] ? EEH_HTML::td($line_item->desc(), '', 'item_l') : '';
136
+		$html .= EEH_HTML::td() . EEH_HTML::tdx();
137
+		// discount/surcharge td
138
+		if ($line_item->is_percent()) {
139
+			$html .= EEH_HTML::td($line_item->percent() . '%', '', 'item_c');
140
+		} else {
141
+			$html .= EEH_HTML::td($line_item->unit_price_no_code(), '', 'item_c');
142
+		}
143
+		// total td
144
+		$html .= EEH_HTML::td($line_item->total_no_code(), '', 'item_r');
145
+		// end of row
146
+		$html .= EEH_HTML::trx();
147
+		return $html;
148
+	}
149
+
150
+
151
+
152
+	/**
153
+	 *  _tax_row
154
+	 *
155
+	 * @param EE_Line_Item $line_item
156
+	 * @param array        $options
157
+	 * @return mixed
158
+	 */
159
+	private function _tax_row(EE_Line_Item $line_item, $options = array())
160
+	{
161
+		// start of row
162
+		$html = EEH_HTML::tr('', 'item sub-item tax-total');
163
+		// name td
164
+		$html .= EEH_HTML::td($line_item->name(), '', 'item_l sub-item');
165
+		// desc td
166
+		$html .= $options['show_desc'] ? EEH_HTML::td($line_item->desc(), '', 'item_l') : '';
167
+		// percent td
168
+		$html .= EEH_HTML::td($line_item->percent() . '%', '', 'item_c', '', ' colspan="2"');
169
+		// total td
170
+		$html .= EEH_HTML::td($line_item->total_no_code(), '', 'item_r');
171
+		// end of row
172
+		$html .= EEH_HTML::trx();
173
+		return $html;
174
+	}
175
+
176
+
177
+
178
+	/**
179
+	 *  _total_row
180
+	 *
181
+	 * @param EE_Line_Item $line_item
182
+	 * @param string       $text
183
+	 * @param array        $options
184
+	 * @return mixed
185
+	 */
186
+	private function _total_row(EE_Line_Item $line_item, $text = '', $options = array())
187
+	{
188
+		// colspan
189
+		$colspan = $options['show_desc'] ? ' colspan="2"' : '';
190
+		// start of row
191
+		$html = EEH_HTML::tr('', '', 'total_tr odd');
192
+		// empty td
193
+		$html .= EEH_HTML::td(EEH_HTML::nbsp(), '', '', '', $colspan);
194
+		// total td
195
+		$html .= EEH_HTML::td($text, '', 'total_currency total', '', $colspan);
196
+		// total td
197
+		$html .= EEH_HTML::td($line_item->total_no_code(), '', 'total');
198
+		// end of row
199
+		$html .= EEH_HTML::trx();
200
+		return $html;
201
+	}
202
+
203
+
204
+
205
+	/**
206
+	 *  _separator_row
207
+	 *
208
+	 * @param array        $options
209
+	 * @return mixed
210
+	 */
211
+	private function _separator_row($options = array())
212
+	{
213
+		// colspan
214
+		$colspan = $options['show_desc'] ? ' colspan="5"' : ' colspan="4"';
215
+		// start of row
216
+		$html = EEH_HTML::tr(EEH_HTML::td('<hr>', '', '', '', $colspan));
217 217
 //      // separator td
218 218
 //      $html .= EEH_HTML::td( '<hr>', '',  '',  '',  $colspan );
219 219
 //      // end of row
220 220
 //      $html .= EEH_HTML::trx();
221
-        return $html;
222
-    }
221
+		return $html;
222
+	}
223 223
 }
Please login to merge, or discard this patch.
core/request_stack/EE_Response.core.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function set_notice($key, $value)
73 73
     {
74
-        $this->_notice[ $key ] = $value;
74
+        $this->_notice[$key] = $value;
75 75
     }
76 76
 
77 77
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function get_notice($key)
84 84
     {
85
-        return isset($this->_notice[ $key ]) ? $this->_notice[ $key ] : null;
85
+        return isset($this->_notice[$key]) ? $this->_notice[$key] : null;
86 86
     }
87 87
 
88 88
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function add_output($string, $append = true)
105 105
     {
106
-        $this->_output = $append ? $this->_output . $string : $string . $this->_output;
106
+        $this->_output = $append ? $this->_output.$string : $string.$this->_output;
107 107
     }
108 108
 
109 109
 
Please login to merge, or discard this patch.
Indentation   +142 added lines, -142 removed lines patch added patch discarded remove patch
@@ -12,146 +12,146 @@
 block discarded – undo
12 12
  */
13 13
 class EE_Response
14 14
 {
15
-    /**
16
-     * @access    protected
17
-     * @type        array $_notice
18
-     */
19
-    protected $_notice = array();
20
-
21
-    /**
22
-     *    rendered output to be returned to WP
23
-     *
24
-     * @access    protected
25
-     * @type        string
26
-     */
27
-    protected $_output = '';
28
-
29
-    /**
30
-     * @access    protected
31
-     * @type        bool
32
-     */
33
-    protected $request_terminated = false;
34
-
35
-    /**
36
-     * @access    protected
37
-     * @type        bool
38
-     */
39
-    protected $deactivate_plugin = false;
40
-
41
-
42
-    /**
43
-     * @deprecated  4.9.53
44
-     * @return \EE_Response
45
-     */
46
-    public function __construct()
47
-    {
48
-        $this->terminate_request(false);
49
-        EE_Error::doing_it_wrong(
50
-            __METHOD__,
51
-            sprintf(
52
-                esc_html__(
53
-                    'This class is deprecated. Please use %1$s instead. All Event Espresso request stack classes have been moved to %2$s and are now under the %3$s namespace',
54
-                    'event_espresso'
55
-                ),
56
-                'EventEspresso\core\services\request\Response',
57
-                '\core\services\request',
58
-                'EventEspresso\core\services\request'
59
-            ),
60
-            '4.9.53'
61
-        );
62
-    }
63
-
64
-
65
-    /**
66
-     * @deprecated  4.9.53
67
-     * @param $key
68
-     * @param $value
69
-     * @return    void
70
-     */
71
-    public function set_notice($key, $value)
72
-    {
73
-        $this->_notice[ $key ] = $value;
74
-    }
75
-
76
-
77
-    /**
78
-     * @deprecated  4.9.53
79
-     * @param $key
80
-     * @return    mixed
81
-     */
82
-    public function get_notice($key)
83
-    {
84
-        return isset($this->_notice[ $key ]) ? $this->_notice[ $key ] : null;
85
-    }
86
-
87
-
88
-    /**
89
-     * @deprecated  4.9.53
90
-     * @return    array
91
-     */
92
-    public function get_notices()
93
-    {
94
-        return $this->_notice;
95
-    }
96
-
97
-
98
-    /**
99
-     * @deprecated  4.9.53
100
-     * @param      $string
101
-     * @param bool $append
102
-     */
103
-    public function add_output($string, $append = true)
104
-    {
105
-        $this->_output = $append ? $this->_output . $string : $string . $this->_output;
106
-    }
107
-
108
-
109
-    /**
110
-     * @deprecated  4.9.53
111
-     * @return    string
112
-     */
113
-    public function get_output()
114
-    {
115
-        return $this->_output;
116
-    }
117
-
118
-
119
-    /**
120
-     * @deprecated  4.9.53
121
-     * @return boolean
122
-     */
123
-    public function request_terminated()
124
-    {
125
-        return $this->request_terminated;
126
-    }
127
-
128
-
129
-    /**
130
-     * @deprecated  4.9.53
131
-     * @param boolean $request_terminated
132
-     */
133
-    public function terminate_request($request_terminated = true)
134
-    {
135
-        $this->request_terminated = filter_var($request_terminated, FILTER_VALIDATE_BOOLEAN);
136
-    }
137
-
138
-
139
-    /**
140
-     * @deprecated  4.9.53
141
-     * @return boolean
142
-     */
143
-    public function plugin_deactivated()
144
-    {
145
-        return $this->deactivate_plugin;
146
-    }
147
-
148
-
149
-    /**
150
-     * @deprecated  4.9.53
151
-     * sets $deactivate_plugin to true
152
-     */
153
-    public function deactivate_plugin()
154
-    {
155
-        $this->deactivate_plugin = true;
156
-    }
15
+	/**
16
+	 * @access    protected
17
+	 * @type        array $_notice
18
+	 */
19
+	protected $_notice = array();
20
+
21
+	/**
22
+	 *    rendered output to be returned to WP
23
+	 *
24
+	 * @access    protected
25
+	 * @type        string
26
+	 */
27
+	protected $_output = '';
28
+
29
+	/**
30
+	 * @access    protected
31
+	 * @type        bool
32
+	 */
33
+	protected $request_terminated = false;
34
+
35
+	/**
36
+	 * @access    protected
37
+	 * @type        bool
38
+	 */
39
+	protected $deactivate_plugin = false;
40
+
41
+
42
+	/**
43
+	 * @deprecated  4.9.53
44
+	 * @return \EE_Response
45
+	 */
46
+	public function __construct()
47
+	{
48
+		$this->terminate_request(false);
49
+		EE_Error::doing_it_wrong(
50
+			__METHOD__,
51
+			sprintf(
52
+				esc_html__(
53
+					'This class is deprecated. Please use %1$s instead. All Event Espresso request stack classes have been moved to %2$s and are now under the %3$s namespace',
54
+					'event_espresso'
55
+				),
56
+				'EventEspresso\core\services\request\Response',
57
+				'\core\services\request',
58
+				'EventEspresso\core\services\request'
59
+			),
60
+			'4.9.53'
61
+		);
62
+	}
63
+
64
+
65
+	/**
66
+	 * @deprecated  4.9.53
67
+	 * @param $key
68
+	 * @param $value
69
+	 * @return    void
70
+	 */
71
+	public function set_notice($key, $value)
72
+	{
73
+		$this->_notice[ $key ] = $value;
74
+	}
75
+
76
+
77
+	/**
78
+	 * @deprecated  4.9.53
79
+	 * @param $key
80
+	 * @return    mixed
81
+	 */
82
+	public function get_notice($key)
83
+	{
84
+		return isset($this->_notice[ $key ]) ? $this->_notice[ $key ] : null;
85
+	}
86
+
87
+
88
+	/**
89
+	 * @deprecated  4.9.53
90
+	 * @return    array
91
+	 */
92
+	public function get_notices()
93
+	{
94
+		return $this->_notice;
95
+	}
96
+
97
+
98
+	/**
99
+	 * @deprecated  4.9.53
100
+	 * @param      $string
101
+	 * @param bool $append
102
+	 */
103
+	public function add_output($string, $append = true)
104
+	{
105
+		$this->_output = $append ? $this->_output . $string : $string . $this->_output;
106
+	}
107
+
108
+
109
+	/**
110
+	 * @deprecated  4.9.53
111
+	 * @return    string
112
+	 */
113
+	public function get_output()
114
+	{
115
+		return $this->_output;
116
+	}
117
+
118
+
119
+	/**
120
+	 * @deprecated  4.9.53
121
+	 * @return boolean
122
+	 */
123
+	public function request_terminated()
124
+	{
125
+		return $this->request_terminated;
126
+	}
127
+
128
+
129
+	/**
130
+	 * @deprecated  4.9.53
131
+	 * @param boolean $request_terminated
132
+	 */
133
+	public function terminate_request($request_terminated = true)
134
+	{
135
+		$this->request_terminated = filter_var($request_terminated, FILTER_VALIDATE_BOOLEAN);
136
+	}
137
+
138
+
139
+	/**
140
+	 * @deprecated  4.9.53
141
+	 * @return boolean
142
+	 */
143
+	public function plugin_deactivated()
144
+	{
145
+		return $this->deactivate_plugin;
146
+	}
147
+
148
+
149
+	/**
150
+	 * @deprecated  4.9.53
151
+	 * sets $deactivate_plugin to true
152
+	 */
153
+	public function deactivate_plugin()
154
+	{
155
+		$this->deactivate_plugin = true;
156
+	}
157 157
 }
Please login to merge, or discard this patch.