Skip to content

Commit

Permalink
Apply fixes from StyleCI (koel#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan authored Sep 4, 2018
1 parent 140de34 commit 5102e75
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/SyncMediaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function handle(): void
*/
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.
Expand Down
3 changes: 1 addition & 2 deletions app/Http/Controllers/API/LastfmController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public function __construct(
Guard $auth,
LastfmService $lastfmService,
JWTAuth $jwtAuth
)
{
) {
$this->auth = $auth;
$this->lastfmService = $lastfmService;
$this->jwtAuth = $jwtAuth;
Expand Down
2 changes: 0 additions & 2 deletions app/Services/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ public function request(string $method, string $uri, bool $appendKey = true, arr
} catch (ClientException $e) {
$this->logger->error($e);
}

return null;
}

/**
Expand Down
3 changes: 1 addition & 2 deletions app/Services/LastfmService.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public function __construct(
Cache $cache,
Logger $logger,
UserPreferenceService $userPreferenceService
)
{
) {
parent::__construct($client, $cache, $logger);
$this->userPreferenceService = $userPreferenceService;
}
Expand Down
2 changes: 1 addition & 1 deletion app/Services/Streamers/PHPStreamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function stream()
{
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) {
Expand Down

0 comments on commit 5102e75

Please sign in to comment.