Skip to content

馃摑 Add docstrings to refactor/process-service-replacement - #39

Merged
loadinglucian merged 1 commit into
refactor/process-service-replacementfrom
coderabbitai/docstrings/89bfb8a
Oct 11, 2025
Merged

馃摑 Add docstrings to refactor/process-service-replacement#39
loadinglucian merged 1 commit into
refactor/process-service-replacementfrom
coderabbitai/docstrings/89bfb8a

Conversation

@coderabbitai

@coderabbitai coderabbitai Bot commented Oct 11, 2025

Copy link
Copy Markdown
Contributor

Docstrings generation was requested by @lucianvacaroiu.

The following files were modified:

  • app/Contracts/BaseCommand.php
  • app/DTOs/SiteDTO.php
  • app/Repositories/SiteRepository.php
  • app/Services/ProcessService.php
  • app/Services/VersionService.php
  • tests/Fixtures/TestConsoleCommand.php
  • tests/TestHelpers.php
These files were ignored
  • tests/Unit/Contracts/BaseCommandTest.php
  • tests/Unit/DTOs/SiteDTOTest.php
  • tests/Unit/Repositories/SiteRepositoryTest.php
  • tests/Unit/Services/ProcessServiceTest.php
鈩癸笍 Note

CodeRabbit cannot perform edits on its own pull requests yet.

Docstrings generation was requested by @lucianvacaroiu.

* https://github.com/bigpixelrocket/deployer-php/pull/38#issuecomment-3393662882

The following files were modified:

* `app/Contracts/BaseCommand.php`
* `app/DTOs/SiteDTO.php`
* `app/Repositories/SiteRepository.php`
* `app/Services/ProcessService.php`
* `app/Services/VersionService.php`
* `tests/Fixtures/TestConsoleCommand.php`
* `tests/TestHelpers.php`
@coderabbitai

coderabbitai Bot commented Oct 11, 2025

Copy link
Copy Markdown
Contributor Author

Important

Review skipped

CodeRabbit bot authored PR detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@loadinglucian
loadinglucian merged commit c8aface into refactor/process-service-replacement Oct 11, 2025
4 of 5 checks passed
@loadinglucian
loadinglucian deleted the coderabbitai/docstrings/89bfb8a branch October 11, 2025 21:21
loadinglucian added a commit that referenced this pull request Oct 11, 2025
* refactor(process): replace ProcessFactory with ProcessService

Replace the ProcessFactory class with ProcessService to provide a more standardized service layer implementation with dependency injection support and better testability. The new service encapsulates process execution logic while maintaining the same interface compatibility.

* feat(site): add SiteDTO and SiteRepository

Introduce SiteDTO for site configuration data and SiteRepository for inventory management. This establishes foundational components for site-related functionality, following the same pattern as server management.

* refactor(command): update BaseCommand and testing helpers

Update BaseCommand with improved console output and input methods. Adjust test fixtures and helpers to maintain compatibility and enhance test isolation for command testing.

* refactor(process): remove ProcessFactory and its test

Remove the deprecated ProcessFactory class and corresponding test file following successful replacement with ProcessService.

* fix(version): minor updates to VersionService

Apply small fixes and improvements to the VersionService implementation for better reliability and consistency with service layer patterns.

* refactor: make ProcessService timeout parameter non-nullable

- Changed timeout parameter from ?float to float in ProcessService::run()
- Removed null coalescing operator since parameter cannot be null
- Fixed test to omit parameter instead of passing null when testing default behavior
- All existing usages already rely on default value without passing null

* 馃摑 Add docstrings to `refactor/process-service-replacement` (#39)

Docstrings generation was requested by @lucianvacaroiu.

* https://github.com/bigpixelrocket/deployer-php/pull/38#issuecomment-3393662882

The following files were modified:

* `app/Contracts/BaseCommand.php`
* `app/DTOs/SiteDTO.php`
* `app/Repositories/SiteRepository.php`
* `app/Services/ProcessService.php`
* `app/Services/VersionService.php`
* `tests/Fixtures/TestConsoleCommand.php`
* `tests/TestHelpers.php`

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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