Skip to content
Permalink
Browse files

Fix CS.

  • Loading branch information...
dereuromark committed Dec 18, 2016
1 parent 09c45b6 commit 6e1c2565b8dd3034744fb0a0fec820cf8947c95a
Showing with 8 additions and 5 deletions.
  1. +0 −1 src/Error/ExceptionRendererInterface.php
  2. +8 −4 src/Error/Middleware/ErrorHandlerMiddleware.php
@@ -14,7 +14,6 @@
*/
namespace Cake\Error;
interface ExceptionRendererInterface
{
/**
@@ -140,13 +140,17 @@ protected function getRenderer($exception)
if (is_string($this->exceptionRenderer)) {
$class = App::className($this->exceptionRenderer, 'Error');
if (!$class) {
throw new Exception(sprintf("The '%s' renderer class could not be found.",
$this->exceptionRenderer));
throw new Exception(sprintf(
"The '%s' renderer class could not be found.",
$this->exceptionRenderer
));
}
if (!$class instanceof ExceptionRendererInterface) {
throw new Exception(sprintf("The '%s' renderer class must implement %s.",
throw new Exception(sprintf(
"The '%s' renderer class must implement %s.",
$this->exceptionRenderer,
ExceptionRendererInterface::class));
ExceptionRendererInterface::class
));
}
return new $class($exception);

0 comments on commit 6e1c256

Please sign in to comment.
You can’t perform that action at this time.