AlbumController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 14
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A show() 0 3 1
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