| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 1 | private function drawBox($asin, $title, $author) |
|
| 30 | { |
||
| 31 | 1 | $img = 'http://images.amazon.com/images/P/' . $this->e($asin) |
|
| 32 | 1 | . '.01._SCMZZZZZZZ_V65020934_.jpg'; |
|
| 33 | |||
| 34 | $ret = '<div class="amazon clear">' |
||
| 35 | . '<div class="img-border">' |
||
| 36 | 1 | . '<div class="img" style="background-image: url(' . $this->e($img) . ');"></div>' |
|
| 37 | 1 | . '</div>' |
|
| 38 | 1 | . '<p class="title"><strong>' . $this->e($title) . '</strong></p>' |
|
| 39 | 1 | . '<p class="author">' . $this->e($author) . '</p>' |
|
| 40 | 1 | . '</div>'; |
|
| 41 | |||
| 42 | 1 | return $ret; |
|
| 43 | } |
||
| 44 | |||
| 65 |