Clean-up whitespace issues
Signed-off-by: Colin Viebrock <colin@viebrock.ca>
This commit is contained in:
@@ -16,13 +16,13 @@ class Form {
|
|||||||
*/
|
*/
|
||||||
public static $macros = array();
|
public static $macros = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers a custom macro.
|
* Registers a custom macro.
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param Closure $input
|
* @param Closure $input
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function macro($name, $macro)
|
public static function macro($name, $macro)
|
||||||
{
|
{
|
||||||
static::$macros[$name] = $macro;
|
static::$macros[$name] = $macro;
|
||||||
@@ -607,12 +607,12 @@ class Form {
|
|||||||
*/
|
*/
|
||||||
public static function __callStatic($method, $parameters)
|
public static function __callStatic($method, $parameters)
|
||||||
{
|
{
|
||||||
if (isset(static::$macros[$method]))
|
if (isset(static::$macros[$method]))
|
||||||
{
|
{
|
||||||
return call_user_func_array(static::$macros[$method], $parameters);
|
return call_user_func_array(static::$macros[$method], $parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new \Exception("Method [$method] does not exist.");
|
throw new \Exception("Method [$method] does not exist.");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user