Simon Vieille 2 years ago
parent
commit
b806c85932
2 changed files with 6 additions and 2 deletions
  1. 2
    2
      composer.json
  2. 4
    0
      src/Deblan/Csv/CsvParser.php

+ 2
- 2
composer.json View File

@@ -9,8 +9,8 @@
9 9
         }
10 10
     ],
11 11
     "autoload": {
12
-        "psr-0": {
13
-            "": "src/"
12
+        "psr-4": {
13
+            "Deblan\\Csv\\": "src/Deblan/Csv/"
14 14
         }
15 15
     }
16 16
 }

+ 4
- 0
src/Deblan/Csv/CsvParser.php View File

@@ -113,6 +113,10 @@ class CsvParser
113 113
 
114 114
     public function parse()
115 115
     {
116
+        if (!empty($this->datas)) {
117
+            return $this->datas;
118
+        }
119
+
116 120
         $lines = file($this->filename);
117 121
 
118 122
         if (empty($lines)) {

Loading…
Cancel
Save