Permalink
Browse files

Readability update for Dispatcher::_invoke()

  • Loading branch information...
1 parent 80fc94c commit 1f2a4113bf4c70092f3ead80677612c7b6b2c524 @bcrowe bcrowe committed Oct 17, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/Cake/Routing/Dispatcher.php
@@ -192,9 +192,7 @@ protected function _invoke(Controller $controller, CakeRequest $request, CakeRes
if ($render && $controller->autoRender) {
$response = $controller->render();
- } elseif (!($result instanceof CakeResponse) &&
- $response->body() === null
- ) {
+ } elseif (!($result instanceof CakeResponse) && $response->body() === null) {
$response->body($result);
}
$controller->shutdownProcess();

0 comments on commit 1f2a411

Please sign in to comment.