ArtistController::show()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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