Browse Source

cleaning up.

Taylor Otwell 12 years ago
parent
commit
70d4746159
1 changed files with 7 additions and 5 deletions
  1. 7 5
      laravel/blade.php

+ 7 - 5
laravel/blade.php

@@ -73,17 +73,19 @@ class Blade {
 	}
 
 	/**
-	 * Register a new blade compiler.
+	 * Register a custom Blade compiler.
 	 *
 	 * <code>
-	 * 		Blade::extend(function($view) {
-	 * 			return str_replace('thing', 'another_thing', $view);
+	 * 		Blade::extend(function($view)
+	 *		{
+	 * 			return str_replace('foo', 'bar', $view);
 	 * 		});
 	 * </code>
 	 *
-	 * @param closure $compiler
+	 * @param  Closure  $compiler
+	 * @return void
 	 */
-	public static function extend($compiler)
+	public static function extend(Closure $compiler)
 	{
 		static::$extensions[] = $compiler;
 	}