-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance PHPDoc #463
base: 4.6
Are you sure you want to change the base?
Enhance PHPDoc #463
Conversation
Don't use advanced format in summary, it won't be rendered.
Don't use advanced format in summary, it won't be rendered. Define array key type, or it will be rendered as array<string|int, …> phpDocumentor don't seem to understand self.
@@ -53,12 +55,12 @@ class DateMetadata extends Criterion implements TrashCriterion, FilteringCriteri | |||
]; | |||
|
|||
/** | |||
* Creates a new DateMetadata criterion on $metadata. | |||
* Creates a new DateMetadata criterion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find such property in the contracts namespace. (I may haven't look well enough in the namespace.) It might not be in this contracts namespace, and hidden by abstraction. If no link can be made to it, it probably don't worth being mentioned.
One docblock per constant.
- Describes a bit more `getProperties` - Details `getProperties` param type and returned type - Hides link to internal function - Uses `@internal` as a short for "@ignore This method is for internal use" - Fixes internal links
Quality Gate passedIssues Measures |
Related PRs:
Description:
{@see
tagsarray<string|int,
rendering.<code>
rendered as a single line.@see
syntax to have a working link.self
to have a link (to the current page, debatable, it could also be$this
).ValueObject
: Replace@ignore This method is for internal use
with the dedicated@internal
, fix some@uses
tags.Preview
Preview is build on top of ibexa/documentation-developer#2584.
But the following comparisons focus on the improvements brought by the packages' PRs.
Ibexa\Contracts\Core\FieldType\FieldType
array()
syntax.[]
syntax.Ibexa\Contracts\Core\FieldType\Generic\Type
checkValueType()
makes a not-clickable reference toacceptValue()
.checkValueType()
a working link toacceptValue()
.Ibexa\Contracts\Core\FieldType\Generic\ValidationError\ConstraintViolationAdapter
@see
tags in its introduction and<meta name="description"
because the summary line can't have advanced format.@see
rendered as links to references.Ibexa\Contracts\Core\Limitation\Target\Builder\VersionBuilder
@see
tags in its introduction, and somestring|int
untyped array keys.Ibexa\Contracts\Core\Limitation\Type
ACCESS_GRANTED
which, in fact, is a description for the threeACCESS_
constants (grouped docblock doesn't exist and because of alphabetic order, the description ends after what it introduces), about the same forVALUE_SCHEMA_
constants, a not-rendered@see
, and a not typed array key.Ibexa\Contracts\Core\Repository\LocationService
@see
, and untyped array keys.count()
, a working link in its description, typed keys on several arrays.Ibexa\Contracts\Core\Repository\SearchService
@see
.CAPABILITY_CUSTOM_FIELDS
, new summaries, and more links.Ibexa\Contracts\Core\Repository\Values\Content\Location
@deprecated
not rendered because wrongly nested.@property-read
) creates duplicates: it's declared twice in the PHP code, and documented twice in the reference. This is an issue I'll come back to later.Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion
@see
, misses links to properties and constants, and has an example rendered as a single line.Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\DateMetadata
DateMetadata::TRASHED
toTrashService::findTrashItems()
, and more links in general.Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\UserMetadata
Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Operator\Specifications
Criterion::getSpecifications()
without a link.Criterion::getSpecifications()
is added with an inline tag instead of a separated tag below.Ibexa\Contracts\Core\Repository\Values\ValueObject
ValueObject::attributes()
, has not-typed array keys,Ibexa\Contracts\Core\Search\Capable
@see
in its summary.SearchService
helps to see theCAPABILITY_
constants.For QA:
Documentation: