protected function parseContent($content) {
		$lines  = explode(PHP_EOL, $content);
		$result = [];
		
		foreach ($lines as $lineNm => $lineRaw) {
			if (empty($lineRaw)) {
				continue;
			}
			
			$line = str_getcsv($lineRaw, $this->csvDelimiter, $this->csvEnclosure);
			
			// Lack of data detection
			if (count($line) < 2) {
				$template = 'Error has occurred while parsing CSV file for the file: "%s" on line %s';
				throw new ParseError(sprintf($template, $this->lastFilePath, $lineNm));
			}
			
			$id = trim($line[0]);
			
			// Override detection
			if (isset($result[$id])) {
				$template = 'Translation with ID "%s" is already defined in the file "%s"';
				throw new ParseError(sprintf($template, $id, $this->lastFilePath));
			}
			
			$result[$id] = trim($line[1]);
		}
		
		return $result;
	}
protected function parseContent($content) {
		$lines  = explode(PHP_EOL, $content);
		$result = [];
		
		foreach ($lines as $lineNm => $lineRaw) {
			if (empty($lineRaw)) {
				continue;
			}
			
			$line = str_getcsv($lineRaw, $this->csvDelimiter, $this->csvEnclosure);
			
			// Lack of data detection
			if (count($line) < 2) {
				$template = 'Error has occurred while parsing CSV file for the file: "%s" on line %s';
				throw new ParseError(sprintf($template, $this->lastFilePath, $lineNm));
			}
			
			$id = trim($line[0]);
			
			// Override detection
			if (isset($result[$id])) {
				$template = 'Translation with ID "%s" is already defined in the file "%s"';
				throw new ParseError(sprintf($template, $id, $this->lastFilePath));
			}
			
			$result[$id] = trim($line[1]);
		}
		
		return $result;
	}
protected function parseContent ( $ content ) { $ lines = explode ( PHP_EOL , $ content ) ; $ result = [ ] ; foreach ( $ lines as $ lineNm => $ lineRaw ) { if ( empty ( $ lineRaw ) ) { continue ; } $ line = str_getcsv ( $ lineRaw , $ this -> csvDelimiter , $ this -> csvEnclosure ) ; // Lack of data detection if ( count ( $ line ) < 2 ) { $ template = 'Error has occurred while parsing CSV file for the file: "%s" on line %s' ; throw new ParseError ( sprintf ( $ template , $ this -> lastFilePath , $ lineNm ) ) ; } $ id = trim ( $ line [ 0 ] ) ; // Override detection if ( isset ( $ result [ $ id ] ) ) { $ template = 'Translation with ID "%s" is already defined in the file "%s"' ; throw new ParseError ( sprintf ( $ template , $ id , $ this -> lastFilePath ) ) ; } $ result [ $ id ] = trim ( $ line [ 1 ] ) ; } return $ result ; }
Parse the CSV-content

@param  string $content
@return array
@throws ParseError
Parse the CSV - content