mirror of
https://github.com/koel/koel.git
synced 2026-04-25 16:56:02 +03:00
[PR #1601] [CLOSED] Refactor codes #1803
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#1803
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/koel/koel/pull/1601
Author: @falahatiali
Created: 11/23/2022
Status: ❌ Closed
Base:
master← Head:refactor📝 Commits (1)
d400bcaRefactor codes📊 Changes
11 files changed (+159 additions, -30 deletions)
View changed files
📝
app/Repositories/AlbumRepository.php(+22 -4)📝
app/Repositories/ArtistRepository.php(+14 -2)📝
app/Repositories/GenreRepository.php(+8 -1)📝
app/Repositories/InteractionRepository.php(+9 -1)📝
app/Repositories/PlaylistFolderRepository.php(+6 -0)📝
app/Repositories/PlaylistRepository.php(+8 -1)📝
app/Repositories/Repository.php(+8 -6)📝
app/Repositories/RepositoryInterface.php(+7 -2)📝
app/Repositories/SettingRepository.php(+6 -1)📝
app/Repositories/SongRepository.php(+65 -12)📝
app/Repositories/UserRepository.php(+6 -0)📄 Description
I think it's more human-readable to have an abstract function for our repositories that just return the model class name as a string. because now it's not very clear what exactly the guessModelClass function does.
in addition, also I updated many functions phpDoc and make them better for reading.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.