| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | public function getAllInfo() |
||
| 60 | { |
||
| 61 | $list = (new UserList($this->_user, $this->_type, 7))->getAllInfo(); |
||
| 62 | |||
| 63 | $cover = ''; |
||
| 64 | foreach ($list as $c) { |
||
|
|
|||
| 65 | if ($this->_type == 'anime') { |
||
| 66 | $temp = str_replace(['{id}', '{url}'], [$c['anime_id'], $c['anime_image_path']], $this->_style); |
||
| 67 | } else { |
||
| 68 | $temp = str_replace(['{id}', '{url}'], [$c['manga_id'], $c['manga_image_path']], $this->_style); |
||
| 69 | } |
||
| 70 | $cover .= $temp."\n"; |
||
| 71 | } |
||
| 72 | |||
| 73 | return $cover; |
||
| 74 | } |
||
| 76 |