Skip to content

quality-debt: inc/ui/class-login-form-element.php — PR #380 review feedback (medium) #403

Description

@superdav42

Unactioned Review Feedback

Source PR: #380
File: inc/ui/class-login-form-element.php
Reviewers: coderabbit
Findings: 1
Max severity: medium


MEDIUM: coderabbit (coderabbitai[bot])

File: inc/ui/class-login-form-element.php:835
⚠️ Potential issue | 🟡 Minor

Fix PHPCS block-comment spacing to keep quality checks green.

Line 828 triggers the reported check failure (“Empty line required before block comment”). Add a blank line before the block comment.

Proposed fix
 			$fields['lost-password'] = [
 				'type'            => 'html',
+
 				/*
 				 * Use wp_lostpassword_url() so the lostpassword_url filter
 				 * keeps users on their subsite domain instead of redirecting
🧰 Tools
🪛 GitHub Check: Code Quality Checks

[failure] 828-828:
Empty line required before block comment

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@inc/ui/class-login-form-element.php` around lines 828 - 835, The PHPCS
failure is caused by missing blank line before the block comment above the
'content' array entry in class-login-form-element.php; open the code around the
'content' => sprintf(... wp_lostpassword_url() ...) line and insert a single
empty line immediately before the /* block comment so there is a blank line
separating the previous code and the comment, then keep the comment and the
'content' assignment unchanged to satisfy the “Empty line required before block
comment” rule.

✅ Addressed in commit 85bce43

View comment


Auto-generated by quality-feedback-helper.sh scan-merged. Review each finding and either fix the code or dismiss with a reason.

Metadata

Metadata

Assignees

Labels

priority:mediumMedium severity — moderate quality issuequality-debtUnactioned review feedback from merged PRssource:review-feedbackAuto-created by quality-feedback-helper.sh

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions