ArtistController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A show() 0 3 1
1
<?php
2
3
namespace App\Http\Controllers\API\Download;
4
5
use App\Models\Artist;
6
7
/**
8
 * @group 6. Download
9
 */
10
class ArtistController extends Controller
11
{
12
    /**
13
     * Download all songs by an artist.
14
     *
15
     * Don't see why one would need this, really.
16
     * Let's pray to God the user doesn't trigger this on Elvis.
17
     *
18
     * @response []
19
     */
20 1
    public function show(Artist $artist)
21
    {
22 1
        return response()->download($this->downloadService->from($artist));
23
    }
24
}
25