541 Commits

Author SHA1 Message Date
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
f9b03dfd42 SCA with Php Inspections (EA Ultimate) 2018-02-27 19:06:27 +01:00
2c68336754 Fix #15724: MigrateController::optionAliases() have 2 same keys 2018-02-22 22:06:13 +04:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
cd8a9c47d7 Fixed kebab-name console command parameters 2018-02-18 23:32:50 +03:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
b953a184e3 Fixes #13919: Added option to add comment for created table to migration console command 2018-01-15 18:30:52 +03:00
af83e59406 Fixes #14355: Added ability to pass an empty array as a parameter in console command 2018-01-10 02:51:41 +04:00
b44bbd6a13 Fix code issues (#15435)
* Fix some scrunitizer warnings

* Remove obsolete require

* Fix codestyle
2018-01-01 16:21:37 +03:00
73fddb004e Fixes #15407 2017-12-24 15:53:25 +02:00
185209957e Fixes #15270: Resolved potential race conditions when writing generated php-files 2017-12-02 18:24:56 +03:00
8897ea7270 Fixes #15249: Controllers in subdirectories were not visible in commands list 2017-11-30 22:06:24 +03:00
898e43d6eb Improves readability of yii\console\widgets\Table widget (#15236)
* Fixes code style

* Moves magic numbers to constants
2017-11-28 23:40:21 +03:00
aab86eb7e7 Fixes #15229: Fixed yii\console\widgets\Table default value for getScreenWidth(), when Console::getScreenSize() can't determine screen size 2017-11-28 09:14:59 +03:00
0948109a19 Fixes #15221: Console improvements 2017-11-26 14:43:05 +08:00
2d672b6722 release version 2.0.13 2017-11-03 01:09:29 +03:00
1c23e6dea8 Fixed Table phpdoc example [skip ci] 2017-10-29 23:48:57 +03:00
e311001ef5 #14543: Adjusted implementation of migration name length limit 2017-10-27 00:20:37 +03:00
614fb52c45 Fixes #14543: Throw exception when trying to create migration longer than 255 symbols 2017-10-23 23:21:44 +03:00
43ea93315f Fixes #14929: Additional semicolon should avoid an affection of trailing line comment when asset/compress 2017-10-11 23:10:56 +03:00
6e8cc4c151 Fixes #14929: Ensure trailing ; on combining files with asset command to fix compiler failures 2017-10-06 22:31:37 +02: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
a1ddd8b907 Fixes #14129: Fixed console help to properly work with tricky camelcased controller names 2017-09-29 23:02:09 +03:00
ab8c54f12a Fixes #14864: Ability to use dependencies in constructor of migrations 2017-09-23 01:24:18 +02:00
97923ac783 ensure backwards compatibiliy with migration without $compact
See https://github.com/yiisoft/yii2/pull/14474#discussion_r135237472
2017-09-01 11:07:52 +02:00
f866edcfba Fix console cache controller
Fixed a bug in a `yii\console\controllers\CacheController` when caches
defined via a closure were not detected.

fixes #13969
close #14586
2017-09-01 09:34:56 +02:00
8987957f06 Fixes #14697: Fixed console\widgets\Table rendering when there's no data supplied 2017-08-28 01:27:54 +03:00
9588c8f5a4 Fixes #13853: Added yii\db\Migration::$compact as well as yii\console\controllers\BaseMigrateController::$compact to allow making the migration console output more compact 2017-08-25 13:30:28 +03:00
264831cf21 BaseMigrateController::refreshDatabase() renamed to truncateDatabase() 2017-08-24 13:08:46 +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
4d5aa9a6cf Fix self-ignored .gitignore files. 2017-08-20 13:39:06 +02:00
58792cdac5 Fixes #14664: Add migrate/fresh command to truncate database and apply migrations again 2017-08-20 01:00:41 +03:00
e472b4e29c Fixes #14525: Fixed 2.0.12 regression of loading of global fixtures trough yii fixture/load 2017-07-26 14:35:20 +03:00
915c78facd Fixed ExitCode::getReason() 2017-07-24 01:06:18 +03:00
1f26db9fb7 Applied code style fixes 2017-07-21 15:42:06 +03:00
2f9f15bf92 Fixes #14188: Add constants and function for sysexits(3) to ConsoleHelper 2017-07-15 23:26:15 +03:00
0070b97837 allow migrate/mark to mark the history base (#14428)
fixes #7890
2017-07-12 11:48:03 +02: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
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
b0ad73e361 Fixes #11415: Added yii\console\widgets\Table to draw tables in console apps 2017-06-29 18:19:55 +03:00
cfaec11da5 Fixes #13824: Support extracting concatenated strings in yii message 2017-06-21 01:25:12 +03:00
8d05e81bd4 Fixes #14307: Fixed PHP warning when yii\console\UnknownCommandException is thrown for empty command 2017-06-18 18:40:15 +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
cb53b2feec Fixes #14081: Added yii\caching\CacheInterface to make custom cache extensions adoption easier 2017-06-11 19:18:33 +03:00
78ec17f13c Fixes #14201: yii\console\controllers\MessageController::extractMessagesFromTokens() is now protected 2017-06-09 17:44:00 +03:00
fdc91f351b Improved base migration controller documentation [skip ci] (#14253) 2017-06-09 11:36:03 +03:00
3dc8f426d0 Fix MessageController color output on non-color termnials
fixes #14248
close #14249
2017-06-06 20:45:26 +02:00
844eacba26 Update BaseMigrateController.php
make sure console arguments are recognized as array.
2017-06-05 11:31:38 +02:00