projek-xyz/slim-framework

View on GitHub
src/Handlers/ConsoleErrorHandler.php

Summary

Maintainability
A
45 mins
Test Coverage

Showing 1 of 1 total issue

Function renderExeption has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

protected function renderExeption(\Exception $exception)
{
$message = $exception->getMessage();
if ($code = $exception->getCode()) {
$message = sprintf('[%s] %s', $code, $message);
Severity: Minor
Found in src/Handlers/ConsoleErrorHandler.php - About 45 mins to fix

There are no issues that match your filters.

Category
Status