Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
71 | public function readInformation($textEncoding) |
||
72 | { |
||
73 | $this->stream->seek(1); |
||
74 | |||
75 | $information = $this->stream->read($this->stream->getSize() - 1); |
||
76 | |||
77 | switch ($textEncoding) { |
||
78 | case self::ISO88591: |
||
79 | return iconv('ISO-8859-1', 'UTF-8', $information); |
||
80 | case self::UTF16: |
||
81 | return iconv('UTF-16', 'UTF-8', $information); |
||
82 | } |
||
83 | |||
84 | return $information; |
||
85 | } |
||
86 | } |
||
87 |