Completed
Branch dependabot/npm_and_yarn/hosted... (af6e61)
by
unknown
19:17 queued 10:20
created
core/libraries/form_sections/inputs/EE_Year_Input.input.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 class EE_Year_Input extends EE_Select_Input
13 13
 {
14 14
 
15
-    public function __construct($input_settings = array(), $four_digit_year = true, $years_behind = 100, $years_ahead = 0)
16
-    {
17
-        if ($four_digit_year) {
18
-            $current_year_int = intval(date('Y'));
19
-        } else {
20
-            $current_year_int = intval(date('y'));
21
-        }
22
-        $answer_options = array();
23
-        for ($start = $current_year_int - $years_behind; $start <= ($current_year_int + $years_ahead); $start++) {
24
-            $answer_options[ $start ] = $start;
25
-        }
26
-        parent::__construct($answer_options, $input_settings);
27
-    }
15
+	public function __construct($input_settings = array(), $four_digit_year = true, $years_behind = 100, $years_ahead = 0)
16
+	{
17
+		if ($four_digit_year) {
18
+			$current_year_int = intval(date('Y'));
19
+		} else {
20
+			$current_year_int = intval(date('y'));
21
+		}
22
+		$answer_options = array();
23
+		for ($start = $current_year_int - $years_behind; $start <= ($current_year_int + $years_ahead); $start++) {
24
+			$answer_options[ $start ] = $start;
25
+		}
26
+		parent::__construct($answer_options, $input_settings);
27
+	}
28 28
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         }
22 22
         $answer_options = array();
23 23
         for ($start = $current_year_int - $years_behind; $start <= ($current_year_int + $years_ahead); $start++) {
24
-            $answer_options[ $start ] = $start;
24
+            $answer_options[$start] = $start;
25 25
         }
26 26
         parent::__construct($answer_options, $input_settings);
27 27
     }
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Currency_Input.input.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -11,23 +11,23 @@
 block discarded – undo
11 11
 class EE_Currency_Input extends EE_Select_Input
12 12
 {
13 13
 
14
-    /**
15
-     *
16
-     * @param array $only_specific_currency_codes numerically-indexed array of allowed currency codes. By default, all are allowed
17
-     * @param array $input_settings
18
-     */
19
-    public function __construct($only_specific_currency_codes = array(), $input_settings = array())
20
-    {
21
-        $query_params = array('order_by'=>array('CNT_name'=>'asc'));
22
-        if ($only_specific_currency_codes) {
23
-            $query_params[0]['CNT_cur_code'] = array('IN',$only_specific_currency_codes);
24
-        }
25
-        $all_countries = EEM_Country::instance()->get_all($query_params);
26
-        $country_options = array();
27
-        foreach ($all_countries as $country) {
28
-            /* @var $country EE_Country */
29
-            $country_options[ $country->currency_code() ] = $country->name().": ".$country->currency_name_single() ." (".$country->currency_sign().")";
30
-        }
31
-        parent::__construct($country_options, 'int', $input_settings);
32
-    }
14
+	/**
15
+	 *
16
+	 * @param array $only_specific_currency_codes numerically-indexed array of allowed currency codes. By default, all are allowed
17
+	 * @param array $input_settings
18
+	 */
19
+	public function __construct($only_specific_currency_codes = array(), $input_settings = array())
20
+	{
21
+		$query_params = array('order_by'=>array('CNT_name'=>'asc'));
22
+		if ($only_specific_currency_codes) {
23
+			$query_params[0]['CNT_cur_code'] = array('IN',$only_specific_currency_codes);
24
+		}
25
+		$all_countries = EEM_Country::instance()->get_all($query_params);
26
+		$country_options = array();
27
+		foreach ($all_countries as $country) {
28
+			/* @var $country EE_Country */
29
+			$country_options[ $country->currency_code() ] = $country->name().": ".$country->currency_name_single() ." (".$country->currency_sign().")";
30
+		}
31
+		parent::__construct($country_options, 'int', $input_settings);
32
+	}
33 33
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
     {
21 21
         $query_params = array('order_by'=>array('CNT_name'=>'asc'));
22 22
         if ($only_specific_currency_codes) {
23
-            $query_params[0]['CNT_cur_code'] = array('IN',$only_specific_currency_codes);
23
+            $query_params[0]['CNT_cur_code'] = array('IN', $only_specific_currency_codes);
24 24
         }
25 25
         $all_countries = EEM_Country::instance()->get_all($query_params);
26 26
         $country_options = array();
27 27
         foreach ($all_countries as $country) {
28 28
             /* @var $country EE_Country */
29
-            $country_options[ $country->currency_code() ] = $country->name().": ".$country->currency_name_single() ." (".$country->currency_sign().")";
29
+            $country_options[$country->currency_code()] = $country->name().": ".$country->currency_name_single()." (".$country->currency_sign().")";
30 30
         }
31 31
         parent::__construct($country_options, 'int', $input_settings);
32 32
     }
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Password_Input.input.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
 {
11 11
 
12 12
 
13
-    /**
14
-     * @param array $input_settings
15
-     */
16
-    public function __construct($input_settings = array())
17
-    {
18
-        $this->_set_display_strategy(new EE_Text_Input_Display_Strategy('password'));
19
-        $this->_set_normalization_strategy(new EE_Text_Normalization());
20
-        parent::__construct($input_settings);
21
-        $this->set_html_class($this->html_class() . 'password');
22
-    }
13
+	/**
14
+	 * @param array $input_settings
15
+	 */
16
+	public function __construct($input_settings = array())
17
+	{
18
+		$this->_set_display_strategy(new EE_Text_Input_Display_Strategy('password'));
19
+		$this->_set_normalization_strategy(new EE_Text_Normalization());
20
+		parent::__construct($input_settings);
21
+		$this->set_html_class($this->html_class() . 'password');
22
+	}
23 23
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
         $this->_set_display_strategy(new EE_Text_Input_Display_Strategy('password'));
19 19
         $this->_set_normalization_strategy(new EE_Text_Normalization());
20 20
         parent::__construct($input_settings);
21
-        $this->set_html_class($this->html_class() . 'password');
21
+        $this->set_html_class($this->html_class().'password');
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Fixed_Hidden_Input.input.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,15 +10,15 @@
 block discarded – undo
10 10
 {
11 11
 
12 12
 
13
-    /**
14
-     * Fixed Inputs are inputs that do NOT accept user input
15
-     * therefore they will ALWAYS return the default value that was set upon their creation
16
-     * and NO normalization or sanitization will occur because the $_REQUEST value is being ignored
17
-     *
18
-     * @param array $req_data like $_POST
19
-     * @return boolean whether or not there was an error
20
-     */
21
-    protected function _normalize($req_data)
22
-    {
23
-    }
13
+	/**
14
+	 * Fixed Inputs are inputs that do NOT accept user input
15
+	 * therefore they will ALWAYS return the default value that was set upon their creation
16
+	 * and NO normalization or sanitization will occur because the $_REQUEST value is being ignored
17
+	 *
18
+	 * @param array $req_data like $_POST
19
+	 * @return boolean whether or not there was an error
20
+	 */
21
+	protected function _normalize($req_data)
22
+	{
23
+	}
24 24
 }
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Credit_Card_Month_Input.input.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,21 +12,21 @@
 block discarded – undo
12 12
 class EE_Credit_Card_Month_Input extends EE_Month_Input
13 13
 {
14 14
 
15
-    /**
16
-     * @param bool  $leading_zero
17
-     * @param array $input_settings
18
-     * @param bool $january_is_month_1
19
-     */
20
-    public function __construct(
21
-        $leading_zero = false,
22
-        $input_settings = array(),
23
-        $january_is_month_1 = true
24
-    ) {
25
-        $this->set_sensitive_data_removal_strategy(new EE_All_Sensitive_Data_Removal());
26
-        parent::__construct(
27
-            $leading_zero,
28
-            $input_settings,
29
-            $january_is_month_1
30
-        );
31
-    }
15
+	/**
16
+	 * @param bool  $leading_zero
17
+	 * @param array $input_settings
18
+	 * @param bool $january_is_month_1
19
+	 */
20
+	public function __construct(
21
+		$leading_zero = false,
22
+		$input_settings = array(),
23
+		$january_is_month_1 = true
24
+	) {
25
+		$this->set_sensitive_data_removal_strategy(new EE_All_Sensitive_Data_Removal());
26
+		parent::__construct(
27
+			$leading_zero,
28
+			$input_settings,
29
+			$january_is_month_1
30
+		);
31
+	}
32 32
 }
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Text_Input.input.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -12,26 +12,26 @@
 block discarded – undo
12 12
 {
13 13
 
14 14
 
15
-    /**
16
-     * @param array $options
17
-     */
18
-    public function __construct($options = array())
19
-    {
20
-        $this->_set_display_strategy(new EE_Text_Input_Display_Strategy());
21
-        $this->_set_normalization_strategy(new EE_Text_Normalization());
22
-        parent::__construct($options);
23
-        // if the input hasn't specifically mentioned a more lenient validation strategy,
24
-        // apply plaintext validation strategy
25
-        if (! $this->has_validation_strategy(
26
-            array(
27
-                    'EE_Full_HTML_Validation_Strategy',
28
-                    'EE_Simple_HTML_Validation_Strategy'
29
-                )
30
-        )
31
-        ) {
32
-            // by default we use the plaintext validation. If you want something else,
33
-            // just remove it after the input is constructed :P using EE_Form_Input_Base::remove_validation_strategy()
34
-            $this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy());
35
-        }
36
-    }
15
+	/**
16
+	 * @param array $options
17
+	 */
18
+	public function __construct($options = array())
19
+	{
20
+		$this->_set_display_strategy(new EE_Text_Input_Display_Strategy());
21
+		$this->_set_normalization_strategy(new EE_Text_Normalization());
22
+		parent::__construct($options);
23
+		// if the input hasn't specifically mentioned a more lenient validation strategy,
24
+		// apply plaintext validation strategy
25
+		if (! $this->has_validation_strategy(
26
+			array(
27
+					'EE_Full_HTML_Validation_Strategy',
28
+					'EE_Simple_HTML_Validation_Strategy'
29
+				)
30
+		)
31
+		) {
32
+			// by default we use the plaintext validation. If you want something else,
33
+			// just remove it after the input is constructed :P using EE_Form_Input_Base::remove_validation_strategy()
34
+			$this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy());
35
+		}
36
+	}
37 37
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         parent::__construct($options);
23 23
         // if the input hasn't specifically mentioned a more lenient validation strategy,
24 24
         // apply plaintext validation strategy
25
-        if (! $this->has_validation_strategy(
25
+        if ( ! $this->has_validation_strategy(
26 26
             array(
27 27
                     'EE_Full_HTML_Validation_Strategy',
28 28
                     'EE_Simple_HTML_Validation_Strategy'
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Email_Input.input.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -9,21 +9,21 @@
 block discarded – undo
9 9
 class EE_Email_Input extends EE_Form_Input_Base
10 10
 {
11 11
 
12
-    /**
13
-     * @param array $input_settings
14
-     */
15
-    public function __construct($input_settings = array())
16
-    {
17
-        $this->_set_display_strategy(new EE_Text_Input_Display_Strategy('email'));
18
-        $this->_set_normalization_strategy(new EE_Text_Normalization());
19
-        $this->_add_validation_strategy(
20
-            new EE_Email_Validation_Strategy(
21
-                isset($input_settings['validation_error_message'])
22
-                    ? $input_settings['validation_error_message']
23
-                    : null
24
-            )
25
-        );
26
-        parent::__construct($input_settings);
27
-        $this->set_html_class($this->html_class() . ' email');
28
-    }
12
+	/**
13
+	 * @param array $input_settings
14
+	 */
15
+	public function __construct($input_settings = array())
16
+	{
17
+		$this->_set_display_strategy(new EE_Text_Input_Display_Strategy('email'));
18
+		$this->_set_normalization_strategy(new EE_Text_Normalization());
19
+		$this->_add_validation_strategy(
20
+			new EE_Email_Validation_Strategy(
21
+				isset($input_settings['validation_error_message'])
22
+					? $input_settings['validation_error_message']
23
+					: null
24
+			)
25
+		);
26
+		parent::__construct($input_settings);
27
+		$this->set_html_class($this->html_class() . ' email');
28
+	}
29 29
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
             )
25 25
         );
26 26
         parent::__construct($input_settings);
27
-        $this->set_html_class($this->html_class() . ' email');
27
+        $this->set_html_class($this->html_class().' email');
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Text_Area_Input.input.php 2 patches
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -12,67 +12,67 @@
 block discarded – undo
12 12
 {
13 13
 
14 14
 
15
-    protected $_rows = 2;
16
-    protected $_cols = 20;
15
+	protected $_rows = 2;
16
+	protected $_cols = 20;
17 17
 
18
-    /**
19
-     * sets the rows property on this input
20
-     * @param int $rows
21
-     */
22
-    public function set_rows($rows)
23
-    {
24
-        $this->_rows = $rows;
25
-    }
26
-    /**
27
-     * sets the cols html property on this input
28
-     * @param int $cols
29
-     */
30
-    public function set_cols($cols)
31
-    {
32
-        $this->_cols = $cols;
33
-    }
34
-    /**
35
-     *
36
-     * @return int
37
-     */
38
-    public function get_rows()
39
-    {
40
-        return $this->_rows;
41
-    }
42
-    /**
43
-     *
44
-     * @return int
45
-     */
46
-    public function get_cols()
47
-    {
48
-        return $this->_cols;
49
-    }
18
+	/**
19
+	 * sets the rows property on this input
20
+	 * @param int $rows
21
+	 */
22
+	public function set_rows($rows)
23
+	{
24
+		$this->_rows = $rows;
25
+	}
26
+	/**
27
+	 * sets the cols html property on this input
28
+	 * @param int $cols
29
+	 */
30
+	public function set_cols($cols)
31
+	{
32
+		$this->_cols = $cols;
33
+	}
34
+	/**
35
+	 *
36
+	 * @return int
37
+	 */
38
+	public function get_rows()
39
+	{
40
+		return $this->_rows;
41
+	}
42
+	/**
43
+	 *
44
+	 * @return int
45
+	 */
46
+	public function get_cols()
47
+	{
48
+		return $this->_cols;
49
+	}
50 50
 
51 51
 
52 52
 
53
-    /**
54
-     * @param array $options_array
55
-     */
56
-    public function __construct($options_array = array())
57
-    {
58
-        $this->_set_display_strategy(new EE_Text_Area_Display_Strategy());
59
-        $this->_set_normalization_strategy(new EE_Text_Normalization());
53
+	/**
54
+	 * @param array $options_array
55
+	 */
56
+	public function __construct($options_array = array())
57
+	{
58
+		$this->_set_display_strategy(new EE_Text_Area_Display_Strategy());
59
+		$this->_set_normalization_strategy(new EE_Text_Normalization());
60 60
         
61 61
         
62
-        parent::__construct($options_array);
62
+		parent::__construct($options_array);
63 63
         
64
-        // if the input hasn't specifically mentioned a more lenient validation strategy,
65
-        // apply plaintext validation strategy
66
-        if (! $this->has_validation_strategy(
67
-            array(
68
-                    'EE_Full_HTML_Validation_Strategy',
69
-                    'EE_Simple_HTML_Validation_Strategy'
70
-                )
71
-        )
72
-        ) {
73
-            // by default we use the plaintext validation. If you want something else,
74
-            // just remove it after the input is constructed :P using EE_Form_Input_Base::remove_validation_strategy()
75
-            $this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy());
76
-        }
77
-    }
64
+		// if the input hasn't specifically mentioned a more lenient validation strategy,
65
+		// apply plaintext validation strategy
66
+		if (! $this->has_validation_strategy(
67
+			array(
68
+					'EE_Full_HTML_Validation_Strategy',
69
+					'EE_Simple_HTML_Validation_Strategy'
70
+				)
71
+		)
72
+		) {
73
+			// by default we use the plaintext validation. If you want something else,
74
+			// just remove it after the input is constructed :P using EE_Form_Input_Base::remove_validation_strategy()
75
+			$this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy());
76
+		}
77
+	}
78 78
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         
64 64
         // if the input hasn't specifically mentioned a more lenient validation strategy,
65 65
         // apply plaintext validation strategy
66
-        if (! $this->has_validation_strategy(
66
+        if ( ! $this->has_validation_strategy(
67 67
             array(
68 68
                     'EE_Full_HTML_Validation_Strategy',
69 69
                     'EE_Simple_HTML_Validation_Strategy'
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Select_Input.input.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -13,20 +13,20 @@
 block discarded – undo
13 13
 class EE_Select_Input extends EE_Form_Input_With_Options_Base
14 14
 {
15 15
 
16
-    /**
17
-     * @param array $answer_options
18
-     * @param array $input_settings
19
-     */
20
-    public function __construct($answer_options, $input_settings = array())
21
-    {
22
-        $this->_set_display_strategy(new EE_Select_Display_Strategy($answer_options));
23
-        $this->_add_validation_strategy(
24
-            new EE_Enum_Validation_Strategy(
25
-                isset($input_settings['validation_error_message'])
26
-                    ? $input_settings['validation_error_message']
27
-                    : null
28
-            )
29
-        );
30
-        parent::__construct($answer_options, $input_settings);
31
-    }
16
+	/**
17
+	 * @param array $answer_options
18
+	 * @param array $input_settings
19
+	 */
20
+	public function __construct($answer_options, $input_settings = array())
21
+	{
22
+		$this->_set_display_strategy(new EE_Select_Display_Strategy($answer_options));
23
+		$this->_add_validation_strategy(
24
+			new EE_Enum_Validation_Strategy(
25
+				isset($input_settings['validation_error_message'])
26
+					? $input_settings['validation_error_message']
27
+					: null
28
+			)
29
+		);
30
+		parent::__construct($answer_options, $input_settings);
31
+	}
32 32
 }
Please login to merge, or discard this patch.