Skip to content

Fix PHP code style in documentation snippets#8191

Merged
dereuromark merged 3 commits into5.xfrom
fix/php-code-style-docs
Jan 29, 2026
Merged

Fix PHP code style in documentation snippets#8191
dereuromark merged 3 commits into5.xfrom
fix/php-code-style-docs

Conversation

@dereuromark
Copy link
Member

@dereuromark dereuromark commented Jan 29, 2026

Summary

Fixes PHP coding standards issues in code snippets across 61 documentation files:

  • Add missing trailing commas in multi-line arrays (399 fixes)
  • Fix 2-space and 3-space indentation to 4-space in PHP code blocks (106 automated + manual fixes)

Blocks inside /* */ comments showing print_r output and non-PHP content are intentionally left untouched.

Most affected files: query-builder.md, form.md, testing.md, routing.md, schema-system.md, collections.md, hash.md, html.md.

@dereuromark dereuromark marked this pull request as draft January 29, 2026 02:43
- Add missing trailing commas in multi-line arrays (399 fixes)
- Fix 2-space and 3-space indentation to 4-space in PHP code blocks
- Manual fixes for edge cases (string keys containing '#', odd indent)

Blocks inside /* */ comments showing print_r output and non-PHP content
are intentionally left untouched.
@dereuromark dereuromark force-pushed the fix/php-code-style-docs branch from bb1902e to 94bf375 Compare January 29, 2026 02:55
@dereuromark dereuromark marked this pull request as ready for review January 29, 2026 03:15
@dereuromark dereuromark requested a review from josbeir January 29, 2026 03:22
@dereuromark dereuromark merged commit 18e7ea4 into 5.x Jan 29, 2026
5 checks passed
@dereuromark dereuromark deleted the fix/php-code-style-docs branch January 29, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants