Apply fixes from StyleCI (#797)

This commit is contained in:
Phan An 2018-08-30 10:16:40 +07:00 committed by GitHub
parent 3b2f6b9d1c
commit 06b7f7f5ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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