Vladimir Reznichenko
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
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Vladimir Reznichenko
185209957e
Fixes #15270 : Resolved potential race conditions when writing generated php-files
7 years ago
Alexander Makarov
6bde69aa96
Fixes #14016 : Fixed empty messages marked as unused in PHP and PO sources when extracted with message command when `markUnused` is `false`
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
Carsten Brandt
2f9f15bf92
Fixes #14188 : Add constants and function for sysexits(3) to `ConsoleHelper`
7 years ago
Robert Korulczyk
d2781cd232
Added configuration for headers in PHP files generated by `message/extract` command ( #14417 )
7 years ago
Robert Korulczyk
a50d9d8e3e
Enable `include` rule in php-cs-fixer ( #14418 )
7 years ago
Elvira Sheina
cfaec11da5
Fixes #13824 : Support extracting concatenated strings in `yii message`
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
Arthur Khachaturov
78ec17f13c
Fixes #14201 : `yii\console\controllers\MessageController::extractMessagesFromTokens()` is now protected
7 years ago
PowerGamer1
3dc8f426d0
Fix MessageController color output on non-color termnials
...
fixes #14248
close #14249
7 years ago
Vladimir Reznichenko
6da1ec6fb2
Fixes #13845 : `mt_rand()` is not used instead of `rand()` in `yii\captcha\CaptchaAction` + minor code improvements
8 years ago
SilverFire - Dmitry Naumenko
1dc4618f3d
Fixed `MessageConstroller::saveMessagesToDb()` to work on different DBMS correctly
...
Closes #13494
8 years ago
Bizley
1749c46c5d
Fixes #11502 : Fixed `yii\console\controllers\MessageController` to properly populate missing languages in case of extraction with "db" format
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
AS
665a12b25c
Fix typo detaild -> detailed ( #12177 ) [skip ci]
8 years ago
Alexander Makarov
9b1b4fc5fa
Added missing phpdoc
8 years ago
Alexander Makarov
33a45b196c
Additional optimization for #12048
8 years ago
Alexander Makarov
0dbe589bf5
Fixes #12048 : Improved message extraction command performance
8 years ago
Alexander Makarov
6728d5d0e0
Fixes #11965 : fixed docs for MessageController only and except
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
Nikola Kovacs
9d327baa8b
coding style fixes
8 years ago
Carsten Brandt
9ea5d46140
added missing `@since` annotations
9 years ago
Daniel Gomez Pan
1989494faa
Console command aliases enhancements
9 years ago
Daniel Gomez Pan
9088d49990
fix name method
9 years ago
Carsten Brandt
191f2a4943
fixed phpdoc type names
9 years ago
Daniel Gomez Pan
705edfff5a
Add aliases for core commands
9 years ago
Carsten Brandt
5db772ef7b
cleanup console namespace changes
9 years ago
Revin Roman
62fd874413
Update phpdoc comments and changelog
9 years ago
Revin Roman
c22a9c0d84
Method `isIgnoredCategory` renamed to `isCategoryIgnored` and update phpdoc comments
9 years ago
Revin Roman
229f9a8364
Support wildcard category name in export messages config #10359
9 years ago
Vovan-VE
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] $ _
9 years ago
Alexander Makarov
08256b05ec
Adjustments for #8329
9 years ago
Vadym Chenin
ccfd9cb536
Fixes #8329 : Added support of options for `message` console command
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
Alexander Makarov
3a207b7559
Fixes #9323 : Fixed `yii\console\controllers\MessageController` not using database connection specified in config
9 years ago
Carsten Brandt
a2568d1ec8
updated some comments and `@since` annotations
9 years ago
╃巡洋艦㊣
586684b050
2.0.5 bf7edc5
9 years ago
Alexander Makarov
63f9ec4da6
Fixed formatting
9 years ago
Alexander Mohorev
ae42a054bb
PSR-2 spaces, commas, etc
9 years ago
Marius Ebel
fff61bf99b
- Reworked order of parameters in order to keep backwards compatibility
...
- Update statement of unused messages in DB now depends on $markUnused parameter
9 years ago
Marius Ebel
0dcb50db5e
- i18n MessageController now supports config parameter 'markUnused' that turns adding @@s either on or off
9 years ago
Philippe Gaultier
4851d7f9e3
Fixes #8574 : Added `yii\console\controllers\MessageController` support .pot file creation
9 years ago
Klimov Paul
adb0460ee1
`yii\console\controllers\MessageController` now sorts created messages, even if there is no new one, while saving to PHP file
10 years ago
Klimov Paul
72ec914992
`yii\console\controllers\MessageController` improved allowing extraction of nested translator calls
10 years ago
Klimov Paul
a0b5652673
`yii\console\controllers\MessageController::saveMessagesToDb()` updated to use `yii\db\Schema::insert()`
10 years ago
Carsten Brandt
ef662b57be
added missing `@since` annotations
10 years ago
Alexander Makarov
b7a29e38d9
Fixes #6895 : Added `ignoreCategories` config option for message command to ignore categories specified
10 years ago