| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function render($icon, $style = null) |
||
| 50 | { |
||
| 51 | if (substr($icon, 0, 3) == 'fa-') { |
||
| 52 | $class = trim('fa '.$icon); |
||
| 53 | $format = $this->formatI; |
||
| 54 | } else { |
||
| 55 | $class = trim('glyphicon '.$icon); |
||
| 56 | $format = $this->format; |
||
| 57 | } |
||
| 58 | |||
| 59 | if (! empty($style)) { |
||
| 60 | $style = ' style="'.$style.'"'; |
||
| 61 | } |
||
| 62 | |||
| 63 | return sprintf($format, $class, $style); |
||
| 64 | } |
||
| 65 | } |
||
| 66 |