40d8639a91
Update Formatter.php
2018-11-02 10:20:28 +01:00
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
f10cb6aeee
SCA with Php Inspections (EA Ultimate)
2018-02-27 19:13:22 +01:00
22832b7c49
release version 2.0.14
2018-02-19 00:27:09 +02: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
e9bec0d246
Reordered property to top [skip ci]
2018-02-07 11:55:43 +03:00
10eac963d3
Fixed typo [skip ci]
2018-02-03 18:55:27 +03:00
63fdd26b7e
Fixes #8527 : Added yii\i18n\Locale component having getCurrencySymbol() method
...
Co-authored-by: Anton Gubarev <a.p.gubarev@gmail.com>
2018-02-03 18:01:54 +03:00
65f6b59b35
@inheritdoc notation changed
2018-01-23 13:11:24 +02:00
ebd3d61a1b
Fixes #14980 : Fix looping in yii\i18n\MessageFormatter tokenize pattern if pattern is invalid
2018-01-18 01:38:41 +03:00
2dc4e8e6b2
Fixed translating a string when NULL parameter is passed [ #15169 ]
2018-01-04 10:46:56 +05:00
b44bbd6a13
Fix code issues ( #15435 )
...
* Fix some scrunitizer warnings
* Remove obsolete require
* Fix codestyle
2018-01-01 16:21:37 +03:00
10e7b1b541
Fixes #14276 : Fixed I18N format with dotted parameters
2017-11-15 00:26:10 +03:00
2d672b6722
release version 2.0.13
2017-11-03 01:09:29 +03:00
376006a2d5
Data filter enhancements and docs
...
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
2017-10-26 11:32:52 +03:00
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
2017-10-19 01:54:40 +03:00
744b87fabc
Fixes #4479 : Implemented REST filters
2017-10-09 00:01:58 +02:00
aaedd200b0
Formatter asDatetime() documentation $format fix ( #14708 )
...
In the description asDatetime() function about the $format parameter it says that the default value is taken from $dateFormat while the correct is $datetimeFormat
2017-08-23 09:44:05 +02:00
0e2b6c41b8
Simplified API of Formatter::asWeight() and Formatter::asLength() methods
2017-08-21 13:10:19 +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
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
b99e955627
Fix CS ( #14665 )
...
* Run php-cs-fixer.
* Enable phpdoc_types rule.
2017-08-18 12:10:42 +02:00
b9f582dbf3
Try to fix tests on Travis
2017-08-16 08:04:35 +03:00
7c73b0b79d
Enhanced tests, updated CHNAGELOG
2017-08-15 23:13:59 +03:00
b577e302f7
Enhanced PHPDocs, added tests
2017-08-14 23:48:33 +03:00
4028c69ed5
Merge branch 'master' into nineinchnick-9703-si-formatters
...
Conflicts:
framework/i18n/Formatter.php
2017-08-14 22:55:45 +03:00
0c0cc1074d
fix current time in formatter ( #14203 )
...
* fix current time in formatter
* expand testAsDatetime
* Update FormatterDateTest.php
* Update CHANGELOG.md
2017-08-03 10:20:37 +02:00
21d2d72534
Fixes #14487 : Changed i18n message error to warning
2017-07-21 12:21:46 +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
fadeb5d2b4
added formatter as second paramter to format closure
...
to allow reusing the formatter in custom formats.
fixes #4495
addition to #14326
2017-07-03 11:34:20 +02:00
aca7390a47
Added closure support in yii\i18n\Formatter #4495 ( #14326 )
2017-07-03 11:11:35 +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
cb53b2feec
Fixes #14081 : Added yii\caching\CacheInterface to make custom cache extensions adoption easier
2017-06-11 19:18:33 +03:00
b056dff031
improved formatter documentation
2017-06-06 11:43:51 +02:00
981346cb1e
Fixed Formatter::normalizeDatetimeValue() docs
...
There was a reference to `$checkTimeInfo` that was leftover from 54278fc84262fc45e696ccccfd2258a6028bd9e3
2017-06-05 14:07:03 -07:00
18bc835243
Typo ( #14117 ) [skip ci]
2017-05-05 17:06:46 +03:00
a182ce57fc
Fixes for issues found with Static Code Analysis with Php Inspections (EA Extended) ( #13606 )
...
* Php Inspections (EA Extended): language level migration fixes
* Php Inspections (EA Extended): instanceof a trait always return false
* Php Inspections (EA Extended): fixed preg_quote (/ is not escaped by default)
* Php Inspections (EA Extended): fixed a greedy regex
* Php Inspections (EA Extended): refereted instanceof self in a trait
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): more greedy regexes fixed
2017-02-22 17:07:52 +03:00
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
2017-02-19 17:34:22 +03:00
54278fc842
asTime fixed for time-only values
...
close #13348
fixes #13343
2017-02-16 16:07:52 +01:00
cc37cd626f
Fixes #12599 : Fixed MSSQL fail to work with nvarbinary. Enhanced SQL scripts compatibility with older versions
2017-01-23 10:31:52 +03:00
50f3012f68
fixed currency format with custom decimal fraction
...
fixes #12345
close #12648
2017-01-03 00:03:40 +01:00
b4b2b0e6d1
better docs about decimal numbers in Formatter
...
fixes #12520
2016-12-20 01:23:00 +01:00
20a411d8ab
Fixed #12822 : Fixed datetime creation from microseconds, added tests to \i18n\Formatter::asTimestamp
2016-11-13 18:02:54 +02:00
1a70f60332
Merge master into doc-fixes
...
Conflicts:
framework/web/AssetManager.php
2016-11-13 15:35:18 +01:00
7a3a342127
Fix errors reported by apidoc extension. ( #12986 )
2016-11-13 14:51:21 +01:00
450eefaa50
Some phpdoc fixes from scrutinizer.
2016-11-12 22:11:30 +01:00
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
31595827b1
fixed link in PhpMessageSource docs
...
https://github.com/yiisoft/yii2/pull/12409#r84586089
2016-10-24 02:03:17 +02:00
bbdf5186d2
Cosmetic changes in DocBlocks ( #12815 ) [skip ci]
2016-10-23 11:44:23 +03:00