Skip to content

fix(phpcs): clear PageController + ResponseHelper formatting errors blocking release#75

Merged
rubenvdlinde merged 1 commit intodevelopmentfrom
fix/phpcs-controller-formatting
May 1, 2026
Merged

fix(phpcs): clear PageController + ResponseHelper formatting errors blocking release#75
rubenvdlinde merged 1 commit intodevelopmentfrom
fix/phpcs-controller-formatting

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

Summary

Unblocks PR #72 (release: development → beta) which is failing on `quality / PHP Quality (phpcs)`.

  • `lib/Controller/ResponseHelper.php` — phpcbf autofix for docblock parameter alignment (4 errors fixed).
  • `lib/Controller/PageController.php` — phpcbf autofix for docblock alignment (13 errors fixed) + manual rewrite of an inline ternary on line 101 into an explicit `if`-block. The original 136-char line also exceeded the 125-char limit; the rewrite resolves both.

After the change `composer phpcs` (i.e. `./vendor/bin/phpcs --standard=phpcs.xml`) reports zero errors across all 49 scanned files.

Test plan

  • `./vendor/bin/phpcs --standard=phpcs.xml` clean
  • CI `quality / PHP Quality (phpcs)` green
  • Existing tests still pass (no behaviour change — only formatting + control-flow refactor)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

Quality Report — ConductionNL/mydash @ 6076362

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 342/342
PHPUnit ⏭️
Newman ⏭️
Playwright ⏭️

Quality workflow — 2026-05-01 06:11 UTC

Download the full PDF report from the workflow artifacts.

…eHelper

- Apply phpcbf autofix for parameter-name + type spacing alignment
  in the docblocks (17 violations).
- Replace the inline ternary on PageController:101 with an explicit
  if-block; inline IF statements are blocked by the project sniffs and
  the line was 136 chars (over the 125 limit).

Unblocks the release PR (#72) which was failing the
`quality / PHP Quality (phpcs)` check.
@rubenvdlinde rubenvdlinde force-pushed the fix/phpcs-controller-formatting branch from d6f50c8 to 140bf22 Compare May 1, 2026 08:00
@rubenvdlinde rubenvdlinde merged commit 818f29c into development May 1, 2026
16 of 19 checks passed
@rubenvdlinde rubenvdlinde deleted the fix/phpcs-controller-formatting branch May 1, 2026 08:01
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

Quality Report — ConductionNL/mydash @ cbd68b8

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 342/342
PHPUnit ⏭️
Newman ⏭️
Playwright ⏭️

Quality workflow — 2026-05-01 08:01 UTC

Download the full PDF report from the workflow artifacts.

rubenvdlinde added a commit that referenced this pull request May 3, 2026
…eHelper (#75)

- Apply phpcbf autofix for parameter-name + type spacing alignment
  in the docblocks (17 violations).
- Replace the inline ternary on PageController:101 with an explicit
  if-block; inline IF statements are blocked by the project sniffs and
  the line was 136 chars (over the 125 limit).

Unblocks the release PR (#72) which was failing the
`quality / PHP Quality (phpcs)` check.
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.

1 participant