84 Commits

Author SHA1 Message Date
71c541773f PHPDoc fix 2018-01-23 13:17:25 +02:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
1453eeaa4a Added example to validateValue PHPDoc [skip ci] (#15193) 2017-11-24 13:56:58 +07:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
8ae2223c6a Fixes #14370: Fixed creating built-in validator in model with same function name 2017-07-23 17:17:20 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
cb09e1e463 calling getAttributeNames() only once
close #14389
2017-07-05 12:20:25 +02:00
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
be658f82bf release version 2.0.12 2017-06-05 16:33:41 +02:00
4a17032717 Fix validators documentation 2017-04-27 21:50:51 +03:00
3598f8180c Fixes #13087: Fixed getting active validators for safe attribute 2017-04-26 02:29:10 +03:00
Sam
06967f9018 Fixes #13254: Core validators no longer require Yii::$app to be set 2017-03-14 15:37:54 +03:00
3536c7c4f9 Additional fixes for #13087 2017-02-22 23:15:40 +03:00
2de18cf9a5 Fixes #13087: Fixed getting active validators for safe attribute 2017-02-22 17:06:19 +03:00
f5beaf3edf Make validator getClientOptions public
This allows implementing custom client-side validation
without extending every validator.

Fixes #11163
close #13145
2016-12-08 01:30:36 +01:00
76e253e140 yii\validators\Validator - added separate methods for client-side validation options
Closes #11163
2016-12-05 22:33:49 +02:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
1414b18835 Add short validator names time and datetime.
These map to `DateValidator` with `$type` set to
TYPE_TIME and TYPE_DATETIME.

close #12198
2016-10-13 12:30:54 +02:00
b42b8d6458 Updated PHPDoc for Validator::createValidator(). Closes #12564 2016-09-19 11:47:56 +03:00
494842636e 📖 Fixed client-side and server-side grammar in all files 2016-09-08 10:16:02 +03:00
5307d50852 Typos yii\validators\Validator::$whenClient [skip ci] 2016-08-30 10:23:11 +03:00
b30b5a99ea Fixes #11672: Fixed yii\validators\NumberValidator erroring when value is an object without __toString() method 2016-06-23 23:32:25 +03:00
662f86acb5 fix missing closing bracket in documentation (#11716) 2016-06-07 13:20:56 +02:00
f312163258 Fixes #11220: NumberValidator now handles objects properly 2016-04-06 00:53:10 +03:00
5db2afbaeb Code style fixed, PHPDoc updated 2016-03-22 23:31:23 +02:00
67b5f4ea19 fix for unsafe validator
Closes #8145 #8139 #11153
2016-03-22 23:31:16 +02:00
a0e614eb20 yii\validators\EachValidator injects specific attribute value in error message parameters
Closes #11139
2016-03-20 16:34:42 +02:00
5242765257 Fixes #3506: Added \yii\validators\IpValidator to perform validation of IP addresses and subnets 2015-10-22 14:21:31 +03:00
4c0bcaf12e Fixes #8822, fixes #9298. Clientside validator docs enhancements. 2015-09-05 02:15:08 +03:00
4f6f041e8b The stricter the better 2015-07-08 16:14:16 +03:00
4b50ace287 Update Validator.php 2015-07-07 18:39:42 -03:00
4672a8c83f Doc comments at yii\validators\Validator::isEmpty() fixed 2015-04-22 16:32:37 +03:00
e29fcc8ea2 Docs about yii\validators\EachValidator adjusted 2015-04-09 18:14:35 +03:00
35eb833a2b Added yii\validators\EachValidator 2015-04-09 16:48:15 +03:00
f66b8ba571 Fixes #6589: updated code style guide to mention else after return, adjusted code involved in the issue 2014-12-27 00:15:20 +03:00
7c48837a67 Fixes #5836: doc fixes. 2014-10-31 14:28:51 -04:00
5794534a26 Unused InvalidConfigException 2014-08-24 23:47:36 +04:00
2ef7eda249 Fixes #4611. 2014-08-06 08:08:07 -04:00
24d0314928 Update docs for clientValidateAttribute() 2014-08-05 16:56:00 +02:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
9f08d18f96 Fixes #3020 [skip ci] 2014-06-26 22:50:57 -04:00
01e5ffdceb guide WIP [skip ci] 2014-06-05 22:40:37 -04:00
46add80ac2 Add missing Exception when wrong validator is used 2014-05-09 16:28:11 +02:00
b65b0ce591 better exception message for non existing validator 2014-05-07 13:09:39 +02:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
d1363d9684 Added Validator::whenClient. 2014-03-22 21:21:33 -04:00
7ea52fb262 Implemented conditional validators (see #2406) 2014-03-19 11:43:31 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00