From e16d818d07a08e188b3d84a2a080a29f600235ca Mon Sep 17 00:00:00 2001 From: William Knauss Date: Wed, 5 Feb 2014 18:24:41 -0500 Subject: [PATCH] cleaned up construct --- parsecsv.lib.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index e997a2a..57eba4c 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -174,10 +174,21 @@ class parseCSV { * @return nothing */ function parseCSV ($input = null, $offset = null, $limit = null, $conditions = null) { - if ( $offset !== null ) $this->offset = $offset; - if ( $limit !== null ) $this->limit = $limit; - if ( count($conditions) > 0 ) $this->conditions = $conditions; - if ( !empty($input) ) $this->parse($input); + if ($offset!==null) { + $this->offset = $offset; + } + + if ($limit!==null) { + $this->limit = $limit; + } + + if (count($conditions)>0) { + $this->conditions = $conditions; + } + + if (!empty($input)) { + $this->parse($input); + } }