From 296fbd117076ed31420a1ceb1b9d926ebd3f067c Mon Sep 17 00:00:00 2001 From: Kovah Date: Sat, 6 Mar 2021 19:41:41 +0100 Subject: [PATCH] fix some small code styling issues --- app/Helper/functions.php | 2 +- app/Http/Controllers/App/ImportController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Helper/functions.php b/app/Helper/functions.php index de82c794..f8015d51 100644 --- a/app/Helper/functions.php +++ b/app/Helper/functions.php @@ -129,7 +129,7 @@ function getShareLinks(Link $link): string * @param int|null $height * @return string */ -function displaySVG(string $path, $width = null, $height = null) +function displaySVG(string $path, $width = null, $height = null): string { $svg = file_get_contents($path); diff --git a/app/Http/Controllers/App/ImportController.php b/app/Http/Controllers/App/ImportController.php index e7e6032d..cf756c26 100644 --- a/app/Http/Controllers/App/ImportController.php +++ b/app/Http/Controllers/App/ImportController.php @@ -30,7 +30,7 @@ class ImportController extends Controller * @return JsonResponse * @throws FileNotFoundException */ - public function doImport(DoImportRequest $request) + public function doImport(DoImportRequest $request): JsonResponse { $data = $request->file('import-file')->get();