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 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\Album;
6
7
/**
8
 * @group 6. Download
9
 */
10
class AlbumController extends Controller
11
{
12
    /**
13
     * Download a whole album.
14
     *
15
     * @response []
16
     */
17 1
    public function show(Album $album)
18
    {
19 1
        return response()->download($this->downloadService->from($album));
20
    }
21
}
22