Skip to content
Snippets Groups Projects
Commit a3263e64 authored by Marcus Eibrink-Lunzenauer's avatar Marcus Eibrink-Lunzenauer
Browse files

Merge branch '350-fix-image-upload'

parents fa1b8d78 4b71b2e4
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ use Psr\Http\Message\ServerRequestInterface as Request; ...@@ -11,7 +11,7 @@ use Psr\Http\Message\ServerRequestInterface as Request;
class StructuralElementsImageDelete extends NonJsonApiController class StructuralElementsImageDelete extends NonJsonApiController
{ {
public function invoke(Request $request, Response $response, array $args) public function invoke(Request $request, Response $response, array $args): Response
{ {
if (!($structuralElement = StructuralElement::find($args['id']))) { if (!($structuralElement = StructuralElement::find($args['id']))) {
throw new RecordNotFoundException(); throw new RecordNotFoundException();
......
...@@ -17,7 +17,7 @@ class StructuralElementsImageUpload extends NonJsonApiController ...@@ -17,7 +17,7 @@ class StructuralElementsImageUpload extends NonJsonApiController
{ {
use CoursewareInstancesHelper, FilesRoutesHelper; use CoursewareInstancesHelper, FilesRoutesHelper;
public function invoke(Request $request, Response $response, array $args) public function invoke(Request $request, Response $response, array $args): Response
{ {
if (!($structuralElement = StructuralElement::find($args['id']))) { if (!($structuralElement = StructuralElement::find($args['id']))) {
throw new RecordNotFoundException(); throw new RecordNotFoundException();
......
...@@ -14,7 +14,7 @@ class FileRefsContentShow extends NonJsonApiController ...@@ -14,7 +14,7 @@ class FileRefsContentShow extends NonJsonApiController
{ {
use EtagHelperTrait; use EtagHelperTrait;
public function invoke(Request $request, Response $response, array $args) public function invoke(Request $request, Response $response, array $args): Response
{ {
if (!$fileRef = \FileRef::find($args['id'])) { if (!$fileRef = \FileRef::find($args['id'])) {
throw new RecordNotFoundException(); throw new RecordNotFoundException();
......
...@@ -13,7 +13,7 @@ class FileRefsContentUpdate extends NonJsonApiController ...@@ -13,7 +13,7 @@ class FileRefsContentUpdate extends NonJsonApiController
{ {
use RoutesHelperTrait; use RoutesHelperTrait;
public function invoke(Request $request, Response $response, array $args) public function invoke(Request $request, Response $response, array $args): Response
{ {
if (!$fileRef = \FileRef::find($args['id'])) { if (!$fileRef = \FileRef::find($args['id'])) {
throw new RecordNotFoundException(); throw new RecordNotFoundException();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment