Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function getTrackIdsAsArray() { |
||
35 | if (!$this->trackIds || strlen($this->trackIds) < 3) { |
||
36 | // the list is empty if there is nothing between the leading and trailing '|' |
||
37 | return []; |
||
38 | } else { |
||
39 | $encoded = substr($this->trackIds, 1, -1); // omit leading and trailing '|' |
||
40 | return array_map('intval', explode('|', $encoded)); |
||
41 | } |
||
42 | } |
||
43 | |||
61 |