Skip to content

Commit

Permalink
reducing cyclomatic complexity without affecting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecolonconsulting committed Sep 14, 2014
1 parent 4e6d714 commit 4dd1a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/EasyCSV/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getRow()
$this->handle->next();
}

if ($row !== false && $row != null && $isEmpty === false) {
if ($isEmpty === false) {
return ($this->headers && is_array($this->headers)) ? array_combine($this->headers, $row) : $row;
} elseif ($isEmpty) {
// empty row, transparently try the next row
Expand Down

0 comments on commit 4dd1a4d

Please sign in to comment.