Alexander Makarov
fb23b0d0ea
Code style fixes
7 years ago
SilverFire - Dmitry Naumenko
336404e0b9
PHP7.2RC5: enabled INTL tests, continue disabling some cases in FileValidator
7 years ago
Dmitry Naumenko
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
7 years ago
Robert Korulczyk
c78201899b
Fixes #13720 : Improve `yii\helpers\FormatConverter::convertDatePhpToIcu()` to handle escaped chars correctly
7 years ago
SilverFire - Dmitry Naumenko
0e2b6c41b8
Simplified API of `Formatter::asWeight()` and `Formatter::asLength()` methods
7 years ago
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
9b118aafa0
Enable `non_printable_character` rule in php-cs-fixer config ( #14667 )
...
* Use "\u{00a0}" as nbsp.
* Enable non_printable_character rule.
* Fix test for PHP 5.
7 years ago
Robert Korulczyk
b99e955627
Fix CS ( #14665 )
...
* Run php-cs-fixer.
* Enable phpdoc_types rule.
7 years ago
Tomáš Votruba
7ad94a0107
[cs] remove unused use statements ( #14661 ) [skip ci]
7 years ago
SilverFire - Dmitry Naumenko
87f988fe54
One more try to fix tests on Travis
7 years ago
SilverFire - Dmitry Naumenko
6424acf67f
One more try to fix tests on Travis
7 years ago
SilverFire - Dmitry Naumenko
b9f582dbf3
Try to fix tests on Travis
7 years ago
SilverFire - Dmitry Naumenko
7c73b0b79d
Enhanced tests, updated CHNAGELOG
7 years ago
SilverFire - Dmitry Naumenko
b577e302f7
Enhanced PHPDocs, added tests
7 years ago
bscheshirwork
0c0cc1074d
fix current time in formatter ( #14203 )
...
* fix current time in formatter
* expand testAsDatetime
* Update FormatterDateTest.php
* Update CHANGELOG.md
7 years ago
Robert Korulczyk
12eb936083
Enable `heredoc_to_nowdoc` rule in php-cs-fixer ( #14419 )
7 years ago
Carsten Brandt
fadeb5d2b4
added formatter as second paramter to format closure
...
to allow reusing the formatter in custom formats.
fixes #4495
addition to #14326
7 years ago
Elvira Sheina
aca7390a47
Added closure support in `yii\i18n\Formatter` #4495 ( #14326 )
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
Carsten Brandt
2b9f0006d5
added example for using unsupported PHP format in yii formatter
...
fixes #14278
7 years ago
Klimov Paul
d8e6a89af9
fixed tests without assettions
8 years ago
Klimov Paul
04a14efd3f
compatibility with PHPUnit 6.x fix
8 years ago
Klimov Paul
dee88787fc
compatibility with PHPUnit 6.x added
8 years ago
Alexander Makarov
cc44339a45
Improved intl tests to tolerate ICU data differences
...
- Added new assertion.
- Adjusted tests not to rely on intl version allowing multiple valid variants for Russian and Ukrainian currencies and transliteration.
8 years ago
Alexander Makarov
18b3fa10c5
Fixed ICU tests take varieties of data into account ( #13751 )
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Carsten Brandt
22972b86db
update date formatter test for intl
...
some tests where not run with intl extension enabled.
8 years ago
Bizley
54278fc842
asTime fixed for time-only values
...
close #13348
fixes #13343
8 years ago
Carsten Brandt
4187718c14
added missing groups to tests
8 years ago
a.kompaniets
50f3012f68
fixed currency format with custom decimal fraction
...
fixes #12345
close #12648
8 years ago
Carsten Brandt
a51dadc866
added test for #12345
8 years ago
Klimov Paul
194577c55e
Code style fix
8 years ago
SilverFire - Dmitry Naumenko
14b4f52e44
Updated CHANGELOG
8 years ago
Anton Kozlov
20a411d8ab
Fixed #12822 : Fixed datetime creation from microseconds, added tests to \i18n\Formatter::asTimestamp
8 years ago
Carsten Brandt
469c0548b6
fixed formatter to respect grouping separator for currency format
...
fixes #12331
8 years ago
stevekr
8ca845b680
Fixes #11212 : Added headers to PO file in `yii\i18n\GettextPoFile::save()`
8 years ago
Carsten Brandt
07d3217706
added test for negative date formatter values
...
test for #9628
8 years ago
Carsten Brandt
062895111f
fixed php 7.1 test breaks that depend on ICU data version
8 years ago
Carsten Brandt
b0bb8649a3
HHVM compatible fix for messageformatter error
...
fixes #11528
8 years ago
Carsten Brandt
91f1ac1d99
fixed exception on malformed message in Messageformatter
...
this exception is thrown since PHP7
fix is compatible with older versions.
close #11644
fixes #11528
8 years ago
Kostas Thermos
d219b17e65
Test for MessageFormatter with broken pattern
...
close #11644
8 years ago
SilverFire - Dmitry Naumenko
f7ff153fce
Fixed `yii\i18n\PhpMessageSource::loadFallbackMessages()` not to log error when source and language is same, but locales are different
9 years ago
Robbert Jan van de Velde
c7f365910d
Fixed handling of intervals of 0 seconds in yii\i18n\Formatter::asDuration().
...
Added unit tests for handling 0 second intervals and numeric values for yii\i18n\Formatter::asDuration().
Closes #11038
9 years ago
Carsten Brandt
645e78e832
fixed message formatter for input where no parameters are provided
...
fixes #10884
9 years ago
SilverFire - Dmitry Naumenko
32c424da10
Fixed i18n message sources to load fallback messages in a smarter way
...
Added migration and unit-tests for `yii\i18n\DbMessageSource`
Closes #7964
9 years ago
Carsten Brandt
cdb7d84fea
added support for non-gregorian calendar to formatter
...
fixes #8687
close #10517
9 years ago
AnatolyRugalev
3b31aa771a
#10363 : Fixed i18n fallback float and integer formatting
9 years ago
SilverFire - Dima Naumenko
a6e1ba2cf6
Fixed mb_ functions calls to use UTF-8 or app charset
9 years ago