Code

Rating   Name Duplication Size Complexity Changes Bugs Features
B CorsServiceTest::testHandlePreflightRequest() 0 65 1 3 1 0
B Lumen\Cors\CorsService::__construct() 0 12 7 2 0 0
A CorsService::handlePreflightRequest() 0 16 6 4 0 0
A CorsServiceTest::testHandleRequest() 0 48 1 9 1 0
A Cors\CorsService::handleRequest() 0 10 6 4 0 0
A CorsMiddlewareTest::testAssertIsCorsRequest() 0 22 1 1 0 0
A CorsMiddlewareTest::testAssertIsPreflightRequest() 0 14 1 1 0 0
A CorsServiceTest::testIsPreflightRequest() 0 10 1 1 1 0
A CorsServiceTest::testAllowOriginIfMatchPattern() 0 9 1 1 0 0
A CorsServiceTest::testDenyOriginIfDoesNotMatchPattern() 0 9 1 1 0 0
A CorsServiceProviderTest::testAssertCanBeRegistered() 0 3 1 1 0 0
A Cors\CorsService::isCorsRequest() 0 1 1 3 0 0
A Cors\CorsService::setExposeHeaders() 0 2 1 0 0 0
A CorsServiceProvider::registerBindings() 0 3 1 0 0 0
A CorsService::isPreflightRequest() 0 1 3 3 0 0