Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php declare(strict_types=1); |
||
19 | public function parse($text, array $matches) |
||
20 | { |
||
21 | $tagName = $this->config['tagName']; |
||
22 | $attrName = $this->config['attrName']; |
||
23 | $prio = $this->tagPriority; |
||
24 | foreach ($matches as $m) |
||
25 | { |
||
26 | $this->parser->addTagPair($tagName, $m[0][1], 0, $m[0][1] + strlen($m[0][0]), 0, $prio) |
||
27 | ->setAttribute($attrName, $m[0][0]); |
||
28 | } |
||
30 | } |