From 710f22eeb90cf04b63230db56947c6bf84feee1e Mon Sep 17 00:00:00 2001 From: William Knauss Date: Thu, 5 Jun 2014 20:40:00 -0400 Subject: [PATCH] parse_file --- parsecsv.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 1075eaf..899c25f 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -629,15 +629,15 @@ class parseCSV { * @return [array|bool] */ public function parse_file ($file = null) { - if ( $file === null ) { + if (is_null($file)) { $file = $this->file; } - if ( empty($this->file_data) ) { + if (empty($this->file_data)) { $this->load_data($file); } - return ( !empty($this->file_data) ) ? $this->parse_string() : false ; + return (!empty($this->file_data)) ? $this->parse_string() : false; } /**