72 Commits

Author SHA1 Message Date
2f9f15bf92 Fixes #14188: Add constants and function for sysexits(3) to ConsoleHelper 2017-07-15 23:26: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
f7c9e6b852 Enhanced FixtureController::getFixtureRelativeName()
Updated CHANGELOG
2017-05-30 21:27:50 +03:00
51dd58cf34 Fixed #13551: loading fixtures in subdirectories 2017-05-30 21:27:43 +03:00
96dae1cebc file will not loaded
https://github.com/yiisoft/yii2/tree/master/framework/test
2017-04-27 20:51:56 +03:00
2853dcbad7 Update FixtureController.php 2017-01-02 10:13:43 +02:00
9173656b53 Improves error message for invalid namespace in FixtureController 2017-01-02 00:07:50 -02:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
9b1b4fc5fa Added missing phpdoc 2016-07-30 00:02:51 +03:00
8c240ed067 Fixes #11683: Fixed fixture command to work with short syntax. yii fixture "*, -User" should be used instead of yii fixture "*" -User 2016-07-07 01:30:06 +03:00
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
7615a39e4d Add note about purge DB (#11445) 2016-04-28 12:00:14 +02:00
9ea5d46140 added missing @since annotations 2016-04-28 01:05:31 +02: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
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +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
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00
19af264530 Enh: yii fixture command now offers help if no arguments are provided instead of crashing 2014-11-28 00:32:38 +03:00
33b760eca2 [ci skip] Guide typos fixed 2014-11-04 13:05:47 +03:00
1ad7e5f77a Fixes #5508: Dropped the support for the --append option for the fixture command 2014-10-26 20:47:12 -04:00
899b778994 Correct type declarations 2014-10-25 16:35:50 +03:00
2bfec326d5 Proper error message when fixture controller is called without input
before: failed with undefined index PHP error
now: fail with proper error complaining about missing argument.
2014-10-14 15:36:43 +02:00
02622b6fe4 phpdoc fixes and additions 2014-10-14 01:35:21 +04:00
d2b864da84 prepare for 2.0.0-rc release. 2014-09-27 21:59:54 -04:00
00ca1cb4b3 Fixes #4914 2014-09-04 03:27:13 +04:00
d86691240c fixed console guide and docs of FixtureController 2014-08-23 00:37:00 +04:00
5be6a841e3 Cleaned up doc. [skip ci] 2014-08-20 21:14:51 -04:00
033d66deac changed format of applying command to all 2014-08-20 20:48:58 -04:00
461576dc85 added other syntax for and tests for fixture controller 2014-08-20 20:48:58 -04:00
d9cd1a859b added append option to fixture controller 2014-08-20 20:48:58 -04:00
a86d2ad11e Added yii\console\Controller::EXIT_CODE_NORMAL and yii\console\Controller::EXIT_CODE_ERROR constants, yii\console\MigrateController now returns yii\console\Controller::EXIT_CODE_ERROR in case of failed migration 2014-05-07 03:11:35 +04:00
76d8e2b5b3 code style, fixes #3140 2014-04-17 13:24:16 +02: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
67dd874e0c renamed console controller optoins param $id to $actionId 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
706ab7f968 combine globalOptions() with local options into options($id)
adjust existing Console Controllers and docs
2014-03-09 22:45:04 +01:00
740a769477 improved HelpController with messages for each command 2014-03-06 22:43:57 +01:00
6d72c6a723 fix code style 2014-03-04 06:27:22 +02:00
c047fbe0df fix code style No space found after comma in function call 2014-03-04 05:46:43 +02:00
c5ed024109 fix phpFoc, added missing param 2014-03-04 05:08:40 +02:00
325c7a18c4 improved fixture command 2014-02-09 18:30:49 +04:00
a73953c05b Update FixtureController.php
typo fix
2014-02-06 16:22:39 +02:00
663e898ba7 fixed docs, added checks 2014-02-04 21:00:52 +04:00
cb8fc55a66 removed suffix, since it will be applied later in getFixturesConfig method. 2014-02-04 20:04:00 +04:00
14d303d479 added suffix 2014-02-04 19:56:01 +04:00
0e3fae36a4 added globalFixtures option 2014-02-04 19:54:45 +04:00