Skip to content

audit: duplicate function in data-machine (14) #674

@github-actions

Description

@github-actions

Audit: duplicate function

Component: data-machine
Count: 14 findings
Last run: https://github.com/Extra-Chill/data-machine/actions/runs/24934063030
Updated: 2026-04-25T15:43:22Z
Homeboy: homeboy 0.93.0+3fb3fc16 | Action: Extra-Chill/homeboy-action@v2

Findings

File Description Suggestion
inc/Abilities/File/AgentFileAbilities.php Duplicate function filename_to_label — also in inc/Engine/AI/MemoryFileRegistry.php Function filename_to_label has identical body in 2 files. Extract to a shared module and import it.
inc/Core/OAuth/OAuth1Handler.php Duplicate function redirect_with_error — also in inc/Core/OAuth/OAuth2Handler.php Function redirect_with_error has identical body in 2 files. Extract to a shared module and import it.
inc/Core/OAuth/OAuth1Handler.php Duplicate function redirect_with_success — also in inc/Core/OAuth/OAuth2Handler.php Function redirect_with_success has identical body in 2 files. Extract to a shared module and import it.
inc/Core/OAuth/OAuth2Handler.php Duplicate function redirect_with_error — also in inc/Core/OAuth/OAuth1Handler.php Function redirect_with_error has identical body in 2 files. Extract to a shared module and import it.
inc/Core/OAuth/OAuth2Handler.php Duplicate function redirect_with_success — also in inc/Core/OAuth/OAuth1Handler.php Function redirect_with_success has identical body in 2 files. Extract to a shared module and import it.
inc/Core/Steps/Fetch/Handlers/FetchHandler.php Duplicate function httpDelete — also in inc/Core/Steps/Publish/Handlers/PublishHandler.php Function httpDelete has identical body in 2 files. Extract to a shared module and import it.
inc/Core/Steps/Fetch/Handlers/FetchHandler.php Duplicate function httpPost — also in inc/Core/Steps/Publish/Handlers/PublishHandler.php Function httpPost has identical body in 2 files. Extract to a shared module and import it.
inc/Core/Steps/Fetch/Handlers/FetchHandler.php Duplicate function httpRequest — also in inc/Core/Steps/Publish/Handlers/PublishHandler.php Function httpRequest has identical body in 2 files. Extract to a shared module and import it.
inc/Core/Steps/Publish/Handlers/PublishHandler.php Duplicate function httpDelete — also in inc/Core/Steps/Fetch/Handlers/FetchHandler.php Function httpDelete has identical body in 2 files. Extract to a shared module and import it.
inc/Core/Steps/Publish/Handlers/PublishHandler.php Duplicate function httpPost — also in inc/Core/Steps/Fetch/Handlers/FetchHandler.php Function httpPost has identical body in 2 files. Extract to a shared module and import it.
inc/Core/Steps/Publish/Handlers/PublishHandler.php Duplicate function httpRequest — also in inc/Core/Steps/Fetch/Handlers/FetchHandler.php Function httpRequest has identical body in 2 files. Extract to a shared module and import it.
inc/Engine/AI/MemoryFileRegistry.php Duplicate function filename_to_label — also in inc/Abilities/File/AgentFileAbilities.php Function filename_to_label has identical body in 2 files. Extract to a shared module and import it.
tests/daily-memory-conservation-smoke.php Duplicate function do_action — also in tests/queueable-trait-smoke.php Function do_action has identical body in 2 files. Extract to a shared module and import it.
tests/queueable-trait-smoke.php Duplicate function do_action — also in tests/daily-memory-conservation-smoke.php Function do_action has identical body in 2 files. Extract to a shared module and import it.

Autofix status

✅ 266/14 findings auto-fixable

  • All fixes are plan-only (preview, needs human review)
    Run: homeboy refactor data-machine --from audit --write --only duplicate_function

Updated automatically by Homeboy Action on each CI run until resolved.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions