apimatic/core-lib-php

View on GitHub
src/Logger/ApiLogger.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Method logRequest has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

    public function logRequest(RequestInterface $request): void
    {
        $contentType = $this->getHeaderValue(LoggerConstants::CONTENT_TYPE_HEADER, $request->getHeaders());

        $this->config->logMessage(
Severity: Minor
Found in src/Logger/ApiLogger.php - About 1 hr to fix

    Method logResponse has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

        public function logResponse(ResponseInterface $response): void
        {
            $contentLength = $this->getHeaderValue(LoggerConstants::CONTENT_LENGTH_HEADER, $response->getHeaders());
            $contentType = $this->getHeaderValue(LoggerConstants::CONTENT_TYPE_HEADER, $response->getHeaders());
    
    
    Severity: Minor
    Found in src/Logger/ApiLogger.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status