mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Format code
This commit is contained in:
parent
c27df81545
commit
e51eb9f3d8
|
@ -312,7 +312,8 @@ class Fenom
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getPreFilters() {
|
||||
public function getPreFilters()
|
||||
{
|
||||
return $this->pre_filters;
|
||||
}
|
||||
|
||||
|
@ -328,7 +329,8 @@ class Fenom
|
|||
}
|
||||
|
||||
|
||||
public function getPostFilters() {
|
||||
public function getPostFilters()
|
||||
{
|
||||
return $this->post_filters;
|
||||
}
|
||||
|
||||
|
@ -343,7 +345,8 @@ class Fenom
|
|||
}
|
||||
|
||||
|
||||
public function getFilters() {
|
||||
public function getFilters()
|
||||
{
|
||||
return $this->filters;
|
||||
}
|
||||
|
||||
|
|
|
@ -610,7 +610,8 @@ class Template extends Render
|
|||
* @return string
|
||||
* @throws Error\UnexpectedTokenException
|
||||
*/
|
||||
public function parseExp(Tokenizer $tokens, $required = false) {
|
||||
public function parseExp(Tokenizer $tokens, $required = false)
|
||||
{
|
||||
$exp = array();
|
||||
$var = false; // last term was: true - variable, false - mixed
|
||||
$op = false; // last exp was operator
|
||||
|
@ -686,7 +687,8 @@ class Template extends Render
|
|||
* @throws Error\TokenizeException
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function parseTerm(Tokenizer $tokens, &$is_var = false) {
|
||||
public function parseTerm(Tokenizer $tokens, &$is_var = false)
|
||||
{
|
||||
$is_var = false;
|
||||
$unary = "";
|
||||
term: {
|
||||
|
@ -1142,7 +1144,8 @@ class Template extends Render
|
|||
* @param Tokenizer $tokens
|
||||
* @param null $first_member
|
||||
*/
|
||||
public function parseConcat(Tokenizer $tokens, $first_member = null) {
|
||||
public function parseConcat(Tokenizer $tokens, $first_member = null)
|
||||
{
|
||||
$concat = array();
|
||||
if ($first_member) {
|
||||
}
|
||||
|
|
|
@ -115,7 +115,8 @@ class FenomTest extends \Fenom\TestCase
|
|||
// $this->assertSame($this->fenom->getOptions(), $flags & ~$option);
|
||||
}
|
||||
|
||||
public function testFilter() {
|
||||
public function testFilter()
|
||||
{
|
||||
$punit = $this;
|
||||
$this->fenom->addPreFilter(function ($src, $tpl) use ($punit) {
|
||||
$this->assertInstanceOf('Fenom\Template', $tpl);
|
||||
|
|
Loading…
Reference in New Issue
Block a user