| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 1 | public function draw(array $data) |
|
| 47 | { |
||
| 48 | 1 | $ret = ''; |
|
| 49 | |||
| 50 | 1 | if ($data['front']) { |
|
| 51 | 1 | $this->lang = $this->fillParam($data, 'lang', ''); |
|
| 52 | 1 | } else { |
|
| 53 | 1 | $ret = $this->syntaxHighlighter->highlight($data['content'], $this->lang); |
|
| 54 | 1 | $ret .= "\n\n"; |
|
| 55 | } |
||
| 56 | |||
| 57 | 1 | return $ret; |
|
| 58 | } |
||
| 59 | } |
||
| 60 |