public function validateNoPhpClosingTag($originFile)
	{
		$fileContents = (string) file_get_contents($this->originPath . '/' . $originFile);
		$fileContents = str_replace("\r\n", "\n", $fileContents);
		$fileContents = str_replace("\r", "\n", $fileContents);

		// Does the file contain anything after the last ");"
		if (substr($fileContents, -3) !== ");\n")
		{
			if (substr($fileContents, -3) !== "];\n")
			{
				$this->output->addMessage(Output::FATAL, 'File must not contain a PHP closing tag, but end with one new line', $originFile);
			}
		}
	}
public function validateNoPhpClosingTag($originFile)
	{
		$fileContents = (string) file_get_contents($this->originPath . '/' . $originFile);
		$fileContents = str_replace("\r\n", "\n", $fileContents);
		$fileContents = str_replace("\r", "\n", $fileContents);

		// Does the file contain anything after the last ");"
		if (substr($fileContents, -3) !== ");\n")
		{
			if (substr($fileContents, -3) !== "];\n")
			{
				$this->output->addMessage(Output::FATAL, 'File must not contain a PHP closing tag, but end with one new line', $originFile);
			}
		}
	}
public function validateNoPhpClosingTag ( $ originFile ) { $ fileContents = ( string ) file_get_contents ( $ this -> originPath . '/' . $ originFile ) ; $ fileContents = str_replace ( "\r\n" , "\n" , $ fileContents ) ; $ fileContents = str_replace ( "\r" , "\n" , $ fileContents ) ; // Does the file contain anything after the last ");" if ( substr ( $ fileContents , - 3 ) !== ");\n" ) { if ( substr ( $ fileContents , - 3 ) !== "];\n" ) { $ this -> output -> addMessage ( Output :: FATAL , 'File must not contain a PHP closing tag, but end with one new line' , $ originFile ) ; } } }
Validates whether a file does not contain a closing php tag

@param	string	$originFile		File to validate
@return	null
Validates whether a file does not contain a closing php tag