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