From 70d47461595eea7fd562776d8519cb60164d9738 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 4 May 2012 13:38:30 -0500 Subject: [PATCH] cleaning up. --- laravel/blade.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/laravel/blade.php b/laravel/blade.php index 7e6a2469..9313f143 100644 --- a/laravel/blade.php +++ b/laravel/blade.php @@ -73,17 +73,19 @@ public static function sharpen() } /** - * Register a new blade compiler. + * Register a custom Blade compiler. * * - * Blade::extend(function($view) { - * return str_replace('thing', 'another_thing', $view); + * Blade::extend(function($view) + * { + * return str_replace('foo', 'bar', $view); * }); * * - * @param closure $compiler + * @param Closure $compiler + * @return void */ - public static function extend($compiler) + public static function extend(Closure $compiler) { static::$extensions[] = $compiler; }