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; } /**