| File: CommentableCsvDataSet.php Lines 29 to 48 | 
 | 
29 |     } | 
 | 
30 |  | 
 | 
31 |     /** | 
 | 
32 |      * Returns a row from the csv file in an indexed array. | 
 | 
33 |      * | 
 | 
34 |      * @param resource $fh | 
 | 
35 |      * | 
 | 
36 |      * @return array|false | 
 | 
37 |      */ | 
 |  |     protected function getCsvRow($fh) | 
 | 
39 |     { | 
 | 
40 |         if (version_compare(PHP_VERSION, '5.3.0', '>')) { | 
 | 
41 |             $rows = fgetcsv($fh, null, $this->delimiter, $this->enclosure, $this->escape); | 
 | 
42 |         } else { | 
 | 
43 |             $rows = fgetcsv($fh, null, $this->delimiter, $this->enclosure); | 
 | 
44 |         } | 
 | 
45 |  | 
 | 
46 |         if ($rows === false) { | 
 | 
47 |             return false; | 
 | 
48 |         } | 
|   |