src/Csv.php
private function checkIdField() {
	if(is_null($this->headers)) {
		return;
	}
	if(in_array($this->idField, $this->headers)) {
		return;
	}

	foreach($this->headers as $header) {
		if(strtolower($this->idField) == strtolower($header)) {
			$this->setIdField($header);
		}
	}
}
private function checkIdField() {
	if(is_null($this->headers)) {
		return;
	}
	if(in_array($this->idField, $this->headers)) {
		return;
	}

	foreach($this->headers as $header) {
		if(strtolower($this->idField) == strtolower($header)) {
			$this->setIdField($header);
		}
	}
}
private function checkIdField ( ) { if ( is_null ( $ this -> headers ) ) { return ; } if ( in_array ( $ this -> idField , $ this -> headers ) ) { return ; } foreach ( $ this -> headers as $ header ) { if ( strtolower ( $ this -> idField ) == strtolower ( $ header ) ) { $ this -> setIdField ( $ header ) ; } } }
Check the header line for variations on the default ID field name, fixing
the case of the ID field.
Check the header line for variations on the default ID field name fixing the case of the ID field .