app/Controllers/UploadController.php
Method saveMedia
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function saveMedia(Response $response, UploadedFileInterface $file, $user, $code)
{
if ($code === null) {
do {
$code = humanRandomString();
Method uploadEndpoint
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function uploadEndpoint(Request $request, Response $response): Response
{
if ($this->config['maintenance']) {
$this->json['message'] = 'Endpoint under maintenance.';