Duplicate Annotations in Core Files #2583
Replies: 3 comments 23 replies
-
I don't know why we have body category and package, probably category is meant to be in a project where there are both openmage and other softwares? |
Beta Was this translation helpful? Give feedback.
-
Good observation. From the first comment block I would keep the On the On the The new order should be:
|
Beta Was this translation helpful? Give feedback.
-
My PR just added docblocks in the same way they are used all over openmage - to group classes in phpdocumentor correctly. I did not test, but having package in both blocks seems not required ... but ... why??? |
Beta Was this translation helpful? Give feedback.
-
While updating our shop to the most recent version and then again in PR #2577 we noticed, that in core files the category and package annotations are duplicated, first in the license docblock and then after that in the class docblock. Isn't that redundant? Couldn't one occurrence be removed?
I'm asking this questions instead of already working on a PR because we noticed that those duplicates aren't only accidentally present in existing files but are actively added in PRs e.g. the one mentioned above. Maybe there is reason for this duplication that I'm not aware of.
example:
Beta Was this translation helpful? Give feedback.
All reactions