Skip to content

Commit 20ef800

Browse files
nasrulhazimgithub-actions[bot]
authored andcommitted
Fix styling
1 parent afdccb1 commit 20ef800

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Http/Controllers/MediaController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ public function __invoke(Request $request, string $type, string $uuid)
2323

2424
abort_if($request->user()->cannot($type, $media), 403, 'Unauthorized Access.');
2525

26-
if($type == MediaAccess::view()->value || $type == MediaAccess::stream()->value) {
26+
if ($type == MediaAccess::view()->value || $type == MediaAccess::stream()->value) {
2727
return response()->make(file_get_contents($media->getPath()), 200, [
2828
'Content-Type' => $media->mime_type,
29-
'Content-Disposition' => 'inline; filename="'.$media->file_name.'"'
29+
'Content-Disposition' => 'inline; filename="'.$media->file_name.'"',
3030
]);
3131
}
3232

33-
if($type == MediaAccess::download()->value) {
33+
if ($type == MediaAccess::download()->value) {
3434
return response()->download($media->getPath());
3535
}
3636

0 commit comments

Comments
 (0)