Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
0c0942d6e2
Enable `phpdoc_add_missing_param_annotation` rule in php-cs-fixer config. ( #14681 ) [skip ci]
7 years ago
Robert Korulczyk
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.
7 years ago
Paul Klimov
40e5702b6b
Fixes #5108 `DateValidator` resets `$timestampAttribute` value on empty attribute ( #14242 )
...
* `yii\validators\DateValidator` now resets `$timestampAttribute` value on empty validated attribute value
* array-value test at `DateValidatorTest` restored
7 years ago
Robert Korulczyk
31e321b9b2
Remove unused imports. ( #14096 )
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Carsten Brandt
00d506c398
completed implementation for #7177
...
added TYPE_TIME and default values for format to be chosen from
corresponding formatter variable
fixes #7177
close #10778
9 years ago
Robbert Jan
bb0ef88860
Enhancement for DateValidator ( #7177 , #10165 )
...
Added parameter to define if checking for 'date' or 'dateTime'
and updated parseDateValueIntl($value, $format) to facilitate
this validation based on defined type.
Added unit tests to for validating dateTime values when using short format validation.
close #10778
9 years ago
Klimov Paul
779b1e90ce
`yii\validators\DateValidator` skip validation for `timestampAttribute`, if it is already in correct format
9 years ago
Carsten Brandt
9cc0e5d89d
even more 32bit friendly test
...
issue #8584
9 years ago
Carsten Brandt
8e44674e7b
fixed another test to work on 32bit
...
issue #8584
9 years ago
Carsten Brandt
ab9326dd26
fixed test for 32bit systems
...
fixes #8584
9 years ago
Carsten Brandt
8eaacd7320
added comment to datevalidator test
...
issue #8584
9 years ago
Nikola Kovacs
3f24954659
Added min/max option to DateValidator.
...
Refs #7514
close #8115
10 years ago
Carsten Brandt
1c41c2bd58
added DateValidator::$timestampAttributeTimeZone
...
this also makes DateValidator completly functional for validating values that include time.
issue #5053
10 years ago
Carsten Brandt
d60445c066
Add DateValidator::$timestampAttributeFormat
...
includes refactoring of the formatting method to fix some major timezone issues.
fixes #5053
close #6820
10 years ago
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago
Carsten Brandt
ba6bce4e2d
fixed DateValidator to work with multibyte strings
...
fixes #6835
10 years ago
Yoyon Cahyono
8b5e16ed56
compare position at which date value parsing ended with its string length to ensure validation when using php intl extension to parse date value
...
- fixes #6553
- Add additional testValidateAttributeICUFormat() test case using "2012-12-12foo" for "yyyy-MM-dd" date format
- close #6835
10 years ago
Carsten Brandt
b8c12307f1
added test for #5962
10 years ago
Carsten Brandt
45e472ccb0
added unit tests for #5249
10 years ago
Carsten Brandt
3ff548a442
Refactored DateValidator to support ICU format
10 years ago
Carsten Brandt
83a63f2346
fixed wrong client validation issue in numbervalidator
...
fixes #3118
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
AlexGx
32d0768919
style fixes with phpcs:yii2
11 years ago
Qiang Xue
cb4a8c764c
Refactored validators.
11 years ago
Alexander Makarov
c127171efb
Fixes #1003 : DateValidator returned true for invalid dates
11 years ago
Carsten Brandt
3631890cba
fixed failing validator tests
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Suralc
0c45765e7d
Added tests for uncovered lines.
11 years ago
Suralc
a81480d309
Improved ValidatorTest organization.
11 years ago
Suralc
777ff792c4
DateValidatorTest
11 years ago