86 Commits

Author SHA1 Message Date
7565d337f3 Exclude phpdoc fixes for Codeception generated files 2025-02-13 23:32:02 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
dd1ed636ae Remove redundand comments in PhpDocController (#18968) 2021-10-22 00:05:41 +03:00
728e910baf Typo PHPDoc (#18939)
Typo PHPDoc

Co-authored-by: toir427 <t.tuychiev@safenetpay.com>
Co-authored-by: Bizley <pawel@positive.codes>
2021-10-08 09:02:19 +02:00
dcd86f9234 Avoid double spaces before "and" in phpdoc of virtual properties 2021-01-14 13:13:48 +03:00
ff0760142d Tolerate errors during fixing phpdoc 2020-12-28 00:16:02 +03:00
b8f4958092 Fix #18442: Fix calls with array access to strings 2020-12-23 01:08:58 +03:00
eb65069312 Fix property check in phpdoc command 2020-11-10 23:15:08 +03:00
801ac17657 Fix #16077: Improved phpdoc generation for class properties (#18319)
When generating documentation, the `@property-read` and
`@property-write` tags are set to the magic properties of classes
2020-10-07 01:12:10 +03:00
7ceb5b5317 Do not quit php-doc on fatal errors in files 2020-07-21 21:46:34 +03:00
e1757bd95d Skip Object when fixing properties 2020-07-20 02:40:45 +03:00
91fabfd554 Fix generating property docs by a build script 2020-07-20 02:25:23 +03:00
2e3c176041 Fix phpdoc generation error on non-namespaced classes 2020-01-17 16:42:09 +03:00
a3f4e855b4 Build command phpdoc fixer is now compatible with PHP 7.2+ 2019-03-17 20:38:27 +03:00
ed64d65886 release version 2.0.16 2019-01-31 00:54:16 +01:00
ecf3ef8bf9 Use root NS specification for opcoded functions 2018-02-08 00:00:36 +03:00
db0b7da6d3 hashing at PhpDocController improved 2018-02-02 16:41:15 +02:00
ab10e43195 picking-up path from composer autoload added to PhpDocController 2018-02-01 18:32:44 +02:00
67f67e3a69 SCA with Php Inspections (EA Extended) (#15571) 2018-01-29 17:08:57 +07: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
0c0942d6e2 Enable phpdoc_add_missing_param_annotation rule in php-cs-fixer config. (#14681) [skip ci] 2017-08-21 01:57:23 +03:00
393fc2744a Added yii\base\Object for backwards compatibility
fixes #7936
close #14478
2017-07-19 10:53:33 +02:00
a50d9d8e3e Enable include rule in php-cs-fixer (#14418) 2017-07-10 13:19:57 +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
6397791513 Fixed whitespaces to match code style [skip ci] 2017-03-14 09:42:13 +03:00
a182ce57fc Fixes for issues found with Static Code Analysis with Php Inspections (EA Extended) (#13606)
* Php Inspections (EA Extended): language level migration fixes
* Php Inspections (EA Extended): instanceof a trait always return false
* Php Inspections (EA Extended): fixed preg_quote (/ is not escaped by default)
* Php Inspections (EA Extended): fixed a greedy regex
* Php Inspections (EA Extended): refereted instanceof self in a trait
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): more greedy regexes fixed
2017-02-22 17:07:52 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
dc7c3779a0 fixed phpdoc controller to not crash on non-instantiable classes
this happens with codeception classes that are auto generated, they
shoud not be changed by phpdoc controller anyway.
2016-10-20 14:39:57 +02:00
ff871bdf48 adjuste PHPdoc controller to use short form types 2016-10-20 13:53:06 +02:00
cf54dec00d application release automation 2016-04-28 18:33:21 +02:00
101ec4fb59 fix phpdoc controller for empty interfaces 2016-04-28 16:42:17 +02:00
7e5fa258b8 adjusted phpdoc controller for gii 2016-03-20 17:43:13 +01:00
512bd45426 release controller enhancements 2016-03-17 05:51:31 +01:00
6e4aaaa31b finished automated extension releases 2016-03-17 03:54:44 +01: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
9b5f6cb188 prepare for 2.0.7 release
- adjust version
- build classmap
- build phpdoc @property annotations
- build mime-type file
2016-02-14 15:45:55 +01:00
00ca1cb4b3 Fixes #4914 2014-09-04 03:27:13 +04:00
88d38b7820 Fixes #4501: Renamed the constant YII_PATH to YII2_PATH 2014-08-14 22:17:05 -04:00
7736853837 property code style extensions 2014-07-30 00:40:46 +02:00
100ba6c3ab Replaced substr_compare with strncmp where possible 2014-07-30 02:32:47 +04:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
5976d1c576 added property spacing to code style fixer 2014-07-30 00:21:31 +02:00
1c414caace Improved checks where substr_compare is used, replaced more substr + comapre cases with substr_compare 2014-07-30 02:15:08 +04:00
3c6239f9f7 Revert "Used substr_compare instead of substr when we don't care about result"
This reverts commit 07f01bcf2bb7725eab00cd5a22cc0c79161702b2.

BUT ONLY for the /build directory!
2014-07-29 22:04:24 +02:00
07f01bcf2b Used substr_compare instead of substr when we don't care about result 2014-07-23 16:37:49 +04:00
6578cfbdab updated phpdoc and classmap 2014-06-25 18:24:23 +02:00
3437c571a1 phpdoc controller did not find some setters
fixes #3255
2014-04-26 13:03:08 +02:00
c27ac8ef0e updated phpdoc 2014-04-26 03:39:46 +02:00