Completed
Branch BUG-11107-submit-button-text (384b65)
by
unknown
51:07 queued 41:07
created
core/libraries/form_sections/inputs/EE_Submit_Input.input.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 	 * @param array $options
15 15
 	 */
16 16
 	public function __construct($options = array()){
17
-        $options['html_label_text'] = ! empty($options['html_label_text'])
18
-            ? $options['html_label_text']
19
-            : $options['default'];
17
+		$options['html_label_text'] = ! empty($options['html_label_text'])
18
+			? $options['html_label_text']
19
+			: $options['default'];
20 20
 		$this->_set_display_strategy(new EE_Submit_Input_Display_Strategy());
21 21
 		$this->_set_normalization_strategy(new EE_Text_Normalization());
22 22
 		$this->_add_validation_strategy( new EE_Plaintext_Validation_Strategy() );
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@
 block discarded – undo
8 8
  *
9 9
  * This input has a default validation strategy of plaintext (which can be removed after construction)
10 10
  */
11
-class EE_Submit_Input extends EE_Form_Input_Base{
11
+class EE_Submit_Input extends EE_Form_Input_Base {
12 12
 
13 13
 	/**
14 14
 	 * @param array $options
15 15
 	 */
16
-	public function __construct($options = array()){
16
+	public function __construct($options = array()) {
17 17
         $options['html_label_text'] = ! empty($options['html_label_text'])
18 18
             ? $options['html_label_text']
19 19
             : $options['default'];
20 20
 		$this->_set_display_strategy(new EE_Submit_Input_Display_Strategy());
21 21
 		$this->_set_normalization_strategy(new EE_Text_Normalization());
22
-		$this->_add_validation_strategy( new EE_Plaintext_Validation_Strategy() );
22
+		$this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy());
23 23
 		parent::__construct($options);
24 24
 	}
25 25
 }
Please login to merge, or discard this patch.
strategies/display/EE_Submit_Input_Display_Strategy.strategy.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
 	 * @return string of html to display the input
16 16
 	 */
17 17
 	public function display(){
18
-	    $button_text = $this->_input->html_label_text();
19
-        $button_text = ! empty($button_text)
20
-            ? $button_text
21
-            : $this->_input->raw_value_in_form();
18
+		$button_text = $this->_input->html_label_text();
19
+		$button_text = ! empty($button_text)
20
+			? $button_text
21
+			: $this->_input->raw_value_in_form();
22 22
 		$html = '<button type="submit" ';
23 23
 		$html .= 'name="' . $this->_input->html_name() . '" ';
24 24
 		$html .= 'id="' . $this->_input->html_id() . '-submit" ';
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
 		$html .= 'style="' . $this->_input->html_style() . '" ';
27 27
 		$html .= $this->_input->other_html_attributes();
28 28
 		$html .= '>';
29
-        $html .= $button_text;
30
-        $html .= '</button>';
31
-        return $html;
29
+		$html .= $button_text;
30
+		$html .= '</button>';
31
+		return $html;
32 32
 	}
33 33
 
34 34
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,21 +9,21 @@
 block discarded – undo
9 9
  * @package       Event Espresso
10 10
  * @author        Mike Nelson
11 11
  */
12
-class EE_Submit_Input_Display_Strategy extends EE_Display_Strategy_Base{
12
+class EE_Submit_Input_Display_Strategy extends EE_Display_Strategy_Base {
13 13
 	/**
14 14
 	 *
15 15
 	 * @return string of html to display the input
16 16
 	 */
17
-	public function display(){
17
+	public function display() {
18 18
 	    $button_text = $this->_input->html_label_text();
19 19
         $button_text = ! empty($button_text)
20 20
             ? $button_text
21 21
             : $this->_input->raw_value_in_form();
22 22
 		$html = '<button type="submit" ';
23
-		$html .= 'name="' . $this->_input->html_name() . '" ';
24
-		$html .= 'id="' . $this->_input->html_id() . '-submit" ';
25
-		$html .= 'class="' . $this->_input->html_class() . ' ' . $this->_input->button_css_attributes() . '" ';
26
-		$html .= 'style="' . $this->_input->html_style() . '" ';
23
+		$html .= 'name="'.$this->_input->html_name().'" ';
24
+		$html .= 'id="'.$this->_input->html_id().'-submit" ';
25
+		$html .= 'class="'.$this->_input->html_class().' '.$this->_input->button_css_attributes().'" ';
26
+		$html .= 'style="'.$this->_input->html_style().'" ';
27 27
 		$html .= $this->_input->other_html_attributes();
28 28
 		$html .= '>';
29 29
         $html .= $button_text;
Please login to merge, or discard this patch.