On the following files the file doc block is not correct.
- https://api.drupal.org/api/drupal/core!modules!system!tests!src!Kernel!E...
- https://api.drupal.org/api/drupal/core!modules!system!tests!src!Kernel!P...
- https://api.drupal.org/api/drupal/core!tests!Drupal!KernelTests!Core!The...
- https://api.drupal.org/api/drupal/core%21modules%21field%21tests%21src%2...
- https://api.drupal.org/api/drupal/core%21modules%21language%21src%21Test...
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | interdiff.txt | 1.72 KB | laranajim |
| #13 | 2641092-13-wrong-file-doc.patch | 2.87 KB | laranajim |
Comments
Comment #2
chi commentedComment #3
chi commentedComment #4
chi commentedThe following files contain more than one class. Not sure how to deal with such cases. Is it worth to list all classes in file the doc block?
Comment #5
chx commentedRe #4 if PHP would have anonymous classes/interface these would be so. Not mentioning them is great -- nothing should know about them.
Comment #6
mimran commentedComment #7
chi commentedPHP7 does have anonymous classes. We may add respective TODO comments to those files.
http://php.net/manual/language.oop5.anonymous.php
Comment #8
mimran commentedComment #9
laranajim commentedComment #10
laranajim commentedCorrected file doc block. I added additional
Containsto files with multiple classes. The Drupal documentation is not explicit when it comes to files with more than one class. As for the TODO with anonymous classes, can this be done as a follow-up issue?Comment #11
laranajim commentedWoops wrong patch file.
Comment #12
chx commented> I added additional Contains to files with multiple classes. The Drupal documentation is not explicit when it comes to files with more than one class.
It is not -- but I would like you to ask you to remove these. There are things which shouldn't be documented and these are such. They shouldn't exist and documenting them is just polluting the documentation.
Comment #13
laranajim commentedThanks for the review @chx. I have implemented your suggestions.
Comment #14
chx commentedLooks great!
Comment #15
catchCommitted/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!