109 Commits

Author SHA1 Message Date
8150cd1ed4 Fixes #16580: Delete unused php message files in MessageController if $removeUnused option is on 2018-12-05 01:35:44 +03:00
5208ef761e Fixes #16828: yii\console\controllers\MessageController::translator recognized object' methods and functions calls as identical sets of tokens 2018-11-03 11:19:27 +03: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
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
185209957e Fixes #15270: Resolved potential race conditions when writing generated php-files 2017-12-02 18:24:56 +03:00
6bde69aa96 Fixes #14016: Fixed empty messages marked as unused in PHP and PO sources when extracted with message command when markUnused is false 2017-10-06 22:24:38 +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
2f9f15bf92 Fixes #14188: Add constants and function for sysexits(3) to ConsoleHelper 2017-07-15 23:26:15 +03:00
d2781cd232 Added configuration for headers in PHP files generated by message/extract command (#14417) 2017-07-10 20:14:54 +03:00
a50d9d8e3e Enable include rule in php-cs-fixer (#14418) 2017-07-10 13:19:57 +03:00
cfaec11da5 Fixes #13824: Support extracting concatenated strings in yii message 2017-06-21 01:25:12 +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
78ec17f13c Fixes #14201: yii\console\controllers\MessageController::extractMessagesFromTokens() is now protected 2017-06-09 17:44:00 +03:00
3dc8f426d0 Fix MessageController color output on non-color termnials
fixes #14248
close #14249
2017-06-06 20:45:26 +02:00
6da1ec6fb2 Fixes #13845: mt_rand() is not used instead of rand() in yii\captcha\CaptchaAction + minor code improvements 2017-03-24 13:50:13 +03:00
1dc4618f3d Fixed MessageConstroller::saveMessagesToDb() to work on different DBMS correctly
Closes #13494
2017-02-21 23:37:17 +02:00
1749c46c5d Fixes #11502: Fixed yii\console\controllers\MessageController to properly populate missing languages in case of extraction with "db" format 2017-02-02 02:50:34 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
AS
665a12b25c Fix typo detaild -> detailed (#12177) [skip ci] 2016-08-17 11:56:25 +03:00
9b1b4fc5fa Added missing phpdoc 2016-07-30 00:02:51 +03:00
33a45b196c Additional optimization for #12048 2016-07-29 23:37:41 +03:00
0dbe589bf5 Fixes #12048: Improved message extraction command performance 2016-07-29 23:35:09 +03:00
6728d5d0e0 Fixes #11965: fixed docs for MessageController only and except 2016-07-15 21:46:14 +03:00
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
9ea5d46140 added missing @since annotations 2016-04-28 01:05:31 +02:00
1989494faa Console command aliases enhancements 2016-03-05 17:56:12 +03:00
9088d49990 fix name method 2016-03-04 14:13:18 +01:00
857eee2451 Merge pull request #10870 from pana1990/10840-add-shorcuts-console
WIP #10840
2016-03-04 13:53:28 +02:00
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
705edfff5a Add aliases for core commands 2016-02-25 16:28:19 +01:00
5db772ef7b cleanup console namespace changes 2016-02-06 20:05:14 +01:00
62fd874413 Update phpdoc comments and changelog 2015-12-14 14:56:39 +03:00
c22a9c0d84 Method isIgnoredCategory renamed to isCategoryIgnored and update phpdoc comments 2015-12-14 14:50:22 +03:00
229f9a8364 Support wildcard category name in export messages config #10359 2015-12-14 14:04:06 +03:00
d1d1106179 MessageController output DB lost EOL when unused messages unchanged
When storing messages to DB and neither `removeUnused`, nor `markUnused`
is enabled, then output about obsoleted messages won't say anything
about update results and lost EOL:

    [/path] $ ./yii message/extract ...
    Extracting messages from <file>...

    Extracting messages from <file>...

    Inserting new messages...saved.
    Updating obsoleted messages...[/path] $ _

Patched to explain what happened and fix EOL:

    Inserting new messages...saved.
    Updating obsoleted messages...kept untouched.
    [/path] $ _
2015-12-04 11:43:06 +08:00
08256b05ec Adjustments for #8329 2015-11-25 06:27:01 +03:00
ccfd9cb536 Fixes #8329: Added support of options for message console command 2015-11-25 06:12:52 +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
3a207b7559 Fixes #9323: Fixed yii\console\controllers\MessageController not using database connection specified in config 2015-09-05 01:58:03 +03:00
a2568d1ec8 updated some comments and @since annotations 2015-08-02 19:56:49 +02:00
63f9ec4da6 Fixed formatting 2015-06-10 13:39:47 +02:00
c0c3fa79af Merge branch '8625-message-controller-mark-unused' of https://github.com/marius7383/yii2 into marius7383-8625-message-controller-mark-unused
Conflicts:
	framework/CHANGELOG.md
2015-06-10 13:33:20 +02:00
ae42a054bb PSR-2 spaces, commas, etc 2015-06-09 00:05:06 +03:00
fff61bf99b - Reworked order of parameters in order to keep backwards compatibility
- Update statement of unused messages in DB now depends on $markUnused parameter
2015-06-08 10:11:15 +02:00
0dcb50db5e - i18n MessageController now supports config parameter 'markUnused' that turns adding @@s either on or off 2015-06-08 10:11:13 +02:00
4851d7f9e3 Fixes #8574: Added yii\console\controllers\MessageController support .pot file creation 2015-05-31 12:40:46 +03:00
adb0460ee1 yii\console\controllers\MessageController now sorts created messages, even if there is no new one, while saving to PHP file 2015-05-13 16:08:36 +03:00
72ec914992 yii\console\controllers\MessageController improved allowing extraction of nested translator calls 2015-05-13 15:49:00 +03:00
a0b5652673 yii\console\controllers\MessageController::saveMessagesToDb() updated to use yii\db\Schema::insert() 2015-04-24 15:34:46 +03:00