original_string: public function readFile() {
          if (!file_exists($this->filename)) {
              throw new Exception(__CLASS__ . ' couldn\'t find the CSV file.');
          }
          //Prepare fgetcsv parameters
          $length = isset($this->fgetcsvOptions['length']) ? $this->fgetcsvOptions['length'] : 0;
          $delimiter = isset($this->fgetcsvOptions['delimiter']) ? $this->fgetcsvOptions['delimiter'] : ',';
          $enclosure = isset($this->fgetcsvOptions['enclosure']) ? $this->fgetcsvOptions['enclosure'] : '"';
          $escape = isset($this->fgetcsvOptions['escape']) ? $this->fgetcsvOptions['escape'] : "\\";
  
          $lines = []; //Clear and set rows
          if (($fp = fopen($this->filename, 'r')) !== FALSE) {
              while (($line = fgetcsv($fp, $length, $delimiter, $enclosure, $escape)) !== FALSE) {
                  array_push($lines, $line);
              }
          }
          //Remove unused lines from all lines
          for ($i = 0; $i < $this->startFromLine; $i++) {
              unset($lines[$i]);
          }
          return $lines;
      }
code: public function readFile() {
          if (!file_exists($this->filename)) {
              throw new Exception(__CLASS__ . ' couldn\'t find the CSV file.');
          }
          //Prepare fgetcsv parameters
          $length = isset($this->fgetcsvOptions['length']) ? $this->fgetcsvOptions['length'] : 0;
          $delimiter = isset($this->fgetcsvOptions['delimiter']) ? $this->fgetcsvOptions['delimiter'] : ',';
          $enclosure = isset($this->fgetcsvOptions['enclosure']) ? $this->fgetcsvOptions['enclosure'] : '"';
          $escape = isset($this->fgetcsvOptions['escape']) ? $this->fgetcsvOptions['escape'] : "\\";
  
          $lines = []; //Clear and set rows
          if (($fp = fopen($this->filename, 'r')) !== FALSE) {
              while (($line = fgetcsv($fp, $length, $delimiter, $enclosure, $escape)) !== FALSE) {
                  array_push($lines, $line);
              }
          }
          //Remove unused lines from all lines
          for ($i = 0; $i < $this->startFromLine; $i++) {
              unset($lines[$i]);
          }
          return $lines;
      }
code_tokens: public function readFile ( ) { if ( ! file_exists ( $ this -> filename ) ) { throw new Exception ( __CLASS__ . ' couldn\'t find the CSV file.' ) ; } //Prepare fgetcsv parameters $ length = isset ( $ this -> fgetcsvOptions [ 'length' ] ) ? $ this -> fgetcsvOptions [ 'length' ] : 0 ; $ delimiter = isset ( $ this -> fgetcsvOptions [ 'delimiter' ] ) ? $ this -> fgetcsvOptions [ 'delimiter' ] : ',' ; $ enclosure = isset ( $ this -> fgetcsvOptions [ 'enclosure' ] ) ? $ this -> fgetcsvOptions [ 'enclosure' ] : '"' ; $ escape = isset ( $ this -> fgetcsvOptions [ 'escape' ] ) ? $ this -> fgetcsvOptions [ 'escape' ] : "\\" ; $ lines = [ ] ; //Clear and set rows if ( ( $ fp = fopen ( $ this -> filename , 'r' ) ) !== FALSE ) { while ( ( $ line = fgetcsv ( $ fp , $ length , $ delimiter , $ enclosure , $ escape ) ) !== FALSE ) { array_push ( $ lines , $ line ) ; } } //Remove unused lines from all lines for ( $ i = 0 ; $ i < $ this -> startFromLine ; $ i ++ ) { unset ( $ lines [ $ i ] ) ; } return $ lines ; }
docstring: Will read CSV file into array
  @throws Exception
  @return $array csv filtered data
docstring_tokens: Will read CSV file into array