Total Complexity | 2 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class AvatarController extends BaseApiController |
||
11 | { |
||
12 | /** |
||
13 | * Serve Avatar. |
||
14 | * |
||
15 | * @param \Illuminate\Http\Request |
||
16 | * @param string $uuid |
||
17 | * @param int $size |
||
18 | * |
||
19 | * @throws \Throwable |
||
20 | * |
||
21 | * @return \Illuminate\Http\Response |
||
22 | */ |
||
23 | public function serveUuid(Request $request, string $uuid, $size = 0): Response |
||
32 | ) |
||
33 | ); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param int $size |
||
38 | * |
||
39 | * @throws \Minepic\Image\Exceptions\ImageCreateFromPngFailedException |
||
40 | * @throws \Minepic\Image\Exceptions\ImageTrueColorCreationFailedException |
||
41 | * @throws \Minepic\Image\Exceptions\InvalidSectionSpecifiedException |
||
42 | * |
||
43 | * @return Response |
||
44 | */ |
||
45 | public function serveDefault($size = 0): Response |
||
55 |