33 Commits

Author SHA1 Message Date
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
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
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03: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
b0bb8649a3 HHVM compatible fix for messageformatter error
fixes #11528
2016-07-04 11:01:24 +02:00
91f1ac1d99 fixed exception on malformed message in Messageformatter
this exception is thrown since PHP7
fix is compatible with older versions.

close #11644
fixes #11528
2016-07-04 10:42:39 +02:00
3b5634bf8b Fixes #11863: Fixed usage of mb_substr with PHP < 5.4.8 where length of NULL was treated the same as 0 2016-07-02 21:06:39 +03:00
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
645e78e832 fixed message formatter for input where no parameters are provided
fixes #10884
2016-02-25 19:39:52 +01:00
3b31aa771a #10363: Fixed i18n fallback float and integer formatting 2015-12-26 10:42:34 +02:00
a6e1ba2cf6 Fixed mb_ functions calls to use UTF-8 or app charset 2015-11-17 09:02:22 +02:00
255eec3ddd fixed typo 2015-10-10 12:58:15 +02:00
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
0407407b76 fix coding style to follow PSR-2 2015-10-05 13:58:47 +06:00
97f2fca72f Fixes #9678: I18N::format() wasn't able to handle named placeholder in "selectordinal" 2015-09-14 00:42:33 +03:00
100ba6c3ab Replaced substr_compare with strncmp where possible 2014-07-30 02:32:47 +04:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
1c414caace Improved checks where substr_compare is used, replaced more substr + comapre cases with substr_compare 2014-07-30 02:15:08 +04:00
c1445871f4 Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
2014-04-16 19:29:07 -03:00
d1663a5fb7 fixed potential problem with MessageFormatter and broken messages 2014-03-26 17:51:52 +01:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
1b7e1cd027 Merge pull request #2605 branch 'feature' of https://github.com/mongosoft/yii2 into code-style
* 'feature' of https://github.com/mongosoft/yii2:
  returned back formatting language files
  code style. WHILE
  code style. FOR
  code style. FOREACH
  code style. operator IF
  @param, @var, @property and @return must declare types as boolean, integer, string, array or null
  short echo tags
  short array syntax

Conflicts:
	extensions/apidoc/commands/RenderController.php
	extensions/apidoc/models/BaseDoc.php
	extensions/apidoc/models/Context.php
	extensions/apidoc/templates/bootstrap/Renderer.php
	extensions/apidoc/templates/bootstrap/layouts/guide.php
	extensions/apidoc/templates/bootstrap/layouts/main.php
	extensions/apidoc/templates/bootstrap/views/index.php
	extensions/apidoc/templates/html/Renderer.php
	extensions/apidoc/templates/offline/views/index.php
	extensions/apidoc/templates/offline/views/offline.php
	extensions/apidoc/templates/online/views/index.php
	extensions/elasticsearch/Connection.php
	extensions/redis/ActiveQuery.php
	framework/base/ErrorException.php
	framework/helpers/BaseFileHelper.php
	tests/unit/framework/helpers/FileHelperTest.php
2014-03-07 21:54:44 +01:00
eaaa5b1bb5 fix code style 2014-03-04 06:12:30 +02:00
95ea1c20bb code style. FOREACH 2014-03-03 21:47:47 +03:00
c7e8d8b900 @param, @var, @property and @return must declare types as boolean, integer, string, array or null 2014-03-03 20:50:44 +03:00
17ca07fd44 More consistent usage of MessageFormatter::tokenizePattern 2014-02-01 02:08:41 +04:00
349f2c9e32 phpdoc fixes, unused variable 2014-01-12 23:40:21 +04:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00