From ae431d2e325853e2edc32f18ee36d74dcc1725cb Mon Sep 17 00:00:00 2001 From: Azmi Makarima Date: Thu, 22 Apr 2021 19:59:52 +0700 Subject: [PATCH] move path from constructor to ->auto --- src/RawDataGetter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RawDataGetter.php b/src/RawDataGetter.php index 1676ba7..30d3651 100644 --- a/src/RawDataGetter.php +++ b/src/RawDataGetter.php @@ -80,7 +80,8 @@ public static function getVillages() */ public static function getCsvData($path = '') { - $csv = new Csv($path); + $csv = new Csv(); + $csv->auto($path); return $csv->data; }