コード例 #1
0
ファイル: SafeOutputVisitor.php プロジェクト: bugadani/minty
 /**
  * @param Node $node
  */
 private function enterAutofilterNode(Node $node)
 {
     $this->autofilterStack[] = $this->autofilter;
     $strategy = $node->getData('strategy');
     $this->autofilter = $strategy === 1 ? $this->extension : $strategy;
 }
コード例 #2
0
 private function isEnvironmentVariable(Node $node)
 {
     return $node instanceof TempVariableNode && $node->getData('name') === 'environment';
 }