| Conditions | 5 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 1 | public function draw(array $data) |
|
| 42 | { |
||
| 43 | 1 | $ret = ''; |
|
| 44 | |||
| 45 | 1 | if ($data['tag'] === 'fn' && $data['front']) { |
|
| 46 | 1 | $this->cnt++; |
|
| 47 | 1 | $ret = '[' . $this->cnt . ']'; |
|
| 48 | 1 | } elseif ($data['tag'] === 'fnt' && !$data['front']) { |
|
| 49 | 1 | $this->footnotes[] = $data['content']; |
|
| 50 | 1 | } |
|
| 51 | |||
| 52 | 1 | return $ret; |
|
| 53 | } |
||
| 54 | |||
| 85 |