From ae2dc6a7e23438f4094142f9814f1cfbaaa116dc Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 17 Apr 2012 20:13:42 -0500 Subject: [PATCH] cleaning up view code. --- laravel/view.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/laravel/view.php b/laravel/view.php index 33f85733..f95b8f33 100644 --- a/laravel/view.php +++ b/laravel/view.php @@ -110,10 +110,11 @@ public function __construct($view, $data = array()) } /** - * Allows people to check if a view passed in exists, handy for certain types of CMS development - * @param string $view The view name (ex. site.home) - * @param boolean $return_path Setting to TRUE will return the path found if it exists - * @return string / boolean + * Determine if the given view exists. + * + * @param string $view + * @param boolean $return_path + * @return string|bool */ public static function exists($view, $return_path = false) { @@ -130,6 +131,7 @@ public static function exists($view, $return_path = false) { return $return_path ? $path : true; } + return false; }