I assume that we are now in code cleanup phase. I use PhpStorm to find possible bugs and problems in the Drupal 8 core. Normally I will not alter code flow. If I find problems in a file, which I will not fix, but find suspicious. I'll mention it in the text here.
For changes in the PHP Documentation I use this node as guide: http://drupal.org/node/1354
Checked: theme.inc file.
I added a lot of types to signatures and Doxygen.
I also added here an there alternate return statements to reflect the expected behavior. Fingers crossed that it will not break.
I still have 4 warnings from PhpStorm that 4 variables might not be declared when first used. I ignored these warnings in that patch.
| Comment | File | Size | Author |
|---|---|---|---|
| drupal_core-php_cleanup_doc_cleanup-theme.inc_.patch | 34.55 KB | ro-no-lo |
Comments
Comment #1
ro-no-lo commentedComment #2
jhodgdonThis patch is not purely documentation.
Comment #3
ro-no-lo commentedI am sorry if I did not choosed the correct task for that. I am still learning :-)
Comment #4
enhdless commentedThe patch failed to apply. A reroll is needed.
Comment #16
quietone commented@ro-no-lo, Thanks for the patch. However, we have a number of issues dealing with coding standards fixes and the community has decided that the best way to approach this is by fixing a rule at a time, rather than a file at a time. See #2571965: [meta] Fix PHP coding standards in core, stage 1 for the meta issue where this effort is being organized,
The work in this issue covers several sniffs/issues. I am closing it as a duplicate of #3207949: Fix Drupal.Commenting.FunctionComment.MissingParamType and adding credit over there.
Comment #17
quietone commented