-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: second stage - InitCommand cleanup #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 19624432503Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the InitCommand class by extracting README generation logic into a dedicated ReadmeGenerator class, improving code organization and maintainability.
Key Changes:
- Introduced
ReadmeGeneratorclass to handle all README-related operations - Reorganized
InitCommandproperties and methods for better logical grouping - Updated test mocks to reflect the new separation of concerns
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
src/Generators/ReadmeGenerator.php |
New class extracting README generation logic from InitCommand |
src/Commands/InitCommand.php |
Refactored to use ReadmeGenerator and reorganized method/property order |
tests/InitCommandTest.php |
Updated mocks to separate InitCommand and ReadmeGenerator namespace calls |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
@artengin let's proceed with this after the first stage will be merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Commands/InitCommand.php
Outdated
| 'DB_CONNECTION' => $this->defaulDBConnectionConfig['driver'], | ||
| 'DB_HOST' => $this->defaulDBConnectionConfig['host'], | ||
| 'DB_PORT' => $this->defaulDBConnectionConfig['port'], | ||
| 'DB_DATABASE' => $this->defaulDBConnectionConfig['database'], | ||
| 'DB_USERNAME' => $this->defaulDBConnectionConfig['username'], |
Copilot
AI
Nov 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in property name: defaulDBConnectionConfig should be defaultDBConnectionConfig (missing 't'). This is used throughout the method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback
src/Commands/InitCommand.php
Outdated
| 'CACHE_STORE' => 'redis', | ||
| 'QUEUE_CONNECTION' => 'redis', | ||
| 'SESSION_DRIVER' => 'redis', | ||
| 'DB_CONNECTION' => $this->defaulDBConnectionConfig['driver'], |
Copilot
AI
Nov 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in property name: defaulDBConnectionConfig should be defaultDBConnectionConfig (missing 't').
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Refs: #67