Skip to content

Commit 5b1f359

Browse files
Update and rename CSVParser.php to CSV.php
1 parent 56a2155 commit 5b1f359

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CSVParser.php renamed to src/CSV.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function parse($data) {
4141
if(is_file($data)) {
4242
if(is_readable($data)) {
4343
//Read data from file
44-
$fileData = file('data.csv', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
44+
$fileData = file($data, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
4545
$tmpData = [];
4646
foreach($fileData as $row) {
4747
$tmpData[] = array_map('trim', explode($this->delimiter, $row));

0 commit comments

Comments
 (0)