From 75d7d51a9c781364e769a57baec7ea5f36644f65 Mon Sep 17 00:00:00 2001 From: William Knauss Date: Tue, 13 May 2014 21:05:53 -0400 Subject: [PATCH] _validate_offset readability --- parsecsv.lib.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 57bc098..72e764d 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -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; }