Updating project methods to follow core conventions#174
Updating project methods to follow core conventions#174armanist merged 2 commits intosoftberg:masterfrom
Conversation
📝 WalkthroughWalkthroughThe pull request migrates the application type selection from class constants to an enum, replacing Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
shared/Commands/CommandValidationTrait.php (1)
60-68: Remove duplicated docblock abovefirstError().Line 60–63 and Line 65–68 create two consecutive docblocks for the same method. Keep a single block to avoid noisy/misread API docs.
Suggested cleanup
- /** - * Gets the first validation error - * `@return` string|null - */ - /** + * Gets the first validation error * `@return` string|null * `@throws` ConfigException|DiException|LangException|ReflectionException */🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@shared/Commands/CommandValidationTrait.php` around lines 60 - 68, There are two consecutive docblocks for the same method firstError() causing duplicated documentation; remove the redundant/empty docblock (the simple "/** Gets the first validation error */" block) and keep the single comprehensive docblock that includes the return type and `@throws` annotations so the method firstError() has only one accurate PHPDoc entry.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@shared/Commands/UserDeleteCommand.php`:
- Around line 72-74: The exec method in UserDeleteCommand declares a return type
`: void` which conflicts with the base QtCommand::exec() signature; remove the
`: void` from the UserDeleteCommand::exec() declaration so it reads `public
function exec()` to exactly match the parent signature (ensure no other
subclasses keep a differing return type and update the method declaration in the
UserDeleteCommand class accordingly).
---
Nitpick comments:
In `@shared/Commands/CommandValidationTrait.php`:
- Around line 60-68: There are two consecutive docblocks for the same method
firstError() causing duplicated documentation; remove the redundant/empty
docblock (the simple "/** Gets the first validation error */" block) and keep
the single comprehensive docblock that includes the return type and `@throws`
annotations so the method firstError() has only one accurate PHPDoc entry.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: c2bc7029-35fa-4c71-ac41-254c313a7063
📒 Files selected for processing (15)
public/index.phpqtshared/Commands/CommandValidationTrait.phpshared/Commands/CommentCreateCommand.phpshared/Commands/CommentDeleteCommand.phpshared/Commands/DemoCommand.phpshared/Commands/PostCreateCommand.phpshared/Commands/PostDeleteCommand.phpshared/Commands/PostShowCommand.phpshared/Commands/PostUpdateCommand.phpshared/Commands/UserCreateCommand.phpshared/Commands/UserDeleteCommand.phpshared/Commands/UserShowCommand.phptests/Feature/AppTestCase.phptests/bootstrap.php
Summary by CodeRabbit
Bug Fixes
Refactor