Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function run(array $args, \DomElement $element = null) { |
||
21 | if ($this->dataKey === "root") $data = $this->data->getData(null, 'data'); |
||
22 | else $data = $this->data->getData($element, $this->dataKey); |
||
23 | $parser = new \Transphporm\Parser\Value($this->functionSet, true, true); |
||
24 | $return = $parser->parseTokens(new \Transphporm\Parser\Tokens($args), $data); |
||
25 | return $return[0]; |
||
26 | } |
||
27 | } |
||
28 |