This commit is contained in:
Simon Vieille 2016-04-04 09:56:00 +02:00
parent 96c829967f
commit b806c85932
2 changed files with 6 additions and 2 deletions

View File

@ -9,8 +9,8 @@
} }
], ],
"autoload": { "autoload": {
"psr-0": { "psr-4": {
"": "src/" "Deblan\\Csv\\": "src/Deblan/Csv/"
} }
} }
} }

View File

@ -113,6 +113,10 @@ class CsvParser
public function parse() public function parse()
{ {
if (!empty($this->datas)) {
return $this->datas;
}
$lines = file($this->filename); $lines = file($this->filename);
if (empty($lines)) { if (empty($lines)) {