diff --git a/src/Ouzo/Core/ExceptionHandling/DebugExceptionHandler.php b/src/Ouzo/Core/ExceptionHandling/DebugExceptionHandler.php index 212299ff..b8bbdf3a 100644 --- a/src/Ouzo/Core/ExceptionHandling/DebugExceptionHandler.php +++ b/src/Ouzo/Core/ExceptionHandling/DebugExceptionHandler.php @@ -16,7 +16,7 @@ class DebugExceptionHandler extends ExceptionHandler { public function runDefaultHandler($exception): void { - if ($this->needPrettyHandler()) { + if ($this->isPrettyHandlerNeeded()) { $run = new Run(); $run->pushHandler(new PrettyPageHandler()); $run->pushHandler(new DebugErrorLogHandler()); @@ -26,7 +26,7 @@ public function runDefaultHandler($exception): void } } - private function needPrettyHandler(): bool + private function isPrettyHandlerNeeded(): bool { $isHtmlResponse = ResponseTypeResolve::resolve() === MediaType::TEXT_HTML; return $isHtmlResponse && !Uri::isAjax();