Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function explodeLines($data) |
||
25 | { |
||
26 | $this->data = explode("\n", str_replace(array("\r\n", "\n\r", "\r"), "\n", $data)); |
||
27 | |||
28 | if (is_array($this->data)) { |
||
|
|||
29 | |||
30 | foreach ($this->data as $key => $val) { |
||
31 | |||
32 | $this->arr->append($val); |
||
33 | |||
34 | $this->cleanLine($key, $val); |
||
35 | |||
36 | } |
||
37 | } else { |
||
38 | return; |
||
39 | } |
||
48 | } |