44 Commits

Author SHA1 Message Date
4e940a2772 Fix travis builds for 'nightly' php (#15992)
1) Fixed unexpected exceptions (PHP nightly): https://travis-ci.org/yiisoft/yii2/jobs/358866164#L789
2) Fixed session issues (PHP hhvm): https://travis-ci.org/yiisoft/yii2/jobs/358866162#L841
3) Excluded unicode characters check from 'nightly' PHP version
4) Also deprecated InvalidParamException replaced with InvalidArgumentException
2018-03-27 19:22:15 +03:00
b3f54d1065 Simplified code, enhanced PHPDocs 2018-03-10 10:19:07 +02:00
52263077c0 Bug #15858: Fixed array undefined offset error calling Html::errorSummary with same error messages from different model attributes. (FabrizioCaldarelli) 2018-03-08 23:24:41 +01:00
1c473325ac Fixes #15742: Updated setActivePlaceholder to be consistent with activeLabel 2018-02-23 12:33:41 +03:00
d39d3ed0a6 Fixes #15644: Avoid wrong default selection on a dropdown, checkbox list, and radio list, when a option has a key equals to zero 2018-02-15 18:23:12 +03:00
4f7b410230 Fixes #9771: Assign hidden input with its own set of HTML options via $hiddenOptions in activeFileInput $options 2018-01-24 17:02:03 +03:00
78d76c3f2c Enh #15226: Auto generate placeholder from fields 2017-12-24 08:07:18 +05:00
9e0f19ace7 Renamed Html::error() option errorMethod to errorSource 2017-12-22 11:02:08 +02:00
f9cdcf438d Fixes #3087: Added yii\helpers\BaseHtml::error() "errorMethod" option to be able to customize errors display 2017-12-19 23:16:00 +03:00
fb23b0d0ea Code style fixes 2017-11-01 02:43:02 +03:00
64d8af61a6 Fixes for PHP 7.2 compatibility (#14959) 2017-10-19 01:54:40 +03: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
0c0942d6e2 Enable phpdoc_add_missing_param_annotation rule in php-cs-fixer config. (#14681) [skip ci] 2017-08-21 01:57:23 +03:00
12eb936083 Enable heredoc_to_nowdoc rule in php-cs-fixer (#14419) 2017-07-10 13:18:52 +03: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
e2218cbbae Add test coverage of yii\helpers\Html (#14220) 2017-05-28 18:03:36 +05:00
dee88787fc compatibility with PHPUnit 6.x added 2017-04-13 14:49:43 +03:00
Sam
b238afacee Fixes #4408: Add support for unicode word characters and + character in attribute names 2017-03-15 16:19:06 +03:00
3f8e8a89eb Used more specific unit test assertions in framework tests 2017-03-14 09:45:31 +03:00
f47b6c7683 Fixes #7946 Fixed a bug when the form attribute was not propagated to the hidden input of the checkbox 2017-02-27 13:47:37 +03:00
148007ffd6 Refactor HTML helper attribute order (#13665) 2017-02-26 20:54:44 +03:00
a719293ab0 Fixes #13649: Fixes issue where ['uncheck' => false] and ['label' => false] options for ActiveRadio and ActiveCheckbox were ignored 2017-02-25 14:41:02 +03:00
e8f8ba2129 Remove excessive use statement (#13604) 2017-02-18 21:56:56 +03:00
a26d28f8e3 Fixes #13576: Added support of srcset to yii\helpers\Html::img() 2017-02-18 02:23:20 +03:00
63e650952b Updated tests for HtmlHelper::textarea() 2016-11-29 00:06:20 +02:00
ea251e24ba Closes #7420: Attributes for prompt generated with renderSelectOptions of \yii\helpers\Html helper 2016-11-17 16:43:19 +02:00
c66b845f48 Revert "Fixed #11973: yii\helpers\BaseHtml::getAttributeValue() fixed to work with items[] notation correctly"
This reverts commit 3fcc26996b9395d2892839b5bc8071c99a6cab07.
2016-09-11 22:13:59 +03:00
7e16a667ee Added unit-test for BaseHtml::errorSummary() 2016-09-06 22:26:27 +03:00
3fcc26996b Fixed #11973: yii\helpers\BaseHtml::getAttributeValue() fixed to work with items[] notation correctly 2016-08-05 15:08:51 +03:00
16e4cab8f1 Fixes #11865: Fixed setting selected for dropdown list using options 2016-07-03 01:43:50 +03:00
16a6af5fa8 Add helper function for checking if an object is an array-like object.
Added support for traversable objects in `BaseHtml` and `ArrayHelper`
2016-02-24 23:49:05 +02:00
295bb3e173 WIP #10764: adjusted Html::beginTag and Html::endTag methods to be consistent 2016-02-09 18:13:32 +01:00
cd7039e97c WIP #10764 2016-02-07 16:39:41 +01:00
8897723c2a added test to verify #10486 2016-01-01 17:33:53 +01:00
469206d8d0 HtmlTest - added tests to checkboxList and listBox 2015-12-23 23:38:47 +02:00
85c6a903dc Enh #10390: Added ability to disable outer tag for \yii\helpers\BaseHtml::radiolist(), ::checkboxList 2015-12-21 18:04:49 +02:00
cca500083e Implement #10078: Allow disabling csrf hidden input generation on a form 2015-11-18 10:22:31 +01:00
0874ffac38 Fixed yii\helpers\Html::activeTextarea() does not allow value overriding via options 2015-05-29 12:31:52 +03:00
d4d972b535 Merge branch '6043-html-arrays'
Conflicts:
	framework/CHANGELOG.md
2015-05-27 11:56:58 +03:00
0f04af1af9 Added support to automatically set the maxlength attribute for Html::activeTextArea() and Html::activePassword() 2015-05-20 12:05:53 +03:00
0a7191dbfe Preserving of the named key classes at yii\helpers\Html::addCssClass() provided 2015-05-18 12:48:51 +03:00
41f6a6e558 Specification for 'class' and 'style' in array format added to yii\helpers\Html 2015-05-18 12:14:57 +03:00
3a39f8ab72 yii\helpers\Html allows correct rendering of conditional comments containing !IE 2015-05-14 16:22:26 +03:00
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00