| Total Complexity | 2 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class DownloadTextureController extends BaseController |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var MinepicCore |
||
| 20 | */ |
||
| 21 | protected $minepic; |
||
| 22 | |||
| 23 | /** @var ResponseFactory */ |
||
| 24 | protected $responseFactory; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Api constructor. |
||
| 28 | * |
||
| 29 | * @param MinepicCore $minepic |
||
| 30 | * @param ResponseFactory $responseFactory |
||
| 31 | */ |
||
| 32 | public function __construct( |
||
| 33 | MinepicCore $minepic, |
||
| 34 | ResponseFactory $responseFactory |
||
| 35 | ) { |
||
| 36 | $this->minepic = $minepic; |
||
| 37 | $this->responseFactory = $responseFactory; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Serve Avatar. |
||
| 42 | * |
||
| 43 | * @param \Illuminate\Http\Request |
||
| 44 | * @param string $uuidOrName |
||
| 45 | * |
||
| 46 | * @return Response |
||
| 47 | * |
||
| 48 | * @throws \Throwable |
||
| 49 | */ |
||
| 50 | public function serve(Request $request, string $uuidOrName = ''): Response |
||
| 61 | } |
||
| 62 | } |
||
| 63 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.