From 21b5e9d67eb1d41cbd329c26e21393fa1c2b85e8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 6 Feb 2020 21:04:45 +0100 Subject: [PATCH] fix bugs, phpstan, phpcs --- Controller/ApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index b4b35f3..5a4d19b 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -256,7 +256,7 @@ final class ApiController extends Controller ); } - $collection = $this->app->moduleManager->get('Media')->createMediaCollectionFromMedia( + $collection = $this->app->moduleManager->get('Media')->createMediaCollectionFromMedia( (string) ($request->getData('name') ?? ''), (string) ($request->getData('description') ?? ''), $files, @@ -345,7 +345,7 @@ final class ApiController extends Controller '' ); - $collection = $this->app->moduleManager->get('Media')->createMediaCollectionFromMedia( + $collection = $this->app->moduleManager->get('Media')->createMediaCollectionFromMedia( (string) ($request->getData('name') ?? ''), (string) ($request->getData('description') ?? ''), $files,