mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
_validate_offset readability
This commit is contained in:
@@ -974,11 +974,17 @@ class parseCSV {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates if the row is within the offset or not if sorting is disabled
|
* 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
|
* @param current_row the current row number being processed
|
||||||
|
*
|
||||||
* @return true of false
|
* @return true of false
|
||||||
*/
|
*/
|
||||||
function _validate_offset ($current_row) {
|
public function _validate_offset ($current_row) {
|
||||||
if ( $this->sort_by === null && $this->offset !== null && $current_row < $this->offset ) return false;
|
if ( $this->sort_by === null && $this->offset !== null && $current_row < $this->offset ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user