Skip to content

fix(docs): Refactor attribute documentation in traits.#84

Merged
terabytesoftw merged 5 commits into
mainfrom
fix_mini_30
Feb 15, 2026
Merged

fix(docs): Refactor attribute documentation in traits.#84
terabytesoftw merged 5 commits into
mainfrom
fix_mini_30

Conversation

@terabytesoftw
Copy link
Copy Markdown
Contributor

Pull Request

Q A
Is bugfix? ✔️
New feature?
Breaks BC?

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 15, 2026

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Refactored attribute trait documentation across the codebase to improve IDE support and code clarity through updated annotation practices. Reorganized usage examples and parameter documentation in method docblocks for better readability. These changes enhance developer experience without affecting application functionality.

Walkthrough

Refactors PHPDoc across 60+ trait files: replaces @method static setAttribute(...) annotations with @mixin \UIAwesome\Html\Mixin\HasAttributes, reflows/reorders method docblocks (usage examples, @param/@return placement). Adds a changelog entry. No runtime or public-signature changes.

Changes

Cohort / File(s) Summary
CHANGELOG
CHANGELOG.md
Added entry for refactoring attribute documentation (Bug #84).
Element Traits
src/Element/HasAlt.php, src/Element/HasDecoding.php, src/Element/HasHeight.php, src/Element/HasHref.php, src/Element/HasLoading.php, src/Element/HasPopoverTarget.php, src/Element/HasPopoverTargetAction.php, src/Element/HasReferrerpolicy.php, src/Element/HasSrc.php, src/Element/HasSrcset.php, src/Element/HasUsemap.php, src/Element/HasWidth.php
Replaced @method setAttribute(...) docblocks with @mixin \UIAwesome\Html\Mixin\HasAttributes; reformatted method docblocks and moved/added usage examples and @param/@return lines.
Form Traits
src/Form/HasAccept.php, src/Form/HasAutocomplete.php, src/Form/HasChecked.php, src/Form/HasDirname.php, src/Form/HasForm.php, src/Form/HasList.php, src/Form/HasMax.php, src/Form/HasMaxlength.php, src/Form/HasMin.php, src/Form/HasMinlength.php, src/Form/HasMultiple.php, src/Form/HasPattern.php, src/Form/HasPlaceholder.php, src/Form/HasReadonly.php, src/Form/HasRequired.php, src/Form/HasSize.php, src/Form/HasStep.php
Replaced @method with @mixin \UIAwesome\Html\Mixin\HasAttributes; reorganized docblocks, repositioned usage examples and @param/@return blocks; no signature changes.
Global Traits (part)
src/Global/CanBeAutofocus.php, src/Global/CanBeHidden.php, src/Global/HasAccesskey.php, src/Global/HasClass.php, src/Global/HasContentEditable.php, src/Global/HasDir.php, src/Global/HasDraggable.php, src/Global/HasId.php, src/Global/HasInputMode.php, src/Global/HasLang.php, src/Global/HasMicroData.php, src/Global/HasNonce.php
Swapped @method doclines for @mixin \UIAwesome\Html\Mixin\HasAttributes; added/relocated usage examples and reformatted @param/@return sections; no behavior change.
Global Traits (cont.)
src/Global/HasPopover.php, src/Global/HasRole.php, src/Global/HasSpellcheck.php, src/Global/HasStyle.php, src/Global/HasTabindex.php, src/Global/HasTitle.php, src/Global/HasTranslate.php
Added @mixin \UIAwesome\Html\Mixin\HasAttributes and consolidated usage examples; adjusted docblock formatting and imports (minor).
Root Traits (part)
src/HasAs.php, src/HasBlocking.php, src/HasCharset.php, src/HasContent.php, src/HasCrossorigin.php, src/HasDisabled.php, src/HasDownload.php, src/HasFetchpriority.php, src/HasHreflang.php, src/HasHttpEquiv.php, src/HasImagesizes.php, src/HasImagesrcset.php
Replaced @method annotations with @mixin \UIAwesome\Html\Mixin\HasAttributes; inserted/moved usage examples and reflowed @param/@return blocks.
Root Traits (cont.)
src/HasIntegrity.php, src/HasMedia.php, src/HasName.php, src/HasPing.php, src/HasReferrerpolicy.php, src/HasRel.php, src/HasSizes.php, src/HasSrc.php, src/HasTarget.php, src/HasType.php, src/HasValue.php
Standardized trait docblocks to use @mixin \UIAwesome\Html\Mixin\HasAttributes; reflowed method docblocks and consolidated examples; no code-signature or logic changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

Possibly related PRs

Poem

🐰
I hopped through docblocks, tidy and spry,
swapped methods for mixins, gave examples a try.
Sixty traits now sing in rhyme,
clean annotations, neat in time.
A carrot-cheer for tidy docs — hi-five!

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main change: refactoring attribute documentation in traits throughout the codebase.
Description check ✅ Passed The description relates to the changeset by identifying it as a bugfix with no breaking changes, matching the documentation refactoring work.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix_mini_30

No actionable comments were generated in the recent review. 🎉

📜 Recent review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between aecdc2a and 8d4261f.

📒 Files selected for processing (5)
  • CHANGELOG.md
  • src/Form/HasMin.php
  • src/Global/CanBeAutofocus.php
  • src/Global/HasDraggable.php
  • src/Global/HasTranslate.php
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2026-02-08T20:05:36.407Z
Learnt from: terabytesoftw
Repo: ui-awesome/html-attribute PR: 80
File: src/HasValue.php:35-35
Timestamp: 2026-02-08T20:05:36.407Z
Learning: In the ui-awesome/html-attribute repository, for methods that accept multiple values of the same type (e.g., boolean true/false), document with a single representative example rather than exhaustively listing all variations. This keeps documentation concise while conveying the intended usage. Apply this consistently across PHP docblocks and examples.

Applied to files:

  • src/Global/CanBeAutofocus.php
  • src/Global/HasDraggable.php
  • src/Global/HasTranslate.php
  • src/Form/HasMin.php
📚 Learning: 2026-01-09T16:05:15.502Z
Learnt from: terabytesoftw
Repo: ui-awesome/html-attribute PR: 18
File: tests/Support/Provider/Global/ContentEditableProvider.php:32-33
Timestamp: 2026-01-09T16:05:15.502Z
Learning: Preserve the original copyright year in file headers when moving PHP source files between packages within the ui-awesome repositories (e.g., from ui-awesome/html-core to ui-awesome/html-attribute). Do not update the header year to the current year; keep the original creation year as stated in the header. This applies to all PHP files throughout the repo that are moved between packages.

Applied to files:

  • src/Global/CanBeAutofocus.php
  • src/Global/HasDraggable.php
  • src/Global/HasTranslate.php
  • src/Form/HasMin.php
🔇 Additional comments (7)
src/Global/CanBeAutofocus.php (2)

9-17: LGTM!

The @mixin annotation cleanly replaces the previous @method static approach and is consistent with the PR-wide documentation normalization pattern.


20-31: Docblock looks good — past feedback addressed.

Single representative example for the boolean parameter and clean @param/@return separation.

CHANGELOG.md (1)

57-57: LGTM!

The changelog entry correctly uses the Bug prefix, consistent with the PR metadata (fix(docs) title, "Is bugfix? ✔️").

src/Global/HasDraggable.php (2)

17-17: LGTM!

The @mixin annotation correctly replaces the previous @method static annotation, consistent with the PR-wide refactor pattern.


28-32: LGTM!

Usage examples are concise — one boolean and one enum example — aligned with the repository convention.

src/Global/HasTranslate.php (1)

17-17: LGTM!

The @mixin annotation and trimmed usage examples (one boolean, one enum) are consistent with the repository-wide refactor and documentation conventions.

Also applies to: 28-32

src/Form/HasMin.php (1)

14-14: LGTM!

The @mixin annotation and repositioned @param/@return blocks are consistent with the PR-wide documentation refactor. Docblock alignment is correct.

Also applies to: 32-35

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot added the bug Something isn't working label Feb 15, 2026
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🤖 Fix all issues with AI agents
In `@CHANGELOG.md`:
- Line 57: Update the changelog entry that currently reads "Enh `#84`: Refactor
attribute documentation in traits (`@terabytesoftw`)" to use the bugfix prefix
consistent with the PR metadata — e.g. change "Enh `#84`" to "Bug `#84`" (or "Fix
`#84`") so the entry matches the PR title/description (fix(docs)); locate the
exact string "Enh `#84`: Refactor attribute documentation in traits
(`@terabytesoftw`)" and replace the prefix accordingly.

In `@src/Form/HasMin.php`:
- Line 25: The docblock asterisk on the "Usage example:" line in
src/Form/HasMin.php is misaligned (4 spaces instead of the expected 5), causing
ECS to fail; open the docblock that contains the "Usage example:" text and
correct the indentation of the leading asterisk to match the other docblock
lines (change the leading space count from 4 to 5) so the asterisk aligns with
the rest of the block in the HasMin.php docblock.

In `@src/Global/CanBeAutofocus.php`:
- Around line 23-27: Update the docblock for the CanBeAutofocus trait's
autofocus usage example to show a single representative boolean case: replace
the two-line example that shows both $element->autofocus(true); and
$element->autofocus(false); with a single line demonstrating
$element->autofocus(true); so the doc follows the repository convention for
boolean parameters.

In `@src/Global/HasDraggable.php`:
- Around line 28-33: The docblock examples in HasDraggable (method draggable)
redundantly show both boolean variants; remove one boolean example so the usage
shows a single representative boolean (e.g., $element->draggable(true);) and the
enum example ($element->draggable(Draggable::TRUE);) only, updating the docblock
in src/Global/HasDraggable.php accordingly.

In `@src/Global/HasTranslate.php`:
- Around line 28-33: The usage docs in HasTranslate.php list both boolean
variants for the translate() call; remove one of the boolean examples so only a
single representative boolean usage remains (e.g., keep
$element->translate(true)) while keeping the enum example
($element->translate(Translate::NO)); update the code comment block that
contains the translate() examples accordingly to be concise and consistent with
the repository convention.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f2118c7 and aecdc2a.

📒 Files selected for processing (72)
  • CHANGELOG.md
  • src/Element/HasAlt.php
  • src/Element/HasDecoding.php
  • src/Element/HasHeight.php
  • src/Element/HasHref.php
  • src/Element/HasLoading.php
  • src/Element/HasPopoverTarget.php
  • src/Element/HasPopoverTargetAction.php
  • src/Element/HasReferrerpolicy.php
  • src/Element/HasSrc.php
  • src/Element/HasSrcset.php
  • src/Element/HasUsemap.php
  • src/Element/HasWidth.php
  • src/Form/HasAccept.php
  • src/Form/HasAutocomplete.php
  • src/Form/HasChecked.php
  • src/Form/HasDirname.php
  • src/Form/HasForm.php
  • src/Form/HasList.php
  • src/Form/HasMax.php
  • src/Form/HasMaxlength.php
  • src/Form/HasMin.php
  • src/Form/HasMinlength.php
  • src/Form/HasMultiple.php
  • src/Form/HasPattern.php
  • src/Form/HasPlaceholder.php
  • src/Form/HasReadonly.php
  • src/Form/HasRequired.php
  • src/Form/HasSize.php
  • src/Form/HasStep.php
  • src/Global/CanBeAutofocus.php
  • src/Global/CanBeHidden.php
  • src/Global/HasAccesskey.php
  • src/Global/HasClass.php
  • src/Global/HasContentEditable.php
  • src/Global/HasDir.php
  • src/Global/HasDraggable.php
  • src/Global/HasId.php
  • src/Global/HasInputMode.php
  • src/Global/HasLang.php
  • src/Global/HasMicroData.php
  • src/Global/HasNonce.php
  • src/Global/HasPopover.php
  • src/Global/HasRole.php
  • src/Global/HasSpellcheck.php
  • src/Global/HasStyle.php
  • src/Global/HasTabindex.php
  • src/Global/HasTitle.php
  • src/Global/HasTranslate.php
  • src/HasAs.php
  • src/HasBlocking.php
  • src/HasCharset.php
  • src/HasContent.php
  • src/HasCrossorigin.php
  • src/HasDisabled.php
  • src/HasDownload.php
  • src/HasFetchpriority.php
  • src/HasHreflang.php
  • src/HasHttpEquiv.php
  • src/HasImagesizes.php
  • src/HasImagesrcset.php
  • src/HasIntegrity.php
  • src/HasMedia.php
  • src/HasName.php
  • src/HasPing.php
  • src/HasReferrerpolicy.php
  • src/HasRel.php
  • src/HasSizes.php
  • src/HasSrc.php
  • src/HasTarget.php
  • src/HasType.php
  • src/HasValue.php
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2026-01-09T16:05:15.502Z
Learnt from: terabytesoftw
Repo: ui-awesome/html-attribute PR: 18
File: tests/Support/Provider/Global/ContentEditableProvider.php:32-33
Timestamp: 2026-01-09T16:05:15.502Z
Learning: Preserve the original copyright year in file headers when moving PHP source files between packages within the ui-awesome repositories (e.g., from ui-awesome/html-core to ui-awesome/html-attribute). Do not update the header year to the current year; keep the original creation year as stated in the header. This applies to all PHP files throughout the repo that are moved between packages.

Applied to files:

  • src/Element/HasDecoding.php
  • src/Form/HasSize.php
  • src/HasRel.php
  • src/Element/HasPopoverTargetAction.php
  • src/Form/HasAccept.php
  • src/Element/HasPopoverTarget.php
  • src/Global/HasLang.php
  • src/Element/HasHref.php
  • src/HasTarget.php
  • src/Global/HasTranslate.php
  • src/Form/HasMin.php
  • src/HasHreflang.php
  • src/HasCharset.php
  • src/Form/HasForm.php
  • src/Global/HasDir.php
  • src/HasValue.php
  • src/HasSrc.php
  • src/Element/HasSrc.php
  • src/HasAs.php
  • src/Form/HasPlaceholder.php
  • src/Global/HasContentEditable.php
  • src/Form/HasRequired.php
  • src/Element/HasSrcset.php
  • src/HasBlocking.php
  • src/Global/CanBeAutofocus.php
  • src/HasHttpEquiv.php
  • src/Element/HasReferrerpolicy.php
  • src/Global/HasInputMode.php
  • src/HasReferrerpolicy.php
  • src/Global/HasNonce.php
  • src/HasCrossorigin.php
  • src/Global/CanBeHidden.php
  • src/Form/HasMultiple.php
  • src/HasContent.php
  • src/Element/HasLoading.php
  • src/Global/HasPopover.php
  • src/Element/HasUsemap.php
  • src/Element/HasAlt.php
  • src/HasName.php
  • src/Global/HasRole.php
  • src/HasDownload.php
  • src/Form/HasChecked.php
  • src/Global/HasClass.php
  • src/HasFetchpriority.php
  • src/Form/HasMinlength.php
  • src/Element/HasWidth.php
  • src/HasPing.php
  • src/Form/HasPattern.php
  • src/Global/HasMicroData.php
  • src/Form/HasMax.php
  • src/Global/HasStyle.php
  • src/Form/HasMaxlength.php
  • src/HasImagesrcset.php
  • src/HasDisabled.php
  • src/Form/HasList.php
  • src/Global/HasAccesskey.php
  • src/Global/HasDraggable.php
  • src/Form/HasStep.php
  • src/Element/HasHeight.php
  • src/HasType.php
  • src/Global/HasTitle.php
  • src/HasSizes.php
  • src/Form/HasReadonly.php
  • src/HasMedia.php
  • src/HasIntegrity.php
  • src/Global/HasSpellcheck.php
  • src/Global/HasTabindex.php
  • src/Global/HasId.php
  • src/Form/HasDirname.php
  • src/HasImagesizes.php
  • src/Form/HasAutocomplete.php
📚 Learning: 2026-02-08T20:05:36.407Z
Learnt from: terabytesoftw
Repo: ui-awesome/html-attribute PR: 80
File: src/HasValue.php:35-35
Timestamp: 2026-02-08T20:05:36.407Z
Learning: In the ui-awesome/html-attribute repository, for methods that accept multiple values of the same type (e.g., boolean true/false), document with a single representative example rather than exhaustively listing all variations. This keeps documentation concise while conveying the intended usage. Apply this consistently across PHP docblocks and examples.

Applied to files:

  • src/Element/HasDecoding.php
  • src/Form/HasSize.php
  • src/HasRel.php
  • src/Element/HasPopoverTargetAction.php
  • src/Form/HasAccept.php
  • src/Element/HasPopoverTarget.php
  • src/Global/HasLang.php
  • src/Element/HasHref.php
  • src/HasTarget.php
  • src/Global/HasTranslate.php
  • src/Form/HasMin.php
  • src/HasHreflang.php
  • src/HasCharset.php
  • src/Form/HasForm.php
  • src/Global/HasDir.php
  • src/HasValue.php
  • src/HasSrc.php
  • src/Element/HasSrc.php
  • src/HasAs.php
  • src/Form/HasPlaceholder.php
  • src/Global/HasContentEditable.php
  • src/Form/HasRequired.php
  • src/Element/HasSrcset.php
  • src/HasBlocking.php
  • src/Global/CanBeAutofocus.php
  • src/HasHttpEquiv.php
  • src/Element/HasReferrerpolicy.php
  • src/Global/HasInputMode.php
  • src/HasReferrerpolicy.php
  • src/Global/HasNonce.php
  • src/HasCrossorigin.php
  • src/Global/CanBeHidden.php
  • src/Form/HasMultiple.php
  • src/HasContent.php
  • src/Element/HasLoading.php
  • src/Global/HasPopover.php
  • src/Element/HasUsemap.php
  • src/Element/HasAlt.php
  • src/HasName.php
  • src/Global/HasRole.php
  • src/HasDownload.php
  • src/Form/HasChecked.php
  • src/Global/HasClass.php
  • src/HasFetchpriority.php
  • src/Form/HasMinlength.php
  • src/Element/HasWidth.php
  • src/HasPing.php
  • src/Form/HasPattern.php
  • src/Global/HasMicroData.php
  • src/Form/HasMax.php
  • src/Global/HasStyle.php
  • src/Form/HasMaxlength.php
  • src/HasImagesrcset.php
  • src/HasDisabled.php
  • src/Form/HasList.php
  • src/Global/HasAccesskey.php
  • src/Global/HasDraggable.php
  • src/Form/HasStep.php
  • src/Element/HasHeight.php
  • src/HasType.php
  • src/Global/HasTitle.php
  • src/HasSizes.php
  • src/Form/HasReadonly.php
  • src/HasMedia.php
  • src/HasIntegrity.php
  • src/Global/HasSpellcheck.php
  • src/Global/HasTabindex.php
  • src/Global/HasId.php
  • src/Form/HasDirname.php
  • src/HasImagesizes.php
  • src/Form/HasAutocomplete.php
🪛 GitHub Actions: ecs
src/Form/HasMin.php

[error] 1-1: PHP CS Fixer reported 1 fixable error during ecs check. Run 'vendor/bin/ecs check --fix' to apply the fix.

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: phpunit / PHP 8.3-ubuntu-latest
  • GitHub Check: phpunit / PHP 8.2-windows-2022
  • GitHub Check: phpunit / PHP 8.3-windows-2022
  • GitHub Check: phpunit / PHP 8.5-ubuntu-latest
  • GitHub Check: phpunit / PHP 8.2-ubuntu-latest
  • GitHub Check: phpstan / PHP 8.5-ubuntu-latest
  • GitHub Check: linter / Super Linter
  • GitHub Check: easy-coding-standard / PHP 8.5-ubuntu-latest
  • GitHub Check: linter / Super Linter
🔇 Additional comments (69)
src/Global/HasPopover.php (1)

15-15: LGTM!

The @mixin annotation is correctly added, consistent with the PR-wide documentation refactor.

src/Global/HasInputMode.php (1)

15-15: LGTM!

Consistent @mixin annotation update.

src/HasHttpEquiv.php (1)

16-16: LGTM!

The @mixin annotation and reorganized usage examples are consistent with the PR-wide pattern.

Also applies to: 29-35

src/Global/HasLang.php (1)

16-16: LGTM!

Consistent documentation update with @mixin annotation and usage examples.

Also applies to: 27-33

src/Global/HasClass.php (1)

40-45: LGTM!

The @param and @return annotation repositioning is consistent with the docblock reorganization pattern. The omission of @mixin HasAttributes is correct here since HasClass manages attributes directly rather than delegating to setAttribute().

src/HasImagesizes.php (1)

14-14: LGTM!

Consistent @mixin annotation and docblock reorganization.

Also applies to: 33-37

src/HasFetchpriority.php (1)

15-15: LGTM!

Consistent documentation refactor with @mixin annotation and reorganized usage examples.

Also applies to: 28-34

src/Global/HasRole.php (1)

16-16: LGTM!

Consistent @mixin annotation and usage example documentation updates.

Also applies to: 27-33

src/Form/HasPattern.php (1)

14-14: Documentation updates look good.

The @mixin annotation correctly declares the dependency on \UIAwesome\Html\Mixin\HasAttributes, and the reflowed @param/@return annotations accurately match the method signature. Consistent with the PR-wide docblock standardization.

Also applies to: 31-34

src/HasDownload.php (1)

33-39: Docblock updates are consistent with the PR pattern.

The @param and @return annotations correctly match the method signature. Minor note: the @link on line 39 duplicates the class-level @link on line 15 (both point to the same MDN URL). This is harmless but could be removed to reduce redundancy if desired.

src/Form/HasForm.php (1)

14-14: LGTM.

The @mixin annotation and reflowed @param/@return annotations are correct and consistent with the PR-wide documentation pattern.

Also applies to: 31-34

src/Form/HasReadonly.php (1)

12-12: LGTM.

The @mixin annotation and reflowed @param/@return are correct, matching the bool|null signature and static return type.

Also applies to: 29-33

src/HasCrossorigin.php (1)

15-15: LGTM.

The @mixin annotation is correctly placed, and the new usage examples effectively demonstrate the three main invocation patterns (string literal, enum constant, and null removal). Good documentation improvement.

Also applies to: 28-34

src/HasDisabled.php (1)

12-12: LGTM.

Consistent with the PR-wide docblock standardization. Annotations correctly match the method signature.

Also applies to: 29-33

src/Form/HasSize.php (1)

17-17: LGTM.

The @mixin annotation and reflowed annotations are correct. The @param, @throws, and @return tags accurately document the method's contract and match its signature.

Also applies to: 34-39

src/Form/HasChecked.php (1)

12-12: LGTM.

The @mixin annotation and reflowed @param/@return are correct and consistent with the rest of the PR.

Also applies to: 29-33

src/Form/HasMaxlength.php (1)

14-41: Docblock refactor looks good.

The @mixin annotation correctly documents the dependency on HasAttributes, and the reordered @param/@return placement after the usage example is consistent with the PR-wide pattern.

src/Global/CanBeHidden.php (1)

9-32: LGTM — consistent docblock refactor.

The @mixin annotation and reflowed annotations align with the PR-wide documentation standard.

src/Form/HasAccept.php (1)

11-36: LGTM.

Docblock changes are consistent with the PR-wide refactor pattern.

src/HasValue.php (1)

11-14: LGTM.

The @mixin annotation replacement is consistent with the broader documentation refactor.

src/HasName.php (1)

11-39: LGTM.

Docblock changes follow the established pattern. The {@see} cross-reference to MetaName is a nice touch for IDE discoverability.

src/Element/HasPopoverTargetAction.php (1)

13-39: LGTM.

Consistent @mixin annotation update; the @throws placement between @param and @return is appropriate.

src/HasRel.php (1)

13-42: LGTM.

Docblock updates are consistent. The copyright year (2025) is correctly preserved per repository conventions. Based on learnings: "Preserve the original copyright year in file headers when moving PHP source files between packages within the ui-awesome repositories."

src/HasHreflang.php (1)

11-37: LGTM.

Clean docblock refactor consistent with the rest of the PR.

src/Form/HasMultiple.php (1)

12-12: Docblock refactor looks good.

The @mixin annotation correctly documents the dependency on HasAttributes (which provides setAttribute), and the parameter/return reflow is clean.

Also applies to: 29-33

src/HasType.php (1)

16-16: LGTM.

The @mixin annotation and usage examples are well-structured. The three examples effectively illustrate the distinct value categories (MIME type string, keyword, and null for removal).

Also applies to: 29-35

src/Form/HasMinlength.php (1)

17-17: LGTM.

Consistent @mixin annotation and clean docblock reflow. The @throws annotation is properly preserved in the updated layout.

Also applies to: 34-40

src/Form/HasRequired.php (1)

12-12: LGTM.

Consistent with the documentation refactor pattern across the PR.

Also applies to: 29-33

src/Form/HasDirname.php (1)

14-14: LGTM.

Clean docblock refactor, consistent with the rest of the PR.

Also applies to: 31-34

src/HasPing.php (1)

14-14: LGTM.

Consistent documentation refactor.

Also applies to: 33-36

src/HasAs.php (1)

16-16: LGTM.

Good usage examples demonstrating both the string and enum input paths alongside null for removal. The @mixin annotation and docblock reflow are consistent with the PR pattern.

Also applies to: 29-35

src/Form/HasStep.php (1)

14-14: LGTM.

Consistent documentation refactor. The @param description clearly explains the 'any' keyword and null semantics.

Also applies to: 32-36

src/Global/HasTranslate.php (1)

14-18: LGTM — @mixin annotation is consistent with the PR-wide pattern.

The @mixin annotation correctly communicates to IDEs and static analysis tools that this trait depends on HasAttributes.

src/Global/HasTitle.php (1)

14-34: LGTM — clean docblock reorganization.

The @mixin annotation and reflowed @param/@return annotations are consistent with the rest of the PR.

src/Global/HasNonce.php (1)

14-34: LGTM — consistent with the documentation refactor pattern.

src/Form/HasPlaceholder.php (1)

14-34: LGTM — docblock updates are consistent.

src/HasBlocking.php (1)

15-41: LGTM — well-structured docblock with distinct examples for each input type.

src/Form/HasList.php (1)

14-34: LGTM — consistent docblock refactoring.

src/Form/HasMax.php (1)

14-35: LGTM — the multiple examples are justified here since max supports meaningfully different formats (numeric, date, time).

src/Global/HasTabindex.php (1)

15-15: LGTM — documentation refactor is consistent.

The @mixin annotation and PHPDoc reflow follow the established pattern across the PR. No functional changes.

Also applies to: 32-38

src/HasImagesrcset.php (1)

14-14: LGTM — consistent documentation update.

Also applies to: 32-36

src/Global/HasDir.php (1)

15-15: LGTM — usage examples consolidated and @mixin annotation added consistently.

Also applies to: 26-32

src/Form/HasAutocomplete.php (1)

14-14: LGTM — consistent with the broader documentation refactor.

Also applies to: 32-35

src/HasTarget.php (1)

15-15: LGTM — documentation update follows the established pattern.

Also applies to: 28-34

src/Global/HasContentEditable.php (1)

17-17: LGTM — @mixin annotation and usage example placement are consistent.

Also applies to: 28-34

src/Global/HasMicroData.php (1)

14-14: LGTM — all five microdata method docblocks are consistently reformatted.

The @mixin annotation and uniform blank-line separation between @param, @return, and @link tags across itemId, itemProp, itemRef, itemScope, and itemType look good.

Also applies to: 29-34, 49-54, 69-74, 89-94, 109-114

src/HasContent.php (1)

14-14: LGTM — consistent documentation refactor.

Also applies to: 33-36

src/HasCharset.php (1)

14-43: Documentation refactor looks good.

The @mixin annotation correctly replaces the previous @method hint, and the usage examples within the method docblock are well-structured, showing string, enum, and null variants.

src/HasIntegrity.php (1)

14-37: LGTM — consistent documentation update.

src/Global/CanBeAutofocus.php (1)

12-31: Mixin annotation and docblock reflow look correct.

The @mixin annotation and repositioned @param/@return tags are consistent with the rest of the PR.

src/HasReferrerpolicy.php (1)

16-42: LGTM — clean documentation refactor with usage examples covering string, enum, and null.

src/HasMedia.php (1)

14-36: LGTM — consistent with the broader documentation refactor.

src/HasSizes.php (1)

14-36: LGTM — documentation changes are well-structured and consistent.

src/Global/HasAccesskey.php (1)

14-33: LGTM — mixin annotation and docblock formatting are consistent with the PR pattern.

src/Global/HasId.php (1)

14-33: LGTM — clean and consistent documentation update.

src/Global/HasStyle.php (1)

14-14: Docblock refactor looks good.

The @mixin annotation and reflowed @param/@return/@phpstan-param tags are consistent with the broader PR pattern. The @phpstan-param providing a more specific array type is a nice touch.

Also applies to: 45-51

src/Global/HasSpellcheck.php (1)

16-16: LGTM.

Docblock changes are consistent with the PR-wide refactor. The @throws annotation is correctly preserved for the validation logic.

Also applies to: 32-37

src/Element/HasPopoverTarget.php (1)

14-14: LGTM. Consistent @mixin annotation and well-structured docblock.

src/Element/HasHeight.php (1)

14-14: LGTM. Docblock changes are consistent with the PR pattern.

Also applies to: 32-36

src/HasSrc.php (1)

14-14: LGTM. Clean refactor, consistent with other files.

Also applies to: 33-36

src/Element/HasReferrerpolicy.php (1)

16-16: LGTM. The new usage example block with string, enum, and null variants is helpful. Docblock structure is consistent with the rest of the PR.

Also applies to: 32-37

src/Element/HasHref.php (1)

14-14: LGTM — consistent docblock refactor.

The @mixin annotation and reflowed @param/@return placement align with the broader PR pattern. No functional changes.

Also applies to: 33-36

src/Element/HasAlt.php (1)

14-14: LGTM.

Also applies to: 31-35

src/Element/HasWidth.php (1)

14-14: LGTM.

Also applies to: 33-37

src/Element/HasDecoding.php (1)

16-16: LGTM — usage example and mixin annotation cleanly added.

Also applies to: 28-34

src/Element/HasSrc.php (1)

14-14: LGTM.

Also applies to: 31-34

src/Element/HasSrcset.php (1)

13-13: LGTM.

Also applies to: 32-36

src/Element/HasUsemap.php (1)

14-14: LGTM.

Also applies to: 30-34

src/Element/HasLoading.php (1)

16-16: LGTM — usage example consolidated and mixin annotation added consistently.

Also applies to: 28-34

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

Comment thread CHANGELOG.md Outdated
Comment thread src/Form/HasMin.php Outdated
Comment thread src/Global/CanBeAutofocus.php
Comment thread src/Global/HasDraggable.php
Comment thread src/Global/HasTranslate.php
@terabytesoftw
Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 15, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@terabytesoftw terabytesoftw merged commit 62d9d86 into main Feb 15, 2026
33 checks passed
@terabytesoftw terabytesoftw deleted the fix_mini_30 branch February 15, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant