Skip to content

Commit

Permalink
Fixes to Form Filter classes from static code analysis (#40241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar authored Mar 30, 2023
1 parent 9599a0c commit 229e27d
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions libraries/src/Form/Filter/IntarrayFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class IntarrayFilter implements FormFilterInterface
* @param string $group The field name group control value. This acts as an array container for the field.
* For example if the field has name="foo" and the group value is set to "bar" then the
* full field name would end up being "bar[foo]".
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param Form $form The form object for which the field is being tested.
* @param ?Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param ?Form $form The form object for which the field is being tested.
*
* @return mixed The filtered value.
*
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Form/Filter/RawFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class RawFilter implements FormFilterInterface
* @param string $group The field name group control value. This acts as an array container for the field.
* For example if the field has name="foo" and the group value is set to "bar" then the
* full field name would end up being "bar[foo]".
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param Form $form The form object for which the field is being tested.
* @param ?Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param ?Form $form The form object for which the field is being tested.
*
* @return mixed The filtered value.
*
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Form/Filter/RulesFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class RulesFilter implements FormFilterInterface
* @param string $group The field name group control value. This acts as an array container for the field.
* For example if the field has name="foo" and the group value is set to "bar" then the
* full field name would end up being "bar[foo]".
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param Form $form The form object for which the field is being tested.
* @param ?Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param ?Form $form The form object for which the field is being tested.
*
* @return mixed The filtered value.
*
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Form/Filter/SafehtmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class SafehtmlFilter implements FormFilterInterface
* @param string $group The field name group control value. This acts as an array container for the field.
* For example if the field has name="foo" and the group value is set to "bar" then the
* full field name would end up being "bar[foo]".
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param Form $form The form object for which the field is being tested.
* @param ?Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param ?Form $form The form object for which the field is being tested.
*
* @return mixed The filtered value.
*
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Form/Filter/TelFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class TelFilter implements FormFilterInterface
* @param string $group The field name group control value. This acts as an array container for the field.
* For example if the field has name="foo" and the group value is set to "bar" then the
* full field name would end up being "bar[foo]".
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param Form $form The form object for which the field is being tested.
* @param ?Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param ?Form $form The form object for which the field is being tested.
*
* @return mixed The filtered value.
*
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Form/Filter/UnsetFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class UnsetFilter implements FormFilterInterface
* @param string $group The field name group control value. This acts as an array container for the field.
* For example if the field has name="foo" and the group value is set to "bar" then the
* full field name would end up being "bar[foo]".
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param Form $form The form object for which the field is being tested.
* @param ?Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param ?Form $form The form object for which the field is being tested.
*
* @return mixed The filtered value.
*
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Form/Filter/UrlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class UrlFilter implements FormFilterInterface
* @param string $group The field name group control value. This acts as an array container for the field.
* For example if the field has name="foo" and the group value is set to "bar" then the
* full field name would end up being "bar[foo]".
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param Form $form The form object for which the field is being tested.
* @param ?Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param ?Form $form The form object for which the field is being tested.
*
* @return mixed The filtered value.
*
Expand Down

0 comments on commit 229e27d

Please sign in to comment.