597 Commits

Author SHA1 Message Date
1a74b3d4f8 [minor] SCA with Php Inspections (EA Ultimate) (#15871)
* Php Inspections (EA Ultimate): use type casting where applicable

* Php Inspections (EA Ultimate): use constants where applicable

* Php Inspections (EA Ultimate): CS

* Php Inspections (EA Ultimate): address some of one-time used variables

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): revert a constant usage

* Php Inspections (EA Ultimate): revert sequential assignments

* Php Inspections (EA Ultimate): build is green again

* Php Inspections (EA Ultimate): revert array_merge tweaks

* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak

* Update description [skip ci]

* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
8be4563341 Merge pull request #15859 from FabrizioCaldarelli/15858-broken-basehtml-collecterrors-with-showallerrors-true
15858 broken basehtml collecterrors with showallerrors true
2018-03-10 18:44:10 +02: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
f10cb6aeee SCA with Php Inspections (EA Ultimate) 2018-02-27 19:13:22 +01:00
f9b03dfd42 SCA with Php Inspections (EA Ultimate) 2018-02-27 19:06:27 +01:00
1c473325ac Fixes #15742: Updated setActivePlaceholder to be consistent with activeLabel 2018-02-23 12:33:41 +03:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
9f7d09cfae Removed unneeded quotes 2018-02-19 00:52:44 +03:00
d9fdf0f235 Added missing escaping to Windows fallback of FileHelper::unlink() 2018-02-19 00:50:51 +03:00
7febeb8ad4 Renamed yii\helpers\FileHelper findDirectory() method to findDirectories() to be consistend with findFiles() 2018-02-16 22:41:28 +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
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
16e63f6de2 Fixes #13465: Added yii\helpers\FileHelper::findDirectory() method 2018-02-03 23:00:59 +07:00
06ebd3faa7 Fixes #13034: Fixed normalizePath for windows network shares that start with two backslashes 2018-01-30 17:57:13 +07:00
9aac304220 Add some @see references near HTML class attribute handling [ci skip] (#15558) 2018-01-25 15:08:40 +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
38f66e9c6d IsIndexed() @return wrong description fixed (#15538) [skip ci] 2018-01-22 15:44:54 +03:00
8b0702d386 Fixed #14840: improved Console::select() phpdoc [skip ci] 2018-01-21 22:41:22 +03:00
b44bbd6a13 Fix code issues (#15435)
* Fix some scrunitizer warnings

* Remove obsolete require

* Fix codestyle
2018-01-01 16:21:37 +03:00
c4e1ea28f4 Updated PHPDocs, reordered CHANGELOG 2017-12-24 15:50:02 +02:00
03ab53e1fb Rename method 2017-12-24 09:52:12 +05:00
e99c574a7c Enh #15226: Auto generate placeholder from fields 2017-12-24 08:38:53 +05: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
1b8da6d951 Add StringHelper::matchWildcard() (#15389)
`StringHelper::matchWildcard()` added
2017-12-20 16:16:25 +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
6ab93bd4ef a => A (fixes #15380) 2017-12-18 05:45:05 -08:00
717d0e80d3 Fixes #15358: Refactored BaseConsole::updateProgress() 2017-12-18 10:43:03 +03:00
f11f818b18 Fixes #7988: Added \yii\helpers\Console::errorSummary() and \yii\helpers\Json::errorSummary() 2017-12-14 10:59:53 +03:00
efac23dde7 Fixes #15335: Added FileHelper::unlink() that works well under all OSes 2017-12-11 22:29:31 +03:00
1e00a050d7 Fixes #15322: Fixed PHP 7.2 compatibility of FileHelper::getExtensionsByMimeType() 2017-12-10 16:31:42 +03:00
d604d80823 Fixes #14043: Added yii\helpers\IpHelper 2017-12-10 01:15:39 +03:00
d2423cd6ca Fixes #15301: Fixed ArrayHelper::filter() to work properly with 0 in values 2017-12-08 16:34:29 +03:00
01ff1f6593 Fixes #15142: Fixed array params replacing in yii\helpers\BaseUrl::current() 2017-12-02 08:26:55 +03:00
2d672b6722 release version 2.0.13 2017-11-03 01:09:29 +03:00
93bbf5b39d Fixes #15015: Added StringHelper::floatToString() to savely cast float values independent of the locale, also fixes some places in the framework that use it now 2017-10-27 11:41:45 +03:00
c78201899b Fixes #13720: Improve yii\helpers\FormatConverter::convertDatePhpToIcu() to handle escaped chars correctly 2017-10-08 18:07:26 +02:00
59b635c2a6 Fixes #14921: Fixed bug with replacing numeric keys in yii\helpers\Url::current() 2017-10-07 18:47:31 +02:00
36b535c26b Fixes #13254: Made yii\helpers\StringHelper and yii\validators\StringValidator independent of Yii::$app instance 2017-09-07 22:32:07 +03:00
f87ddd48b8 added note about opcache and PHPDoc annotations to Markdown helper
fixes #13601
2017-08-22 12:09:42 +02: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
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
ea33bbd369 Fix docs of a base file helper (#14477) [skip ci] 2017-07-18 13:45:22 +03:00
59002a9e1e Fixes #6644: Added yii\helpers\ArrayHelper::setValue() 2017-07-16 00:25:44 +03:00
6e223e6db2 Fixes #14423: Fixed ArrayHelper::merge behavior with null values for integer-keyed elements 2017-07-13 10:36:59 +03:00
a50d9d8e3e Enable include rule in php-cs-fixer (#14418) 2017-07-10 13:19:57 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +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
be658f82bf release version 2.0.12 2017-06-05 16:33:41 +02:00