From d05c165acebfe60a14bb336f077dc92298aba327 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 6 Jul 2015 16:33:54 +0200 Subject: [PATCH] These might be the final issues on scrutiniser, apart from code complexity. --- app/Helpers/Csv/Importer.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/app/Helpers/Csv/Importer.php b/app/Helpers/Csv/Importer.php index 0ce9fab492..3c6ded585d 100644 --- a/app/Helpers/Csv/Importer.php +++ b/app/Helpers/Csv/Importer.php @@ -15,8 +15,6 @@ use FireflyIII\Models\TransactionType; use Illuminate\Support\MessageBag; use Log; -set_time_limit(0); - /** * Class Importer * @@ -69,6 +67,8 @@ class Importer */ public function run() { + set_time_limit(0); + $this->map = $this->data->getMap(); $this->roles = $this->data->getRoles(); $this->mapped = $this->data->getMapped(); @@ -193,14 +193,6 @@ class Importer $data = $postProcessor->process(); } - - // $specifix = new Specifix(); - // $specifix->setData($data); - // $specifix->setRow($row); - //$specifix->fix($data, $row); // TODO - // get data back: - //$data = $specifix->getData(); // TODO - return $data; } @@ -224,7 +216,7 @@ class Importer /** * @param array $data * - * @return static + * @return TransactionJournal|string */ protected function createTransactionJournal(array $data) {