| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function parse($text, array $matches) |
||
| 18 | { |
||
| 19 | $tagName = $this->config['tagName']; |
||
| 20 | $attrName = $this->config['attrName']; |
||
| 21 | foreach ($matches as $m) |
||
| 22 | { |
||
| 23 | $this->parser->addTagPair($tagName, $m[0][1], 0, $m[0][1] + strlen($m[0][0]), 0, 2) |
||
| 24 | ->setAttribute($attrName, $m[0][0]); |
||
| 25 | } |
||
| 26 | } |
||
| 27 | } |