chore: Remove unused methods, minor refactor.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2023-12-07 07:34:49 +01:00
parent cd6b3dbc92
commit 7de0b1888d
204 changed files with 795 additions and 1171 deletions

View File

@@ -29,7 +29,7 @@ use JsonException;
use SP\Core\Events\Event;
use SP\Core\Events\EventMessage;
use SP\Domain\Core\Exceptions\SPException;
use SP\Http\JsonResponse;
use SP\Http\JsonMessage;
use SP\Modules\Web\Controllers\Traits\JsonTrait;
use SP\Util\FileUtil;
@@ -105,6 +105,6 @@ final class ViewController extends AccountFileBase
return $this->returnJsonResponseException($e);
}
return $this->returnJsonResponse(JsonResponse::JSON_WARNING, __u('File not supported for preview'));
return $this->returnJsonResponse(JsonMessage::JSON_WARNING, __u('File not supported for preview'));
}
}