mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
Apply fixes from StyleCI (#803)
This commit is contained in:
parent
140de34615
commit
5102e75698
5 changed files with 4 additions and 8 deletions
|
@ -60,7 +60,7 @@ class SyncMediaCommand extends Command
|
|||
*/
|
||||
protected function syncAll(): void
|
||||
{
|
||||
$this->info('Syncing media from ' . Setting::get('media_path') .PHP_EOL);
|
||||
$this->info('Syncing media from '.Setting::get('media_path').PHP_EOL);
|
||||
|
||||
// Get the tags to sync.
|
||||
// Notice that this is only meaningful for existing records.
|
||||
|
|
|
@ -22,8 +22,7 @@ class LastfmController extends Controller
|
|||
Guard $auth,
|
||||
LastfmService $lastfmService,
|
||||
JWTAuth $jwtAuth
|
||||
)
|
||||
{
|
||||
) {
|
||||
$this->auth = $auth;
|
||||
$this->lastfmService = $lastfmService;
|
||||
$this->jwtAuth = $jwtAuth;
|
||||
|
|
|
@ -71,8 +71,6 @@ abstract class ApiClient
|
|||
} catch (ClientException $e) {
|
||||
$this->logger->error($e);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -33,8 +33,7 @@ class LastfmService extends ApiClient implements ApiConsumerInterface
|
|||
Cache $cache,
|
||||
Logger $logger,
|
||||
UserPreferenceService $userPreferenceService
|
||||
)
|
||||
{
|
||||
) {
|
||||
parent::__construct($client, $cache, $logger);
|
||||
$this->userPreferenceService = $userPreferenceService;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue