63 Commits

Author SHA1 Message Date
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
3cebbdad2e Fix #19853: Added support for default value for \yii\helpers\Console::select() 2023-06-09 19:36:21 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
0ad2651914 Fix #19471: Enable console commands on hostings with disabled exec() function 2022-07-27 14:24:39 +03:00
4628b91e73 Fix types (#19332)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect
2022-03-30 18:40:10 +02:00
4cb799bf92 Fix @param type (#19286) 2022-03-05 10:31:33 +01:00
1271bc419f Fix #19041: Fix PHP 8.1 issues 2022-01-14 13:52:01 +03:00
cd36f505b1 Fix #16831: Fix console Table Widget does not render correctly in combination with ANSI formatting 2020-10-23 22:21:03 +03:00
2b9323d517 Fix #18047: Fix colorization markers output in Table.php 2020-06-23 13:45:34 +03:00
88c51062ec Fixed: typo (#17587) [skip ci]
Fixed: incorrect MD parse result (@see https://www.yiiframework.com/doc/api/2.0/yii-helpers-baseconsole#startProgress()-detail)
2019-10-01 20:09:09 +03:00
30e10837ba Fixes #16509: Fixed console command help text wordwrap for multi-byte strings 2019-05-22 14:42:12 +03:00
f9b03dfd42 SCA with Php Inspections (EA Ultimate) 2018-02-27 19:06:27 +01:00
8b0702d386 Fixed #14840: improved Console::select() phpdoc [skip ci] 2018-01-21 22:41:22 +03:00
717d0e80d3 Fixes #15358: Refactored BaseConsole::updateProgress() 2017-12-18 10:43:03 +03:00
f11f818b18 Fixes #7988: Added \yii\helpers\Console::errorSummary() and \yii\helpers\Json::errorSummary() 2017-12-14 10:59:53 +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
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
fc00e60ade Incorrect console width/height detecting with using Stty on Mac
Fixes #13309
2017-01-14 11:49:13 +02:00
0efed3f2b0 Fixed wrong background color generation in BaseConsole::renderColoredString()
Fixes #13326
2017-01-14 11:42:33 +02:00
3050dedded Update BaseConsole.php 2017-01-07 21:13:02 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
2788f83576 Fixes #12879: Console progress bar was not working properly in Windows terminals 2016-11-03 13:32:35 +03:00
75e43ccc3a Fixes regression introduced by #12576. Closes #12576 2016-10-12 00:38:04 +03:00
8a9c8a8953 Fixes #11907: Fixed yii\helpers\Console::getScreenSize() on Windows was giving out width and height swapped 2016-08-05 01:33:52 +03:00
4d93d68af9 Fix incorrect formatting in documentation (#11864) [skip ci]
The asterisks and underscores were interpreted as markdown formatting, which wasn't intended.

Also fix invalid link to FG_COLOR.
2016-07-01 19:15:36 +03:00
f900f24ca9 Fixed namespace conflict with Markdown helper and Console helper
fixes #11425
2016-04-26 22:05:56 +02:00
d82bf74f41 fixed removal of empty lines in array in phpdoc controller 2016-03-14 23:53:10 +01:00
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
77b0d30bf8 Divide by zero prevention in console progress bar
close #10541
2016-01-14 12:21:32 +01:00
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
b65bfad44d Simplified regular expressions 2015-10-10 00:40:25 +03:00
ffa3a59591 Compare with empty string instead of comparing length with 0 2015-10-10 00:37:46 +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
e1ea227e6d improved console helper progressbar ETA
update only once per second to avoid flapping
2015-08-05 13:56:11 +02:00
ae42a054bb PSR-2 spaces, commas, etc 2015-06-09 00:05:06 +03:00
fa428a130c PSR-2 while statement 2015-06-08 23:22:41 +03:00
0c5e4b7105 PSR-2 foreach statement 2015-06-08 23:21:21 +03:00
ef662b57be added missing @since annotations 2015-04-24 12:09:40 +02:00
70abb9b31c add isset check on index which might not be set
close #8158
2015-04-22 22:25:00 +02:00
08e0143c16 created Console::wrapText() to imrove console help output on small screens 2015-03-05 21:19:42 +01:00
c997e0d02e Fixes #7094: Console confirmation must be answered correctly. To return true: y or yes. To return false: n or not. Any other input the question will be asked again 2015-01-30 23:51:42 +03:00
899b778994 Correct type declarations 2014-10-25 16:35:50 +03:00
49961c4896 change Console::confirm() output to use stdout 2014-10-22 23:21:39 +02:00
6a9b3c7774 Finished console Gii. 2014-09-14 14:15:16 -04:00
fadfdf690a Refactored help system. [skip ci] 2014-09-04 19:47:52 -04:00
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
6578cfbdab updated phpdoc and classmap 2014-06-25 18:24:23 +02:00