Skip to content

Fix PHPStan: integrate getFlacDuration into harvestFlacTags#121

Merged
detain merged 1 commit into
masterfrom
fix/2.2-integrate-getFlacDuration
May 23, 2026
Merged

Fix PHPStan: integrate getFlacDuration into harvestFlacTags#121
detain merged 1 commit into
masterfrom
fix/2.2-integrate-getFlacDuration

Conversation

@detain
Copy link
Copy Markdown
Owner

@detain detain commented May 23, 2026

Summary

  • Created getFlacDurationFromHandle($handle) method to parse FLAC STREAMINFO block from an already-open file handle
  • Refactored harvestFlacTags() to call getFlacDurationFromHandle() instead of inline parsing code
  • Removed unused getFlacDuration() method (was redundant after refactoring)
  • Updated tests to use the new method

Fixes PHPStan error: getFlacDuration() is unused

- Created getFlacDurationFromHandle($handle) method to parse FLAC
  STREAMINFO block from an already-open file handle
- Updated harvestFlacTags() to call getFlacDurationFromHandle() instead
  of inline parsing code, eliminating code duplication
- Removed unused getFlacDuration() method as it was redundant
- Updated tests to use getFlacDurationFromHandle() instead
@detain detain merged commit fd4079e into master May 23, 2026
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@detain detain deleted the fix/2.2-integrate-getFlacDuration branch May 23, 2026 11:48
@codacy-production
Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 medium

Alerts:
⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
1 new issue

Category Results
Complexity 1 medium

View in Codacy

🟢 Metrics -7 complexity · 0 duplication

Metric Results
Complexity -7
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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