mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Apply fixes from StyleCI (#800)
This commit is contained in:
parent
a57fe76dfe
commit
368d7ab484
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ class PHPStreamer extends Streamer implements DirectStreamerInterface
|
|||
{
|
||||
try {
|
||||
$rangeSet = RangeSet::createFromHeader(get_request_header('Range'));
|
||||
/** @var Resource $resource */
|
||||
/** @var resource $resource */
|
||||
$resource = new FileResource($this->song->path, 'application/octet-stream');
|
||||
(new ResourceServlet($resource))->sendResource($rangeSet);
|
||||
} catch (InvalidRangeHeaderException $e) {
|
||||
|
|
|
@ -17,8 +17,8 @@ class iTunesService extends ApiClient implements ApiConsumerInterface
|
|||
/**
|
||||
* Search for a track on iTunes Store with the given information and get its URL.
|
||||
*
|
||||
* @param string $term The main query string (should be the track's name)
|
||||
* @param string $album The album's name, if available
|
||||
* @param string $term The main query string (should be the track's name)
|
||||
* @param string $album The album's name, if available
|
||||
* @param string $artist The artist's name, if available
|
||||
*/
|
||||
public function getTrackUrl(string $term, string $album = '', string $artist = ''): ?string
|
||||
|
|
Loading…
Reference in a new issue