[PR #1830] [CLOSED] feat: replace attempt() with built-in rescue() #1892

Closed
opened 2026-02-26 03:32:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/koel/koel/pull/1830
Author: @phanan
Created: 9/30/2024
Status: Closed

Base: masterHead: attempt-to-rescue


📝 Commits (1)

  • 875f04f feat: replace attempt() with built-in rescue()

📊 Changes

20 files changed (+43 additions, -65 deletions)

View changed files

📝 app/Casts/SmartPlaylistRulesCast.php (+3 -5)
📝 app/Helpers.php (+5 -26)
📝 app/Http/Controllers/API/AuthController.php (+1 -1)
📝 app/Http/Integrations/Spotify/SpotifyClient.php (+1 -1)
📝 app/Listeners/WriteSyncLog.php (+1 -1)
📝 app/Models/SongZipArchive.php (+1 -1)
📝 app/Observers/AlbumObserver.php (+1 -1)
📝 app/Repositories/Repository.php (+1 -1)
📝 app/Rules/ImageData.php (+2 -2)
📝 app/Rules/SupportedAudioFile.php (+2 -2)
📝 app/Rules/ValidSmartPlaylistRulePayload.php (+1 -1)
📝 app/Services/ApplicationInformationService.php (+1 -1)
📝 app/Services/FileScanner.php (+3 -3)
📝 app/Services/ITunesService.php (+1 -1)
📝 app/Services/LastfmService.php (+5 -5)
📝 app/Services/MediaInformationService.php (+2 -2)
📝 app/Services/MediaMetadataService.php (+3 -3)
📝 database/migrations/2021_06_04_153259_convert_user_preferences_from_array_to_json.php (+2 -2)
📝 database/migrations/2022_08_04_092531_drop_contributing_artist_id.php (+2 -2)
📝 tests/Unit/Rules/ValidSmartPlaylistRulePayloadTest.php (+5 -4)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/koel/koel/pull/1830 **Author:** [@phanan](https://github.com/phanan) **Created:** 9/30/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `attempt-to-rescue` --- ### 📝 Commits (1) - [`875f04f`](https://github.com/koel/koel/commit/875f04f6b7fdd0d4fd9b966612abb3b9aed0a862) feat: replace attempt() with built-in rescue() ### 📊 Changes **20 files changed** (+43 additions, -65 deletions) <details> <summary>View changed files</summary> 📝 `app/Casts/SmartPlaylistRulesCast.php` (+3 -5) 📝 `app/Helpers.php` (+5 -26) 📝 `app/Http/Controllers/API/AuthController.php` (+1 -1) 📝 `app/Http/Integrations/Spotify/SpotifyClient.php` (+1 -1) 📝 `app/Listeners/WriteSyncLog.php` (+1 -1) 📝 `app/Models/SongZipArchive.php` (+1 -1) 📝 `app/Observers/AlbumObserver.php` (+1 -1) 📝 `app/Repositories/Repository.php` (+1 -1) 📝 `app/Rules/ImageData.php` (+2 -2) 📝 `app/Rules/SupportedAudioFile.php` (+2 -2) 📝 `app/Rules/ValidSmartPlaylistRulePayload.php` (+1 -1) 📝 `app/Services/ApplicationInformationService.php` (+1 -1) 📝 `app/Services/FileScanner.php` (+3 -3) 📝 `app/Services/ITunesService.php` (+1 -1) 📝 `app/Services/LastfmService.php` (+5 -5) 📝 `app/Services/MediaInformationService.php` (+2 -2) 📝 `app/Services/MediaMetadataService.php` (+3 -3) 📝 `database/migrations/2021_06_04_153259_convert_user_preferences_from_array_to_json.php` (+2 -2) 📝 `database/migrations/2022_08_04_092531_drop_contributing_artist_id.php` (+2 -2) 📝 `tests/Unit/Rules/ValidSmartPlaylistRulePayloadTest.php` (+5 -4) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 03:32:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1892
No description provided.