src/Translation/LanguageParser.php
/**
	 * Parses the header and stores it.
	 *
	 * @param string $command
	 * @param string $line
	 * @param int $lineNumber
	 */
Parses the header and stores it.
Parses the header and stores it .
protected function parseHeader($command, $line, $lineNumber) {
		$headerName = ltrim($command, '@');
		$headerValue = trim($line);
		if (isset($this->headers[$headerName])) {
			throw new LanguageException(sprintf('Parse error: Header "%s" already declared on line %d.', $headerName, $lineNumber));
		}
		$this->headers[$headerName] = $headerValue;
	}
protected function parseHeader ( $ command , $ line , $ lineNumber ) { $ headerName = ltrim ( $ command , '@' ) ; $ headerValue = trim ( $ line ) ; if ( isset ( $ this -> headers [ $ headerName ] ) ) { throw new LanguageException ( sprintf ( 'Parse error: Header "%s" already declared on line %d.' , $ headerName , $ lineNumber ) ) ; } $ this -> headers [ $ headerName ] = $ headerValue ; }
Parses the header and stores it.
Parses the header and stores it .
// Extract the components // Check for duplicates // Store the header