Completed
Pull Request — master (#1010)
by
unknown
11:03 queued 01:09
created
strategies/display/EE_File_Input_Display_Strategy.strategy.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
  */
11 11
 class EE_File_Input_Display_Strategy extends EE_Text_Input_Display_Strategy
12 12
 {
13
-    /**
14
-     * Override's parent to just set the type. May someday support other arguments.
15
-     */
16
-    public function __construct()
17
-    {
18
-        parent::__construct('file');
19
-    }
13
+	/**
14
+	 * Override's parent to just set the type. May someday support other arguments.
15
+	 */
16
+	public function __construct()
17
+	{
18
+		parent::__construct('file');
19
+	}
20 20
 }
Please login to merge, or discard this patch.
strategies/display/EE_Text_Input_Display_Strategy.strategy.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -13,58 +13,58 @@
 block discarded – undo
13 13
  */
14 14
 class EE_Text_Input_Display_Strategy extends EE_Display_Strategy_Base
15 15
 {
16
-    /**
17
-     * The html "type" attribute value. default is "text"
18
-     * @var string
19
-     */
20
-    protected $_type;
16
+	/**
17
+	 * The html "type" attribute value. default is "text"
18
+	 * @var string
19
+	 */
20
+	protected $_type;
21 21
 
22 22
 
23 23
 
24
-    /**
25
-     * @param string $type
26
-     */
27
-    public function __construct($type = 'text')
28
-        {
29
-        $this->_type = $type;
30
-        parent::__construct();
31
-    }
24
+	/**
25
+	 * @param string $type
26
+	 */
27
+	public function __construct($type = 'text')
28
+		{
29
+		$this->_type = $type;
30
+		parent::__construct();
31
+	}
32 32
 
33 33
 
34 34
 
35
-    /**
36
-     * Gets the html "type" attribute's value
37
-     * @return string
38
-     */
39
-    public function get_type()
40
-    {
41
-        if ($this->_type === 'email'
42
-            && ! apply_filters('FHEE__EE_Text_Input_Display_Strategy__use_html5_email', false)
43
-        ) {
44
-            return 'text';
45
-        }
46
-        return $this->_type;
47
-    }
35
+	/**
36
+	 * Gets the html "type" attribute's value
37
+	 * @return string
38
+	 */
39
+	public function get_type()
40
+	{
41
+		if ($this->_type === 'email'
42
+			&& ! apply_filters('FHEE__EE_Text_Input_Display_Strategy__use_html5_email', false)
43
+		) {
44
+			return 'text';
45
+		}
46
+		return $this->_type;
47
+	}
48 48
 
49 49
 
50 50
 
51
-    /**
52
-     *
53
-     * @return string of html to display the field
54
-     */
55
-    public function display()
56
-    {
57
-        $input = '<input type="'. $this->get_type() .'"';
58
-        $input .= ' name="' . $this->_input->html_name() . '"';
59
-        $input .= ' id="' . $this->_input->html_id() . '"';
60
-        $class = $this->_input->required() ? $this->_input->required_css_class() . ' ' . $this->_input->html_class() : $this->_input->html_class();
61
-        $input .= ' class="' . $class . '"';
62
-        // add html5 required
63
-        $input .= $this->_input->required() ? ' required' : '';
64
-        $input .= ' value="' . $this->_input->raw_value_in_form() . '"';
65
-        $input .= ' style="' . $this->_input->html_style() . '"';
66
-        $input .= $this->_input->other_html_attributes();
67
-        $input .= '/>';
68
-        return $input;
69
-    }
51
+	/**
52
+	 *
53
+	 * @return string of html to display the field
54
+	 */
55
+	public function display()
56
+	{
57
+		$input = '<input type="'. $this->get_type() .'"';
58
+		$input .= ' name="' . $this->_input->html_name() . '"';
59
+		$input .= ' id="' . $this->_input->html_id() . '"';
60
+		$class = $this->_input->required() ? $this->_input->required_css_class() . ' ' . $this->_input->html_class() : $this->_input->html_class();
61
+		$input .= ' class="' . $class . '"';
62
+		// add html5 required
63
+		$input .= $this->_input->required() ? ' required' : '';
64
+		$input .= ' value="' . $this->_input->raw_value_in_form() . '"';
65
+		$input .= ' style="' . $this->_input->html_style() . '"';
66
+		$input .= $this->_input->other_html_attributes();
67
+		$input .= '/>';
68
+		return $input;
69
+	}
70 70
 }
Please login to merge, or discard this patch.