| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 25 | public function readStream($filename)  | 
            ||
| 26 |     { | 
            ||
| 27 |         if (!file_exists($filename)) { | 
            ||
| 28 |             throw new FileNotFoundException(sprintf('The file "%s" does not exists.', $filename)); | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | $stream = fopen($filename, 'r');  | 
            ||
| 32 |         if (!$stream) { | 
            ||
| 33 |             throw new FileNotFoundException(sprintf('The file "%s" can\'t be opened.', $filename)); | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | return $stream;  | 
            ||
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 |