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