Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 19, 2018
1 parent d3fec4d commit 99dcd93
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Illuminate/View/Compilers/BladeCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,18 +446,6 @@ public function component($path, $alias = null)
});
}

/**
* Register a handler for custom directives.
*
* @param string $name
* @param callable $handler
* @return void
*/
public function directive($name, callable $handler)
{
$this->customDirectives[$name] = $handler;
}

/**
* Register an include alias directive.
*
Expand All @@ -476,6 +464,18 @@ public function include($path, $alias = null)
});
}

/**
* Register a handler for custom directives.
*
* @param string $name
* @param callable $handler
* @return void
*/
public function directive($name, callable $handler)
{
$this->customDirectives[$name] = $handler;
}

/**
* Get the list of custom directives.
*
Expand Down

0 comments on commit 99dcd93

Please sign in to comment.