mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
chore: code format
This commit is contained in:
parent
9cc5e752b8
commit
2de785fc43
7 changed files with 8 additions and 8 deletions
|
@ -61,7 +61,7 @@ class ScanCommand extends Command
|
|||
$this->mediaPath = $this->getMediaPath();
|
||||
|
||||
$config = ScanConfiguration::make(
|
||||
owner: $this->getOwner(),
|
||||
owner: $this->getOwner(),
|
||||
// When scanning via CLI, the songs should be public by default, unless explicitly specified otherwise.
|
||||
makePublic: !$this->option('private'),
|
||||
ignores: collect($this->option('ignore'))->sort()->values()->all(),
|
||||
|
|
|
@ -63,7 +63,7 @@ class FetchInitialDataController extends Controller
|
|||
'customer_email' => $licenseStatus->license?->meta->customerEmail,
|
||||
'product_id' => config('lemonsqueezy.product_id'),
|
||||
],
|
||||
'storage_driver' => config('koel.storage_driver'),
|
||||
'storage_driver' => config('koel.storage_driver'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,9 +5,9 @@ namespace App\Http\Requests\API\ObjectStorage\S3;
|
|||
use App\Http\Requests\API\ObjectStorage\S3\Request as BaseRequest;
|
||||
|
||||
/**
|
||||
* @property string $bucket
|
||||
* @property string $bucket
|
||||
* @property array<string> $tags
|
||||
* @property string $key
|
||||
* @property string $key
|
||||
*/
|
||||
class PutSongRequest extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -74,7 +74,7 @@ class LastfmService implements MusicEncyclopedia
|
|||
|
||||
public function scrobble(Song $song, User $user, int $timestamp): void
|
||||
{
|
||||
attempt(fn () => $this->connector->send(new ScrobbleRequest($song, $user, $timestamp)));
|
||||
attempt(fn () => $this->connector->send(new ScrobbleRequest($song, $user, $timestamp)));
|
||||
}
|
||||
|
||||
public function toggleLoveTrack(Song $song, User $user, bool $love): void
|
||||
|
|
|
@ -78,7 +78,7 @@ class MediaScanner
|
|||
return iterator_to_array(
|
||||
$this->finder->create()
|
||||
->ignoreUnreadableDirs()
|
||||
->ignoreDotFiles((bool)config('koel.ignore_dot_files')) // https://github.com/koel/koel/issues/450
|
||||
->ignoreDotFiles((bool) config('koel.ignore_dot_files')) // https://github.com/koel/koel/issues/450
|
||||
->files()
|
||||
->followLinks()
|
||||
->name('/\.(mp3|wav|ogg|m4a|flac|opus)$/i')
|
||||
|
|
|
@ -68,7 +68,7 @@ final class DropboxStorage extends CloudStorage
|
|||
now()->addSeconds($response->json('expires_in') - 60) // 60 seconds buffer
|
||||
);
|
||||
|
||||
return $response->json('access_token');
|
||||
return $response->json('access_token');
|
||||
}
|
||||
|
||||
public function getSongPresignedUrl(Song $song): string
|
||||
|
|
|
@ -42,7 +42,7 @@ class UserService
|
|||
'is_admin' => $isAdmin,
|
||||
'sso_id' => $ssoId,
|
||||
'sso_provider' => $ssoProvider,
|
||||
'avatar' => $avatar ? $this->createNewAvatar($avatar) : null,
|
||||
'avatar' => $avatar ? $this->createNewAvatar($avatar) : null,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue