_validate_offset readability

This commit is contained in:
William Knauss
2014-05-13 21:05:53 -04:00
parent 9b6dbd9849
commit 75d7d51a9c

View File

@@ -974,11 +974,17 @@ class parseCSV {
/**
* Validates if the row is within the offset or not if sorting is disabled
*
* @access public
* @param current_row the current row number being processed
*
* @return true of false
*/
function _validate_offset ($current_row) {
if ( $this->sort_by === null && $this->offset !== null && $current_row < $this->offset ) return false;
public function _validate_offset ($current_row) {
if ( $this->sort_by === null && $this->offset !== null && $current_row < $this->offset ) {
return false;
}
return true;
}