| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function serve(Request $request, string $uuidOrName = ''): Response |
||
|
|
|||
| 45 | { |
||
| 46 | $headers = [ |
||
| 47 | 'Content-Disposition' => 'Attachment;filename='.$uuidOrName.'.png', |
||
| 48 | 'Content-Type' => 'image/png', |
||
| 49 | ]; |
||
| 50 | $this->minepic->initialize($uuidOrName); |
||
| 51 | $avatarImage = $this->minepic->skinCurrentUser(); |
||
| 52 | $avatarImage->prepareTextureDownload(); |
||
| 53 | |||
| 54 | return $this->responseFactory->make($avatarImage, 200, $headers); |
||
| 55 | } |
||
| 57 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.