| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function parseSource($source) { |
||
| 8 | $tags = static::findTags($source); |
||
|
|
|||
| 9 | foreach ($tags as $rawTag) { |
||
| 10 | $tag = explode(':', $rawTag); |
||
| 11 | $html = call_user_func_array([$this, strtolower($tag[0]) . 'Tag'], array_slice($tag, 1)); |
||
| 12 | $source = str_replace('{' . $rawTag . '}', $html, $source); |
||
| 13 | } |
||
| 14 | return $source; |
||
| 15 | } |
||
| 31 | } |