Apply fixes from StyleCI (#800)

This commit is contained in:
Phan An 2018-09-03 19:42:37 +07:00 committed by GitHub
parent a57fe76dfe
commit 368d7ab484
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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) {

View file

@ -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