Apply fixes from StyleCI (#803)

This commit is contained in:
Phan An 2018-09-04 12:43:12 +07:00 committed by GitHub
parent 140de34615
commit 5102e75698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 8 deletions

View file

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

View file

@ -22,8 +22,7 @@ class LastfmController extends Controller
Guard $auth,
LastfmService $lastfmService,
JWTAuth $jwtAuth
)
{
) {
$this->auth = $auth;
$this->lastfmService = $lastfmService;
$this->jwtAuth = $jwtAuth;

View file

@ -71,8 +71,6 @@ abstract class ApiClient
} catch (ClientException $e) {
$this->logger->error($e);
}
return null;
}
/**

View file

@ -33,8 +33,7 @@ class LastfmService extends ApiClient implements ApiConsumerInterface
Cache $cache,
Logger $logger,
UserPreferenceService $userPreferenceService
)
{
) {
parent::__construct($client, $cache, $logger);
$this->userPreferenceService = $userPreferenceService;
}

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