Example #1
0
 public function decideBlockEnd(IfwPsn_Vendor_Twig_Token $token)
 {
     return $token->test('endmacro');
 }
Example #2
0
 public function decideIfEnd(IfwPsn_Vendor_Twig_Token $token)
 {
     return $token->test(array('endif'));
 }
Example #3
0
 public function decideSpacelessEnd(IfwPsn_Vendor_Twig_Token $token)
 {
     return $token->test('endspaceless');
 }
Example #4
0
 public function decideForEnd(IfwPsn_Vendor_Twig_Token $token)
 {
     return $token->test('endfor');
 }
Example #5
0
 protected function isBinary(IfwPsn_Vendor_Twig_Token $token)
 {
     return $token->test(IfwPsn_Vendor_Twig_Token::OPERATOR_TYPE) && isset($this->binaryOperators[$token->getValue()]);
 }