Completed
Branch 973/fix-visible-recaptcha (0580c7)
by
unknown
03:03 queued 30s
created
strategies/normalization/EE_Boolean_Normalization.strategy.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -13,27 +13,27 @@
 block discarded – undo
13 13
 class EE_Boolean_Normalization extends EE_Normalization_Strategy_Base
14 14
 {
15 15
 
16
-    /**
17
-     * @param string | int | bool $value_to_normalize
18
-     * @return boolean
19
-     */
20
-    public function normalize($value_to_normalize)
21
-    {
22
-        return filter_var($value_to_normalize, FILTER_VALIDATE_BOOLEAN);
23
-    }
16
+	/**
17
+	 * @param string | int | bool $value_to_normalize
18
+	 * @return boolean
19
+	 */
20
+	public function normalize($value_to_normalize)
21
+	{
22
+		return filter_var($value_to_normalize, FILTER_VALIDATE_BOOLEAN);
23
+	}
24 24
 
25 25
 
26 26
 
27
-    /**
28
-     * @param boolean $normalized_value
29
-     * @return string
30
-     */
31
-    public function unnormalize($normalized_value)
32
-    {
33
-        if ($normalized_value) {
34
-            return '1';
35
-        } else {
36
-            return '0';
37
-        }
38
-    }
27
+	/**
28
+	 * @param boolean $normalized_value
29
+	 * @return string
30
+	 */
31
+	public function unnormalize($normalized_value)
32
+	{
33
+		if ($normalized_value) {
34
+			return '1';
35
+		} else {
36
+			return '0';
37
+		}
38
+	}
39 39
 }
Please login to merge, or discard this patch.
strategies/normalization/EE_Many_Valued_Normalization.strategy.php 2 patches
Indentation   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -10,90 +10,90 @@
 block discarded – undo
10 10
 class EE_Many_Valued_Normalization extends EE_Normalization_Strategy_Base
11 11
 {
12 12
 
13
-    protected $_individual_item_normalization_strategy = array();
14
-
15
-
16
-
17
-    /**
18
-     * @param EE_Normalization_Strategy_Base $individual_item_normalization_strategy
19
-     */
20
-    public function __construct($individual_item_normalization_strategy)
21
-    {
22
-        $this->_individual_item_normalization_strategy = $individual_item_normalization_strategy;
23
-        parent::__construct();
24
-    }
25
-
26
-
27
-
28
-    /**
29
-     * Normalizes the input into an array, and normalizes each item according to its
30
-     * individual item normalization strategy
31
-     *
32
-     * @param array | string $value_to_normalize
33
-     * @return array
34
-     */
35
-    public function normalize($value_to_normalize)
36
-    {
37
-        if (is_array($value_to_normalize)) {
38
-            $items_to_normalize = $value_to_normalize;
39
-        } elseif ($value_to_normalize !== null) {
40
-            $items_to_normalize = array($value_to_normalize);
41
-        } else {
42
-            $items_to_normalize = array();
43
-        }
44
-        $normalized_array_value = array();
45
-        foreach ($items_to_normalize as $key => $individual_item) {
46
-            $normalized_array_value[ $key ] = $this->normalize_one($individual_item);
47
-        }
48
-        return $normalized_array_value;
49
-    }
50
-
51
-
52
-
53
-    /**
54
-     * Normalized the one item (called for each array item in EE_Many_values_Normalization::normalize())
55
-     *
56
-     * @param string $individual_value_to_normalize but definitely NOT an array
57
-     * @return mixed
58
-     */
59
-    public function normalize_one($individual_value_to_normalize)
60
-    {
61
-        return $this->_individual_item_normalization_strategy->normalize($individual_value_to_normalize);
62
-    }
63
-
64
-
65
-
66
-    /**
67
-     * Converts the array of normalized things to an array of raw html values.
68
-     *
69
-     * @param array $normalized_values
70
-     * @return string[]
71
-     */
72
-    public function unnormalize($normalized_values)
73
-    {
74
-        if ($normalized_values === null) {
75
-            $normalized_values = array();
76
-        }
77
-        if (! is_array($normalized_values)) {
78
-            $normalized_values = array($normalized_values);
79
-        }
80
-        $non_normal_values = array();
81
-        foreach ($normalized_values as $key => $value) {
82
-            $non_normal_values[ $key ] = $this->unnormalize_one($value);
83
-        }
84
-        return $non_normal_values;
85
-    }
86
-
87
-
88
-
89
-    /**
90
-     * Unnormalizes an individual item in the array of values
91
-     *
92
-     * @param mixed $individual_value_to_unnormalize but certainly NOT an array
93
-     * @return string
94
-     */
95
-    public function unnormalize_one($individual_value_to_unnormalize)
96
-    {
97
-        return $this->_individual_item_normalization_strategy->unnormalize($individual_value_to_unnormalize);
98
-    }
13
+	protected $_individual_item_normalization_strategy = array();
14
+
15
+
16
+
17
+	/**
18
+	 * @param EE_Normalization_Strategy_Base $individual_item_normalization_strategy
19
+	 */
20
+	public function __construct($individual_item_normalization_strategy)
21
+	{
22
+		$this->_individual_item_normalization_strategy = $individual_item_normalization_strategy;
23
+		parent::__construct();
24
+	}
25
+
26
+
27
+
28
+	/**
29
+	 * Normalizes the input into an array, and normalizes each item according to its
30
+	 * individual item normalization strategy
31
+	 *
32
+	 * @param array | string $value_to_normalize
33
+	 * @return array
34
+	 */
35
+	public function normalize($value_to_normalize)
36
+	{
37
+		if (is_array($value_to_normalize)) {
38
+			$items_to_normalize = $value_to_normalize;
39
+		} elseif ($value_to_normalize !== null) {
40
+			$items_to_normalize = array($value_to_normalize);
41
+		} else {
42
+			$items_to_normalize = array();
43
+		}
44
+		$normalized_array_value = array();
45
+		foreach ($items_to_normalize as $key => $individual_item) {
46
+			$normalized_array_value[ $key ] = $this->normalize_one($individual_item);
47
+		}
48
+		return $normalized_array_value;
49
+	}
50
+
51
+
52
+
53
+	/**
54
+	 * Normalized the one item (called for each array item in EE_Many_values_Normalization::normalize())
55
+	 *
56
+	 * @param string $individual_value_to_normalize but definitely NOT an array
57
+	 * @return mixed
58
+	 */
59
+	public function normalize_one($individual_value_to_normalize)
60
+	{
61
+		return $this->_individual_item_normalization_strategy->normalize($individual_value_to_normalize);
62
+	}
63
+
64
+
65
+
66
+	/**
67
+	 * Converts the array of normalized things to an array of raw html values.
68
+	 *
69
+	 * @param array $normalized_values
70
+	 * @return string[]
71
+	 */
72
+	public function unnormalize($normalized_values)
73
+	{
74
+		if ($normalized_values === null) {
75
+			$normalized_values = array();
76
+		}
77
+		if (! is_array($normalized_values)) {
78
+			$normalized_values = array($normalized_values);
79
+		}
80
+		$non_normal_values = array();
81
+		foreach ($normalized_values as $key => $value) {
82
+			$non_normal_values[ $key ] = $this->unnormalize_one($value);
83
+		}
84
+		return $non_normal_values;
85
+	}
86
+
87
+
88
+
89
+	/**
90
+	 * Unnormalizes an individual item in the array of values
91
+	 *
92
+	 * @param mixed $individual_value_to_unnormalize but certainly NOT an array
93
+	 * @return string
94
+	 */
95
+	public function unnormalize_one($individual_value_to_unnormalize)
96
+	{
97
+		return $this->_individual_item_normalization_strategy->unnormalize($individual_value_to_unnormalize);
98
+	}
99 99
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         }
44 44
         $normalized_array_value = array();
45 45
         foreach ($items_to_normalize as $key => $individual_item) {
46
-            $normalized_array_value[ $key ] = $this->normalize_one($individual_item);
46
+            $normalized_array_value[$key] = $this->normalize_one($individual_item);
47 47
         }
48 48
         return $normalized_array_value;
49 49
     }
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
         if ($normalized_values === null) {
75 75
             $normalized_values = array();
76 76
         }
77
-        if (! is_array($normalized_values)) {
77
+        if ( ! is_array($normalized_values)) {
78 78
             $normalized_values = array($normalized_values);
79 79
         }
80 80
         $non_normal_values = array();
81 81
         foreach ($normalized_values as $key => $value) {
82
-            $non_normal_values[ $key ] = $this->unnormalize_one($value);
82
+            $non_normal_values[$key] = $this->unnormalize_one($value);
83 83
         }
84 84
         return $non_normal_values;
85 85
     }
Please login to merge, or discard this patch.
form_sections/strategies/normalization/EE_Slug_Normalization.strategy.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -10,25 +10,25 @@
 block discarded – undo
10 10
 class EE_Slug_Normalization extends EE_Normalization_Strategy_Base
11 11
 {
12 12
 
13
-    /**
14
-     * @param string $value_to_normalize
15
-     * @return string
16
-     */
17
-    public function normalize($value_to_normalize)
18
-    {
19
-        return sanitize_title($value_to_normalize);
20
-    }
13
+	/**
14
+	 * @param string $value_to_normalize
15
+	 * @return string
16
+	 */
17
+	public function normalize($value_to_normalize)
18
+	{
19
+		return sanitize_title($value_to_normalize);
20
+	}
21 21
 
22 22
 
23 23
 
24
-    /**
25
-     * It's hard to unnormalize this- let's just take a guess
26
-     *
27
-     * @param string $normalized_value
28
-     * @return string
29
-     */
30
-    public function unnormalize($normalized_value)
31
-    {
32
-        return str_replace("-", " ", $normalized_value);
33
-    }
24
+	/**
25
+	 * It's hard to unnormalize this- let's just take a guess
26
+	 *
27
+	 * @param string $normalized_value
28
+	 * @return string
29
+	 */
30
+	public function unnormalize($normalized_value)
31
+	{
32
+		return str_replace("-", " ", $normalized_value);
33
+	}
34 34
 }
Please login to merge, or discard this patch.
strategies/normalization/EE_Credit_Card_Normalization.strategy.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@
 block discarded – undo
9 9
 class EE_Credit_Card_Normalization extends EE_Text_Normalization
10 10
 {
11 11
 
12
-    /**
13
-     * @param string $value_to_normalize
14
-     * @return mixed
15
-     */
16
-    public function normalize($value_to_normalize)
17
-    {
18
-        $normalized_by_parent = parent::normalize($value_to_normalize);
19
-        // we want to make it consistent, so remove whitespace from cc number
20
-        return preg_replace('/\s+/', '', $normalized_by_parent);
21
-    }
12
+	/**
13
+	 * @param string $value_to_normalize
14
+	 * @return mixed
15
+	 */
16
+	public function normalize($value_to_normalize)
17
+	{
18
+		$normalized_by_parent = parent::normalize($value_to_normalize);
19
+		// we want to make it consistent, so remove whitespace from cc number
20
+		return preg_replace('/\s+/', '', $normalized_by_parent);
21
+	}
22 22
 }
Please login to merge, or discard this patch.
form_sections/strategies/normalization/EE_Text_Normalization.strategy.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -10,38 +10,38 @@
 block discarded – undo
10 10
 class EE_Text_Normalization extends EE_Normalization_Strategy_Base
11 11
 {
12 12
 
13
-    /**
14
-     * @param string $value_to_normalize
15
-     * @return array|mixed|string
16
-     */
17
-    public function normalize($value_to_normalize)
18
-    {
19
-        if (is_array($value_to_normalize)) {
20
-            return (string) array_shift($value_to_normalize);
21
-        }
22
-        // consider `"null"` values to be equivalent to null.
23
-        if ($value_to_normalize === '' || $value_to_normalize === null) {
24
-            return null;
25
-        }
26
-        return (string) $value_to_normalize;
27
-    }
13
+	/**
14
+	 * @param string $value_to_normalize
15
+	 * @return array|mixed|string
16
+	 */
17
+	public function normalize($value_to_normalize)
18
+	{
19
+		if (is_array($value_to_normalize)) {
20
+			return (string) array_shift($value_to_normalize);
21
+		}
22
+		// consider `"null"` values to be equivalent to null.
23
+		if ($value_to_normalize === '' || $value_to_normalize === null) {
24
+			return null;
25
+		}
26
+		return (string) $value_to_normalize;
27
+	}
28 28
 
29 29
 
30 30
 
31
-    /**
32
-     * IF its a string in PHP, it will be a string in the HTML form. easy
33
-     *
34
-     * @param string $normalized_value
35
-     * @return string
36
-     */
37
-    public function unnormalize($normalized_value)
38
-    {
39
-        // account for default "select here" option values
40
-        if ($normalized_value === null) {
41
-            return '';
42
-        }
43
-        // double-check it's a string. It's possible this value was a question option that happened to be a numeric
44
-        // string, in which case PHP has automatically converted it to an integer!
45
-        return (string) $normalized_value;
46
-    }
31
+	/**
32
+	 * IF its a string in PHP, it will be a string in the HTML form. easy
33
+	 *
34
+	 * @param string $normalized_value
35
+	 * @return string
36
+	 */
37
+	public function unnormalize($normalized_value)
38
+	{
39
+		// account for default "select here" option values
40
+		if ($normalized_value === null) {
41
+			return '';
42
+		}
43
+		// double-check it's a string. It's possible this value was a question option that happened to be a numeric
44
+		// string, in which case PHP has automatically converted it to an integer!
45
+		return (string) $normalized_value;
46
+	}
47 47
 }
Please login to merge, or discard this patch.
libraries/form_sections/strategies/layout/EE_Template_Layout.strategy.php 2 patches
Indentation   +196 added lines, -196 removed lines patch added patch discarded remove patch
@@ -23,200 +23,200 @@
 block discarded – undo
23 23
 class EE_Template_Layout extends EE_Div_Per_Section_Layout
24 24
 {
25 25
 
26
-    protected $_layout_template_file       = null;
27
-
28
-    protected $_layout_begin_template_file = null;
29
-
30
-    protected $_input_template_file        = null;
31
-
32
-    protected $_subsection_template_file   = null;
33
-
34
-    protected $_layout_end_template_file   = null;
35
-
36
-    protected $_template_args              = array();
37
-
38
-
39
-
40
-    /**
41
-     * @param array $template_options {
42
-     * @type string $_layout_template_file
43
-     * @type string $_begin_template_file
44
-     * @type string $_input_template_file
45
-     * @type string $_subsection_template_file
46
-     * @type string $_end_template_file
47
-     * @type array  $_template_args
48
-     *                                }
49
-     */
50
-    public function __construct($template_options = array())
51
-    {
52
-        // loop through incoming options
53
-        foreach ($template_options as $key => $value) {
54
-            // add underscore to $key to match property names
55
-            $_key = '_' . $key;
56
-            if (property_exists($this, $_key)) {
57
-                $this->{$_key} = $value;
58
-            }
59
-        }
60
-        parent::__construct();
61
-    }
62
-
63
-
64
-
65
-    /**
66
-     * Also has the side effect of enqueuing any needed JS and CSS for
67
-     * this form.
68
-     * Creates all the HTML necessary for displaying this form, its inputs, and
69
-     * proper subsections.
70
-     * Returns the HTML
71
-     *
72
-     * @return string
73
-     */
74
-    public function layout_form()
75
-    {
76
-        if ($this->_layout_template_file) {
77
-            return EEH_Template::locate_template($this->_layout_template_file, $this->template_args(), true, true);
78
-        } else {
79
-            return parent::layout_form();
80
-        }
81
-    }
82
-
83
-
84
-
85
-    /**
86
-     * opening div tag for a form
87
-     *
88
-     * @return string
89
-     */
90
-    public function layout_form_begin()
91
-    {
92
-        if ($this->_layout_begin_template_file) {
93
-            return EEH_Template::locate_template(
94
-                $this->_layout_begin_template_file,
95
-                $this->template_args(),
96
-                true,
97
-                true
98
-            );
99
-        } else {
100
-            return parent::layout_form_begin();
101
-        }
102
-    }
103
-
104
-
105
-
106
-    /**
107
-     * If an input_template_file was provided upon construction, uses that to layout the input. Otherwise uses parent.
108
-     *
109
-     * @see EE_DIv_Per_Section_Layout::layout_input() for documentation
110
-     * @param EE_Form_Input_Base $input
111
-     * @return string
112
-     */
113
-    public function layout_input($input)
114
-    {
115
-        if ($this->_input_template_file) {
116
-            return EEH_Template::locate_template($this->_input_template_file, array('input' => $input), true, true);
117
-        }
118
-        return parent::layout_input($input);
119
-    }
120
-
121
-
122
-
123
-    /**
124
-     * If a subsection_template_file was provided upon construction, uses that to layout the subsection. Otherwise uses parent.
125
-     *
126
-     * @see EE_Div_Per_Section_Layout::layout_subsection() for documentation
127
-     * @param EE_Form_Section_Proper $form_section
128
-     * @return string
129
-     */
130
-    public function layout_subsection($form_section)
131
-    {
132
-        if ($this->_subsection_template_file) {
133
-            return EEH_Template::locate_template($this->_subsection_template_file, $this->template_args(), true, true);
134
-        }
135
-        return parent::layout_subsection($form_section);
136
-    }
137
-
138
-
139
-
140
-    /**
141
-     * closing div tag for a form
142
-     *
143
-     * @return string
144
-     */
145
-    public function layout_form_end()
146
-    {
147
-        if ($this->_layout_end_template_file) {
148
-            return EEH_Template::locate_template($this->_layout_end_template_file, $this->template_args(), true, true);
149
-        } else {
150
-            return parent::layout_form_end();
151
-        }
152
-    }
153
-
154
-
155
-
156
-    /**
157
-     * @param array $template_args
158
-     */
159
-    public function set_template_args($template_args = array())
160
-    {
161
-        $this->_template_args = $template_args;
162
-    }
163
-
164
-
165
-
166
-    /**
167
-     * @param array $template_args
168
-     */
169
-    public function add_template_args($template_args = array())
170
-    {
171
-        $this->_template_args = array_merge_recursive($this->_template_args, $template_args);
172
-    }
173
-
174
-
175
-
176
-    /**
177
-     * @return array
178
-     */
179
-    public function template_args()
180
-    {
181
-        foreach ($this->form_section()->subsections() as $subsection_name => $subsection) {
182
-            $subsection_name = self::prep_form_subsection_key_name($subsection_name);
183
-            if (strpos($subsection_name, '[') !== false) {
184
-                $sub_name = explode('[', $subsection_name);
185
-                $this->_template_args[ $sub_name[0] ][ rtrim($sub_name[1], ']') ] = $this->layout_subsection($subsection);
186
-            } else {
187
-                $this->_template_args[ $subsection_name ] = $this->layout_subsection($subsection);
188
-            }
189
-        }
190
-        //      d( $this->_template_args );
191
-        return $this->_template_args;
192
-    }
193
-
194
-
195
-
196
-    /**
197
-     * prep_form_section_key_name
198
-     *
199
-     * @access public
200
-     * @param string $subsection_name
201
-     * @return string
202
-     */
203
-    public static function prep_form_subsection_key_name($subsection_name = '')
204
-    {
205
-        $subsection_name = str_replace(array('-', ' '), array('', '_'), $subsection_name);
206
-        return is_numeric(substr($subsection_name, 0, 1)) ? 'form_' . $subsection_name : $subsection_name;
207
-    }
208
-
209
-
210
-
211
-    /**
212
-     * get_subform - just a wrapper for the above method
213
-     *
214
-     * @access public
215
-     * @param string $subsection_name
216
-     * @return string
217
-     */
218
-    public static function get_subform_name($subsection_name = '')
219
-    {
220
-        return EE_Template_Layout::prep_form_subsection_key_name($subsection_name);
221
-    }
26
+	protected $_layout_template_file       = null;
27
+
28
+	protected $_layout_begin_template_file = null;
29
+
30
+	protected $_input_template_file        = null;
31
+
32
+	protected $_subsection_template_file   = null;
33
+
34
+	protected $_layout_end_template_file   = null;
35
+
36
+	protected $_template_args              = array();
37
+
38
+
39
+
40
+	/**
41
+	 * @param array $template_options {
42
+	 * @type string $_layout_template_file
43
+	 * @type string $_begin_template_file
44
+	 * @type string $_input_template_file
45
+	 * @type string $_subsection_template_file
46
+	 * @type string $_end_template_file
47
+	 * @type array  $_template_args
48
+	 *                                }
49
+	 */
50
+	public function __construct($template_options = array())
51
+	{
52
+		// loop through incoming options
53
+		foreach ($template_options as $key => $value) {
54
+			// add underscore to $key to match property names
55
+			$_key = '_' . $key;
56
+			if (property_exists($this, $_key)) {
57
+				$this->{$_key} = $value;
58
+			}
59
+		}
60
+		parent::__construct();
61
+	}
62
+
63
+
64
+
65
+	/**
66
+	 * Also has the side effect of enqueuing any needed JS and CSS for
67
+	 * this form.
68
+	 * Creates all the HTML necessary for displaying this form, its inputs, and
69
+	 * proper subsections.
70
+	 * Returns the HTML
71
+	 *
72
+	 * @return string
73
+	 */
74
+	public function layout_form()
75
+	{
76
+		if ($this->_layout_template_file) {
77
+			return EEH_Template::locate_template($this->_layout_template_file, $this->template_args(), true, true);
78
+		} else {
79
+			return parent::layout_form();
80
+		}
81
+	}
82
+
83
+
84
+
85
+	/**
86
+	 * opening div tag for a form
87
+	 *
88
+	 * @return string
89
+	 */
90
+	public function layout_form_begin()
91
+	{
92
+		if ($this->_layout_begin_template_file) {
93
+			return EEH_Template::locate_template(
94
+				$this->_layout_begin_template_file,
95
+				$this->template_args(),
96
+				true,
97
+				true
98
+			);
99
+		} else {
100
+			return parent::layout_form_begin();
101
+		}
102
+	}
103
+
104
+
105
+
106
+	/**
107
+	 * If an input_template_file was provided upon construction, uses that to layout the input. Otherwise uses parent.
108
+	 *
109
+	 * @see EE_DIv_Per_Section_Layout::layout_input() for documentation
110
+	 * @param EE_Form_Input_Base $input
111
+	 * @return string
112
+	 */
113
+	public function layout_input($input)
114
+	{
115
+		if ($this->_input_template_file) {
116
+			return EEH_Template::locate_template($this->_input_template_file, array('input' => $input), true, true);
117
+		}
118
+		return parent::layout_input($input);
119
+	}
120
+
121
+
122
+
123
+	/**
124
+	 * If a subsection_template_file was provided upon construction, uses that to layout the subsection. Otherwise uses parent.
125
+	 *
126
+	 * @see EE_Div_Per_Section_Layout::layout_subsection() for documentation
127
+	 * @param EE_Form_Section_Proper $form_section
128
+	 * @return string
129
+	 */
130
+	public function layout_subsection($form_section)
131
+	{
132
+		if ($this->_subsection_template_file) {
133
+			return EEH_Template::locate_template($this->_subsection_template_file, $this->template_args(), true, true);
134
+		}
135
+		return parent::layout_subsection($form_section);
136
+	}
137
+
138
+
139
+
140
+	/**
141
+	 * closing div tag for a form
142
+	 *
143
+	 * @return string
144
+	 */
145
+	public function layout_form_end()
146
+	{
147
+		if ($this->_layout_end_template_file) {
148
+			return EEH_Template::locate_template($this->_layout_end_template_file, $this->template_args(), true, true);
149
+		} else {
150
+			return parent::layout_form_end();
151
+		}
152
+	}
153
+
154
+
155
+
156
+	/**
157
+	 * @param array $template_args
158
+	 */
159
+	public function set_template_args($template_args = array())
160
+	{
161
+		$this->_template_args = $template_args;
162
+	}
163
+
164
+
165
+
166
+	/**
167
+	 * @param array $template_args
168
+	 */
169
+	public function add_template_args($template_args = array())
170
+	{
171
+		$this->_template_args = array_merge_recursive($this->_template_args, $template_args);
172
+	}
173
+
174
+
175
+
176
+	/**
177
+	 * @return array
178
+	 */
179
+	public function template_args()
180
+	{
181
+		foreach ($this->form_section()->subsections() as $subsection_name => $subsection) {
182
+			$subsection_name = self::prep_form_subsection_key_name($subsection_name);
183
+			if (strpos($subsection_name, '[') !== false) {
184
+				$sub_name = explode('[', $subsection_name);
185
+				$this->_template_args[ $sub_name[0] ][ rtrim($sub_name[1], ']') ] = $this->layout_subsection($subsection);
186
+			} else {
187
+				$this->_template_args[ $subsection_name ] = $this->layout_subsection($subsection);
188
+			}
189
+		}
190
+		//      d( $this->_template_args );
191
+		return $this->_template_args;
192
+	}
193
+
194
+
195
+
196
+	/**
197
+	 * prep_form_section_key_name
198
+	 *
199
+	 * @access public
200
+	 * @param string $subsection_name
201
+	 * @return string
202
+	 */
203
+	public static function prep_form_subsection_key_name($subsection_name = '')
204
+	{
205
+		$subsection_name = str_replace(array('-', ' '), array('', '_'), $subsection_name);
206
+		return is_numeric(substr($subsection_name, 0, 1)) ? 'form_' . $subsection_name : $subsection_name;
207
+	}
208
+
209
+
210
+
211
+	/**
212
+	 * get_subform - just a wrapper for the above method
213
+	 *
214
+	 * @access public
215
+	 * @param string $subsection_name
216
+	 * @return string
217
+	 */
218
+	public static function get_subform_name($subsection_name = '')
219
+	{
220
+		return EE_Template_Layout::prep_form_subsection_key_name($subsection_name);
221
+	}
222 222
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         // loop through incoming options
53 53
         foreach ($template_options as $key => $value) {
54 54
             // add underscore to $key to match property names
55
-            $_key = '_' . $key;
55
+            $_key = '_'.$key;
56 56
             if (property_exists($this, $_key)) {
57 57
                 $this->{$_key} = $value;
58 58
             }
@@ -182,9 +182,9 @@  discard block
 block discarded – undo
182 182
             $subsection_name = self::prep_form_subsection_key_name($subsection_name);
183 183
             if (strpos($subsection_name, '[') !== false) {
184 184
                 $sub_name = explode('[', $subsection_name);
185
-                $this->_template_args[ $sub_name[0] ][ rtrim($sub_name[1], ']') ] = $this->layout_subsection($subsection);
185
+                $this->_template_args[$sub_name[0]][rtrim($sub_name[1], ']')] = $this->layout_subsection($subsection);
186 186
             } else {
187
-                $this->_template_args[ $subsection_name ] = $this->layout_subsection($subsection);
187
+                $this->_template_args[$subsection_name] = $this->layout_subsection($subsection);
188 188
             }
189 189
         }
190 190
         //      d( $this->_template_args );
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     public static function prep_form_subsection_key_name($subsection_name = '')
204 204
     {
205 205
         $subsection_name = str_replace(array('-', ' '), array('', '_'), $subsection_name);
206
-        return is_numeric(substr($subsection_name, 0, 1)) ? 'form_' . $subsection_name : $subsection_name;
206
+        return is_numeric(substr($subsection_name, 0, 1)) ? 'form_'.$subsection_name : $subsection_name;
207 207
     }
208 208
 
209 209
 
Please login to merge, or discard this patch.
form_sections/strategies/layout/EE_Fieldset_Section_Layout.strategy.php 2 patches
Indentation   +103 added lines, -103 removed lines patch added patch discarded remove patch
@@ -12,107 +12,107 @@
 block discarded – undo
12 12
 class EE_Fieldset_Section_Layout extends EE_Div_Per_Section_Layout
13 13
 {
14 14
 
15
-    /**
16
-     * legend_class
17
-     *
18
-     * @var string
19
-     */
20
-    protected $_legend_class;
21
-
22
-    /**
23
-     * legend_text
24
-     *
25
-     * @var string
26
-     */
27
-    protected $_legend_text;
28
-
29
-
30
-
31
-    /**
32
-     *    construct
33
-     *
34
-     * @param array $options
35
-     */
36
-    public function __construct($options = array())
37
-    {
38
-        foreach ($options as $key => $value) {
39
-            $key = '_' . $key;
40
-            if (property_exists($this, $key)) {
41
-                $this->{$key} = $value;
42
-            }
43
-        }
44
-    }
45
-
46
-
47
-
48
-    /**
49
-     * opening div tag for a form
50
-     *
51
-     * @return string
52
-     */
53
-    public function layout_form_begin()
54
-    {
55
-        $html = EEH_HTML::nl(1)
56
-                . '<fieldset id="'
57
-                . $this->_form_section->html_id()
58
-                . '" class="'
59
-                . $this->_form_section->html_class()
60
-                . '" style="'
61
-                . $this->_form_section->html_style()
62
-                . '">';
63
-        $html .= '<legend class="' . $this->legend_class() . '">' . $this->legend_text() . '</legend>';
64
-        return $html;
65
-    }
66
-
67
-
68
-
69
-    /**
70
-     * closing div tag for a form
71
-     *
72
-     * @return string
73
-     */
74
-    public function layout_form_end()
75
-    {
76
-        return EEH_HTML::nl(-1) . '</fieldset>';
77
-    }
78
-
79
-
80
-
81
-    /**
82
-     * @param string $legend_class
83
-     */
84
-    public function set_legend_class($legend_class)
85
-    {
86
-        $this->_legend_class = $legend_class;
87
-    }
88
-
89
-
90
-
91
-    /**
92
-     * @return string
93
-     */
94
-    public function legend_class()
95
-    {
96
-        return $this->_legend_class;
97
-    }
98
-
99
-
100
-
101
-    /**
102
-     * @param string $legend_text
103
-     */
104
-    public function set_legend_text($legend_text)
105
-    {
106
-        $this->_legend_text = $legend_text;
107
-    }
108
-
109
-
110
-
111
-    /**
112
-     * @return string
113
-     */
114
-    public function legend_text()
115
-    {
116
-        return $this->_legend_text;
117
-    }
15
+	/**
16
+	 * legend_class
17
+	 *
18
+	 * @var string
19
+	 */
20
+	protected $_legend_class;
21
+
22
+	/**
23
+	 * legend_text
24
+	 *
25
+	 * @var string
26
+	 */
27
+	protected $_legend_text;
28
+
29
+
30
+
31
+	/**
32
+	 *    construct
33
+	 *
34
+	 * @param array $options
35
+	 */
36
+	public function __construct($options = array())
37
+	{
38
+		foreach ($options as $key => $value) {
39
+			$key = '_' . $key;
40
+			if (property_exists($this, $key)) {
41
+				$this->{$key} = $value;
42
+			}
43
+		}
44
+	}
45
+
46
+
47
+
48
+	/**
49
+	 * opening div tag for a form
50
+	 *
51
+	 * @return string
52
+	 */
53
+	public function layout_form_begin()
54
+	{
55
+		$html = EEH_HTML::nl(1)
56
+				. '<fieldset id="'
57
+				. $this->_form_section->html_id()
58
+				. '" class="'
59
+				. $this->_form_section->html_class()
60
+				. '" style="'
61
+				. $this->_form_section->html_style()
62
+				. '">';
63
+		$html .= '<legend class="' . $this->legend_class() . '">' . $this->legend_text() . '</legend>';
64
+		return $html;
65
+	}
66
+
67
+
68
+
69
+	/**
70
+	 * closing div tag for a form
71
+	 *
72
+	 * @return string
73
+	 */
74
+	public function layout_form_end()
75
+	{
76
+		return EEH_HTML::nl(-1) . '</fieldset>';
77
+	}
78
+
79
+
80
+
81
+	/**
82
+	 * @param string $legend_class
83
+	 */
84
+	public function set_legend_class($legend_class)
85
+	{
86
+		$this->_legend_class = $legend_class;
87
+	}
88
+
89
+
90
+
91
+	/**
92
+	 * @return string
93
+	 */
94
+	public function legend_class()
95
+	{
96
+		return $this->_legend_class;
97
+	}
98
+
99
+
100
+
101
+	/**
102
+	 * @param string $legend_text
103
+	 */
104
+	public function set_legend_text($legend_text)
105
+	{
106
+		$this->_legend_text = $legend_text;
107
+	}
108
+
109
+
110
+
111
+	/**
112
+	 * @return string
113
+	 */
114
+	public function legend_text()
115
+	{
116
+		return $this->_legend_text;
117
+	}
118 118
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function __construct($options = array())
37 37
     {
38 38
         foreach ($options as $key => $value) {
39
-            $key = '_' . $key;
39
+            $key = '_'.$key;
40 40
             if (property_exists($this, $key)) {
41 41
                 $this->{$key} = $value;
42 42
             }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 . '" style="'
61 61
                 . $this->_form_section->html_style()
62 62
                 . '">';
63
-        $html .= '<legend class="' . $this->legend_class() . '">' . $this->legend_text() . '</legend>';
63
+        $html .= '<legend class="'.$this->legend_class().'">'.$this->legend_text().'</legend>';
64 64
         return $html;
65 65
     }
66 66
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function layout_form_end()
75 75
     {
76
-        return EEH_HTML::nl(-1) . '</fieldset>';
76
+        return EEH_HTML::nl(-1).'</fieldset>';
77 77
     }
78 78
 
79 79
 
Please login to merge, or discard this patch.
form_sections/strategies/layout/EE_Admin_Two_Column_Layout.strategy.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function layout_form_begin($additional_args = array())
17 17
     {
18
-        $this->_form_section->set_html_class($this->_form_section->html_class() . ' form-table');
18
+        $this->_form_section->set_html_class($this->_form_section->html_class().' form-table');
19 19
         return parent::layout_form_begin($additional_args);
20 20
     }
21 21
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             || $input->get_display_strategy() instanceof EE_Text_Input_Display_Strategy
53 53
             || $input->get_display_strategy() instanceof EE_Admin_File_Uploader_Display_Strategy
54 54
         ) {
55
-            $input->set_html_class($input->html_class() . ' large-text');
55
+            $input->set_html_class($input->html_class().' large-text');
56 56
         }
57 57
         if ($input instanceof EE_Text_Area_Input) {
58 58
             $input->set_rows(4);
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
         $input_html = $input->get_html_for_input();
62 62
         // maybe add errors and help text ?
63 63
         $input_html .= $input->get_html_for_errors() !== ''
64
-            ? EEH_HTML::nl() . $input->get_html_for_errors()
64
+            ? EEH_HTML::nl().$input->get_html_for_errors()
65 65
             : '';
66 66
         $input_html .= $input->get_html_for_help() !== ''
67
-            ? EEH_HTML::nl() . $input->get_html_for_help()
67
+            ? EEH_HTML::nl().$input->get_html_for_help()
68 68
             : '';
69 69
         // overriding parent to add wp admin specific things.
70 70
         $html = '';
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                     '',
79 79
                     '',
80 80
                     'scope="row"'
81
-                ) . EEH_HTML::td($input_html)
81
+                ).EEH_HTML::td($input_html)
82 82
             );
83 83
         }
84 84
         return $html;
Please login to merge, or discard this patch.
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -7,63 +7,63 @@
 block discarded – undo
7 7
 class EE_Admin_Two_Column_Layout extends EE_Two_Column_Layout
8 8
 {
9 9
 
10
-    /**
11
-     * Overriding the parent table layout to include <tbody> tags
12
-     *
13
-     * @param array $additional_args
14
-     * @return string
15
-     */
16
-    public function layout_form_begin($additional_args = array())
17
-    {
18
-        $this->_form_section->set_html_class($this->_form_section->html_class() . ' form-table');
19
-        return parent::layout_form_begin($additional_args);
20
-    }
10
+	/**
11
+	 * Overriding the parent table layout to include <tbody> tags
12
+	 *
13
+	 * @param array $additional_args
14
+	 * @return string
15
+	 */
16
+	public function layout_form_begin($additional_args = array())
17
+	{
18
+		$this->_form_section->set_html_class($this->_form_section->html_class() . ' form-table');
19
+		return parent::layout_form_begin($additional_args);
20
+	}
21 21
 
22 22
 
23 23
 
24
-    /**
25
-     * Lays out the row for the input, including label and errors
26
-     *
27
-     * @param EE_Form_Input_Base $input
28
-     * @return string
29
-     * @throws EE_Error
30
-     */
31
-    public function layout_input($input)
32
-    {
33
-        if (
34
-            $input->get_display_strategy() instanceof EE_Text_Area_Display_Strategy
35
-            || $input->get_display_strategy() instanceof EE_Text_Input_Display_Strategy
36
-            || $input->get_display_strategy() instanceof EE_Admin_File_Uploader_Display_Strategy
37
-        ) {
38
-            $input->set_html_class($input->html_class() . ' large-text');
39
-        }
40
-        if ($input instanceof EE_Text_Area_Input) {
41
-            $input->set_rows(4);
42
-            $input->set_cols(60);
43
-        }
44
-        $input_html = $input->get_html_for_input();
45
-        // maybe add errors and help text ?
46
-        $input_html .= $input->get_html_for_errors() !== ''
47
-            ? EEH_HTML::nl() . $input->get_html_for_errors()
48
-            : '';
49
-        $input_html .= $input->get_html_for_help() !== ''
50
-            ? EEH_HTML::nl() . $input->get_html_for_help()
51
-            : '';
52
-        // overriding parent to add wp admin specific things.
53
-        $html = '';
54
-        if ($input instanceof EE_Hidden_Input) {
55
-            $html .= EEH_HTML::no_row($input->get_html_for_input());
56
-        } else {
57
-            $html .= EEH_HTML::tr(
58
-                EEH_HTML::th(
59
-                    $input->get_html_for_label(),
60
-                    '',
61
-                    '',
62
-                    '',
63
-                    'scope="row"'
64
-                ) . EEH_HTML::td($input_html)
65
-            );
66
-        }
67
-        return $html;
68
-    }
24
+	/**
25
+	 * Lays out the row for the input, including label and errors
26
+	 *
27
+	 * @param EE_Form_Input_Base $input
28
+	 * @return string
29
+	 * @throws EE_Error
30
+	 */
31
+	public function layout_input($input)
32
+	{
33
+		if (
34
+			$input->get_display_strategy() instanceof EE_Text_Area_Display_Strategy
35
+			|| $input->get_display_strategy() instanceof EE_Text_Input_Display_Strategy
36
+			|| $input->get_display_strategy() instanceof EE_Admin_File_Uploader_Display_Strategy
37
+		) {
38
+			$input->set_html_class($input->html_class() . ' large-text');
39
+		}
40
+		if ($input instanceof EE_Text_Area_Input) {
41
+			$input->set_rows(4);
42
+			$input->set_cols(60);
43
+		}
44
+		$input_html = $input->get_html_for_input();
45
+		// maybe add errors and help text ?
46
+		$input_html .= $input->get_html_for_errors() !== ''
47
+			? EEH_HTML::nl() . $input->get_html_for_errors()
48
+			: '';
49
+		$input_html .= $input->get_html_for_help() !== ''
50
+			? EEH_HTML::nl() . $input->get_html_for_help()
51
+			: '';
52
+		// overriding parent to add wp admin specific things.
53
+		$html = '';
54
+		if ($input instanceof EE_Hidden_Input) {
55
+			$html .= EEH_HTML::no_row($input->get_html_for_input());
56
+		} else {
57
+			$html .= EEH_HTML::tr(
58
+				EEH_HTML::th(
59
+					$input->get_html_for_label(),
60
+					'',
61
+					'',
62
+					'',
63
+					'scope="row"'
64
+				) . EEH_HTML::td($input_html)
65
+			);
66
+		}
67
+		return $html;
68
+	}
69 69
 }
Please login to merge, or discard this patch.
form_sections/strategies/layout/EE_Admin_One_Column_Layout.strategy.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
         return EEH_HTML::table(
15 15
             '',
16 16
             $this->_form_section->html_id(),
17
-            $this->_form_section->html_class() . ' form-table',
17
+            $this->_form_section->html_class().' form-table',
18 18
             $this->_form_section->html_style()
19
-        ) . EEH_HTML::tbody();
19
+        ).EEH_HTML::tbody();
20 20
     }
21 21
 
22 22
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function layout_form_end($additional_args = array())
30 30
     {
31
-        return EEH_HTML::tbodyx() . EEH_HTML::tablex($this->_form_section->html_id());
31
+        return EEH_HTML::tbodyx().EEH_HTML::tablex($this->_form_section->html_id());
32 32
     }
33 33
 
34 34
 
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
             || $input->get_display_strategy() instanceof EE_Text_Input_Display_Strategy
46 46
             || $input->get_display_strategy() instanceof EE_Admin_File_Uploader_Display_Strategy
47 47
         ) {
48
-            $input->set_html_class($input->html_class() . ' large-text');
48
+            $input->set_html_class($input->html_class().' large-text');
49 49
         }
50 50
         $input_html = $input->get_html_for_input();
51 51
         // maybe add errors and help text ?
52 52
         $input_html .= $input->get_html_for_errors() !== ''
53
-            ? EEH_HTML::nl() . $input->get_html_for_errors()
53
+            ? EEH_HTML::nl().$input->get_html_for_errors()
54 54
             : '';
55 55
         $input_html .= $input->get_html_for_help() !== ''
56
-            ? EEH_HTML::nl() . $input->get_html_for_help()
56
+            ? EEH_HTML::nl().$input->get_html_for_help()
57 57
             : '';
58 58
         // overriding parent to add wp admin specific things.
59 59
         $html = '';
Please login to merge, or discard this patch.
Indentation   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -3,90 +3,90 @@
 block discarded – undo
3 3
 class EE_Admin_One_Column_Layout extends EE_Form_Section_Layout_Base
4 4
 {
5 5
 
6
-    /**
7
-     * Starts the form section
8
-     *
9
-     * @param array $additional_args
10
-     * @return string
11
-     */
12
-    public function layout_form_begin($additional_args = array())
13
-    {
14
-        return EEH_HTML::table(
15
-            '',
16
-            $this->_form_section->html_id(),
17
-            $this->_form_section->html_class() . ' form-table',
18
-            $this->_form_section->html_style()
19
-        ) . EEH_HTML::tbody();
20
-    }
6
+	/**
7
+	 * Starts the form section
8
+	 *
9
+	 * @param array $additional_args
10
+	 * @return string
11
+	 */
12
+	public function layout_form_begin($additional_args = array())
13
+	{
14
+		return EEH_HTML::table(
15
+			'',
16
+			$this->_form_section->html_id(),
17
+			$this->_form_section->html_class() . ' form-table',
18
+			$this->_form_section->html_style()
19
+		) . EEH_HTML::tbody();
20
+	}
21 21
 
22 22
 
23
-    /**
24
-     * Ends the form section
25
-     *
26
-     * @param array $additional_args
27
-     * @return string
28
-     */
29
-    public function layout_form_end($additional_args = array())
30
-    {
31
-        return EEH_HTML::tbodyx() . EEH_HTML::tablex($this->_form_section->html_id());
32
-    }
23
+	/**
24
+	 * Ends the form section
25
+	 *
26
+	 * @param array $additional_args
27
+	 * @return string
28
+	 */
29
+	public function layout_form_end($additional_args = array())
30
+	{
31
+		return EEH_HTML::tbodyx() . EEH_HTML::tablex($this->_form_section->html_id());
32
+	}
33 33
 
34 34
 
35
-    /**
36
-     * Lays out the row for the input, including label and errors
37
-     *
38
-     * @param EE_Form_Input_Base $input
39
-     * @return string
40
-     * @throws EE_Error
41
-     */
42
-    public function layout_input($input)
43
-    {
44
-        if (
45
-            $input->get_display_strategy() instanceof EE_Text_Area_Display_Strategy
46
-            || $input->get_display_strategy() instanceof EE_Text_Input_Display_Strategy
47
-            || $input->get_display_strategy() instanceof EE_Admin_File_Uploader_Display_Strategy
48
-        ) {
49
-            $input->set_html_class($input->html_class() . ' large-text');
50
-        }
51
-        $input_html = $input->get_html_for_input();
52
-        // maybe add errors and help text ?
53
-        $input_html .= $input->get_html_for_errors() !== ''
54
-            ? EEH_HTML::nl() . $input->get_html_for_errors()
55
-            : '';
56
-        $input_html .= $input->get_html_for_help() !== ''
57
-            ? EEH_HTML::nl() . $input->get_html_for_help()
58
-            : '';
59
-        // overriding parent to add wp admin specific things.
60
-        $html = '';
61
-        if ($input instanceof EE_Hidden_Input) {
62
-            $html .= EEH_HTML::no_row($input->get_html_for_input());
63
-        } else {
64
-            $html .= EEH_HTML::tr(
65
-                EEH_HTML::td(
66
-                    $input->get_html_for_label()
67
-                    . EEH_HTML::nl()
68
-                    . $input_html
69
-                )
70
-            );
71
-        }
72
-        return $html;
73
-    }
35
+	/**
36
+	 * Lays out the row for the input, including label and errors
37
+	 *
38
+	 * @param EE_Form_Input_Base $input
39
+	 * @return string
40
+	 * @throws EE_Error
41
+	 */
42
+	public function layout_input($input)
43
+	{
44
+		if (
45
+			$input->get_display_strategy() instanceof EE_Text_Area_Display_Strategy
46
+			|| $input->get_display_strategy() instanceof EE_Text_Input_Display_Strategy
47
+			|| $input->get_display_strategy() instanceof EE_Admin_File_Uploader_Display_Strategy
48
+		) {
49
+			$input->set_html_class($input->html_class() . ' large-text');
50
+		}
51
+		$input_html = $input->get_html_for_input();
52
+		// maybe add errors and help text ?
53
+		$input_html .= $input->get_html_for_errors() !== ''
54
+			? EEH_HTML::nl() . $input->get_html_for_errors()
55
+			: '';
56
+		$input_html .= $input->get_html_for_help() !== ''
57
+			? EEH_HTML::nl() . $input->get_html_for_help()
58
+			: '';
59
+		// overriding parent to add wp admin specific things.
60
+		$html = '';
61
+		if ($input instanceof EE_Hidden_Input) {
62
+			$html .= EEH_HTML::no_row($input->get_html_for_input());
63
+		} else {
64
+			$html .= EEH_HTML::tr(
65
+				EEH_HTML::td(
66
+					$input->get_html_for_label()
67
+					. EEH_HTML::nl()
68
+					. $input_html
69
+				)
70
+			);
71
+		}
72
+		return $html;
73
+	}
74 74
 
75 75
 
76
-    /**
77
-     * Lays out a row for the subsection
78
-     *
79
-     * @param EE_Form_Section_Proper $form_section
80
-     * @return string
81
-     */
82
-    public function layout_subsection($form_section)
83
-    {
84
-        if (
85
-            $form_section instanceof EE_Form_Section_Proper
86
-            || $form_section instanceof EE_Form_Section_HTML
87
-        ) {
88
-            return EEH_HTML::no_row($form_section->get_html());
89
-        }
90
-        return '';
91
-    }
76
+	/**
77
+	 * Lays out a row for the subsection
78
+	 *
79
+	 * @param EE_Form_Section_Proper $form_section
80
+	 * @return string
81
+	 */
82
+	public function layout_subsection($form_section)
83
+	{
84
+		if (
85
+			$form_section instanceof EE_Form_Section_Proper
86
+			|| $form_section instanceof EE_Form_Section_HTML
87
+		) {
88
+			return EEH_HTML::no_row($form_section->get_html());
89
+		}
90
+		return '';
91
+	}
92 92
 }
Please login to merge, or discard this patch.