| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 65 | private function wrap($text) |
||
| 66 | { |
||
| 67 | if ($this->link) |
||
| 68 | { |
||
| 69 | if ($this->isMd) |
||
| 70 | { |
||
| 71 | return sprintf('[%s](%s)', $text, $this->link); |
||
| 72 | } |
||
| 73 | // if ($this->isHtml) |
||
| 74 | // { |
||
| 75 | return sprintf('<a href="%s" class="api-link">%s</a>', $this->link, $text); |
||
| 76 | // } |
||
| 77 | } |
||
| 78 | return $text; |
||
| 79 | } |
||
| 80 | |||
| 82 |