Code Duplication    Length = 3-3 lines in 2 locations

app/Controller/Course/CourseCreateController.php 1 location

@@ 85-87 (lines=3) @@
82
            return $this->responseManager->createAcceptNotSupportedResponse($request);
83
        }
84
85
        if (null === $contentType = $this->requestManager->getContentType($request)) {
86
            return $this->responseManager->createContentTypeNotSupportedResponse($request, $accept);
87
        }
88
89
        /** @var Course $course */
90
        if (null === $course = $this->requestManager->getDataFromRequestBody($request, Course::class, $contentType)) {

app/Controller/Course/CourseUpdateController.php 1 location

@@ 85-87 (lines=3) @@
82
            return $this->responseManager->createAcceptNotSupportedResponse($request);
83
        }
84
85
        if (null === $contentType = $this->requestManager->getContentType($request)) {
86
            return $this->responseManager->createContentTypeNotSupportedResponse($request, $accept);
87
        }
88
89
        $id = $request->getAttribute('id');
90