| @@ -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, | 
| @@ -201,7 +201,7 @@ discard block | ||
| 201 | 201 | * | 
| 202 | 202 | * @param string $artist The artist name | 
| 203 | 203 | * @param string $track The track name | 
| 204 | - * @param string|int $timestamp The UNIX timestamp | |
| 204 | + * @param integer $timestamp The UNIX timestamp | |
| 205 | 205 | * @param string $album The album name | 
| 206 | 206 | * @param string $sk The session key | 
| 207 | 207 | */ | 
| @@ -248,7 +248,7 @@ discard block | ||
| 248 | 248 | * @param string $artist Name of the artist | 
| 249 | 249 | * @param string $track Name of the track | 
| 250 | 250 | * @param string $album Name of the album | 
| 251 | - * @param int|float $duration Duration of the track, in seconds | |
| 251 | + * @param double $duration Duration of the track, in seconds | |
| 252 | 252 | * @param string $sk The session key | 
| 253 | 253 | */ | 
| 254 | 254 | public function updateNowPlaying(string $artist, string $track, string $album, float $duration, string $sk): void | 
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 |      { | 
| 39 | 39 |          try { | 
| 40 | 40 |              return $this->cache->remember(md5("itunes_track_url_{$term}{$album}{$artist}"), 24 * 60 * 7, | 
| 41 | -                function () use ($term, $album, $artist): string { | |
| 41 | +                function () use ($term, $album, $artist) : string { | |
| 42 | 42 | $params = [ | 
| 43 | 43 | 'term' => $term.($album ? " $album" : '').($artist ? " $artist" : ''), | 
| 44 | 44 | 'media' => 'music', |