Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Sep 4, 2018
1 parent 90fe7c8 commit 683c83b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Error/WhoopsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ protected function _displayException($exception) {

// Include all attributes defined in Cake Exception as a data table
if ($exception instanceof CakeException) {
$handler->addDataTable('Cake Exception', $exception->getAttributes());
}

// Include all request parameters as a data table
$request = Router::getRequest(true);
if ($request instanceof ServerRequest) {
$handler->addDataTable('Cake Request', $request->params);
}
$handler->addDataTable('Cake Exception', $exception->getAttributes());
}

// Include all request parameters as a data table
$request = Router::getRequest(true);
if ($request instanceof ServerRequest) {
$handler->addDataTable('Cake Request', $request->params);
}

$whoops = $this->getWhoopsInstance();
$whoops->pushHandler($handler);
Expand Down

0 comments on commit 683c83b

Please sign in to comment.