@@ -48,8 +48,8 @@ |
||
48 | 48 | protected function mapWebRoutes() |
49 | 49 | { |
50 | 50 | Route::middleware('web') |
51 | - ->namespace($this->namespace) |
|
52 | - ->group(base_path('routes/web.php')); |
|
51 | + ->namespace($this->namespace) |
|
52 | + ->group(base_path('routes/web.php')); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -8,7 +8,7 @@ |
||
8 | 8 | use Exception; |
9 | 9 | use Illuminate\Console\Command; |
10 | 10 | use Illuminate\Contracts\Console\Kernel as Artisan; |
11 | -use Illuminate\Contracts\Hashing\Hasher as Hash; |
|
11 | +use Illuminate\Contracts\Hashing\Hasher as Hash; |
|
12 | 12 | use Illuminate\Database\DatabaseManager as DB; |
13 | 13 | use Jackiedo\DotenvEditor\DotenvEditor; |
14 | 14 |
@@ -98,6 +98,7 @@ |
||
98 | 98 | |
99 | 99 | /** |
100 | 100 | * Log a song's sync status to console. |
101 | + * @param string $reason |
|
101 | 102 | */ |
102 | 103 | public function logSyncStatusToConsole(string $path, int $result, ?string $reason = null): void |
103 | 104 | { |
@@ -28,6 +28,10 @@ |
||
28 | 28 | $this->transcodingService = $transcodingService; |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param boolean $transcode |
|
33 | + * @param integer $bitRate |
|
34 | + */ |
|
31 | 35 | public function createStreamer( |
32 | 36 | Song $song, |
33 | 37 | ?bool $transcode = null, |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use DaveRandom\Resume\InvalidRangeHeaderException; |
7 | 7 | use DaveRandom\Resume\NonExistentFileException; |
8 | 8 | use DaveRandom\Resume\RangeSet; |
9 | -use DaveRandom\Resume\Resource; |
|
10 | 9 | use DaveRandom\Resume\ResourceServlet; |
11 | 10 | use DaveRandom\Resume\SendFileFailureException; |
12 | 11 | use DaveRandom\Resume\UnreadableFileException; |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * |
207 | 207 | * @param string $artist The artist name |
208 | 208 | * @param string $track The track name |
209 | - * @param string|int $timestamp The UNIX timestamp |
|
209 | + * @param integer $timestamp The UNIX timestamp |
|
210 | 210 | * @param string $album The album name |
211 | 211 | * @param string $sk The session key |
212 | 212 | */ |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | * @param string $artist Name of the artist |
254 | 254 | * @param string $track Name of the track |
255 | 255 | * @param string $album Name of the album |
256 | - * @param int|float $duration Duration of the track, in seconds |
|
256 | + * @param double $duration Duration of the track, in seconds |
|
257 | 257 | * @param string $sk The session key |
258 | 258 | */ |
259 | 259 | public function updateNowPlaying(string $artist, string $track, string $album, $duration, string $sk): void |
@@ -25,7 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | try { |
27 | 27 | return $this->cache->remember(md5("itunes_track_url_{$term}{$album}{$artist}"), 24 * 60 * 7, |
28 | - function () use ($term, $album, $artist): ?string { |
|
28 | + function () use ($term, $album, $artist) : ?string { |
|
29 | 29 | $params = [ |
30 | 30 | 'term' => $term.($album ? " $album" : '').($artist ? " $artist" : ''), |
31 | 31 | 'media' => 'music', |