| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | 1 | public function draw(array $data) |
|
| 51 | { |
||
| 52 | 1 | $ret = ''; |
|
| 53 | |||
| 54 | 1 | if ($data['front']) { |
|
| 55 | 1 | $asin = $this->fillParam($data, 'asin', ''); |
|
| 56 | 1 | $title = $this->fillParam($data, 'title', ''); |
|
| 57 | 1 | $author = $this->fillParam($data, 'author', ''); |
|
| 58 | |||
| 59 | 1 | $ret = $this->drawBox($asin, $title, $author); |
|
| 60 | 1 | } |
|
| 61 | |||
| 62 | 1 | return $ret; |
|
| 63 | } |
||
| 64 | } |
||
| 65 |