AlbumController::show()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace App\Http\Controllers\API\MediaInformation;
4
5
use App\Models\Album;
6
use Illuminate\Http\JsonResponse;
7
8
/**
9
 * @group 5. Media information
10
 */
11
class AlbumController extends Controller
12
{
13
    /**
14
     * Get album's extra information.
15
     *
16
     * Get extra information about an album via Last.fm.
17
     *
18
     * @responseFile responses/mediaInformation.album.show.json
19
     *
20
     * @return JsonResponse
21
     */
22
    public function show(Album $album)
23
    {
24
        return response()->json($this->mediaInformationService->getAlbumInformation($album));
25
    }
26
}
27