From d95ead812aee4549fd702b0c59ce56d79b5f3eda Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 14 Jul 2011 00:05:13 -0500 Subject: [PATCH] removed bloated if statement from front controller. --- public/index.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/public/index.php b/public/index.php index ba63074c..fbb7901f 100644 --- a/public/index.php +++ b/public/index.php @@ -93,14 +93,7 @@ { $route = System\Router::route(Request::method(), Request::uri()); - if ( ! is_null($route)) - { - $response = $route->call(); - } - else - { - $response = System\Response::make(View::make('error/404'), 404); - } + $response = (is_null($route)) ? System\Response::make(View::make('error/404'), 404) : $route->call(); } else { @@ -128,4 +121,4 @@ // -------------------------------------------------------------- // Send the response to the browser. // -------------------------------------------------------------- -$response->send(); +$response->send(); \ No newline at end of file