Code

Rating   Name Duplication Size Complexity CRAP Changes Bugs Features
B UploadMiddleware::parseUploadedFiles() 0 18 7 7 3 0 0
A UploadMiddlewareTest.php$0 ➔ testParsesMultipartRequest() 0 33 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ createServer() 0 32 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ testCanUploadFileWithStandardServer() 0 27 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ testMissingUploadedFileShouldThrow() 0 24 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ testProcess() 0 24 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ createRequest() 0 17 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ testRequestWithMapThatIsNotValidJsonShouldThrows() 0 12 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ testRequestWithMapThatIsNotArrayShouldThrows() 0 12 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ testRequestWithoutMapShouldThrows() 0 12 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ testEmptyRequestShouldThrows() 0 10 1 ? 0 0 0
A UploadMiddleware::validateParsedBody() 0 10 4 4 1 0 0
A UploadMiddlewareTest.php$0 ➔ testNullRequestShouldThrows() 0 10 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ testInvalidRequestShouldThrows() 0 10 1 ? 0 0 0
A UploadMiddlewareTest.php$0 ➔ testOtherContentTypeShouldNotBeTouched() 0 9 1 ? 0 0 0