public function validate($sourceFile, $originFile)
	{
		$this->validateLineEndings($originFile);
		if (substr($originFile, -4) === '.php')
		{
			$this->validateDefinedInPhpbb($originFile);
			$this->validateUtf8withoutbom($originFile);
			$this->validateNoPhpClosingTag($originFile);
		}

		if (strpos($originFile, $this->originLanguagePath . 'email/') === 0 && substr($originFile, -4) === '.txt')
		{
			$this->validateEmail($sourceFile, $originFile);
		}
		else if (strpos($originFile, $this->originLanguagePath . 'help_') === 0 && substr($originFile, -4) === '.php')
		{
			$this->validateHelpFile($sourceFile, $originFile);
		}
		else if ($originFile == $this->originLanguagePath . 'search_synonyms.php')
		{
			$this->validateSearchSynonymsFile($originFile);
		}
		else if ($originFile == $this->originLanguagePath . 'search_ignore_words.php')
		{
			$this->validateSearchIgnoreWordsFile($originFile);
		}
		else if (substr($originFile, -4) === '.php')
		{
			$this->validateLangFile($sourceFile, $originFile);
		}
		else if (substr($originFile, -9) === 'index.htm')
		{
			$this->validateIndexFile($originFile);
		}
		else if ($originFile === $this->originLanguagePath . 'LICENSE')
		{
			$this->validateLicenseFile($originFile);
		}
		else if ($originFile === $this->originLanguagePath . 'iso.txt')
		{
			$this->validateIsoFile($originFile);
		}
		else if (substr($originFile, -4) === '.css')
		{
			$this->validateUtf8withoutbom($originFile);
			$this->validateCSSFile($sourceFile, $originFile);
		}
		else
		{
			$this->output->addMessage(Output::NOTICE, 'File is not validated', $originFile);
		}
	}
public function validate($sourceFile, $originFile)
	{
		$this->validateLineEndings($originFile);
		if (substr($originFile, -4) === '.php')
		{
			$this->validateDefinedInPhpbb($originFile);
			$this->validateUtf8withoutbom($originFile);
			$this->validateNoPhpClosingTag($originFile);
		}

		if (strpos($originFile, $this->originLanguagePath . 'email/') === 0 && substr($originFile, -4) === '.txt')
		{
			$this->validateEmail($sourceFile, $originFile);
		}
		else if (strpos($originFile, $this->originLanguagePath . 'help_') === 0 && substr($originFile, -4) === '.php')
		{
			$this->validateHelpFile($sourceFile, $originFile);
		}
		else if ($originFile == $this->originLanguagePath . 'search_synonyms.php')
		{
			$this->validateSearchSynonymsFile($originFile);
		}
		else if ($originFile == $this->originLanguagePath . 'search_ignore_words.php')
		{
			$this->validateSearchIgnoreWordsFile($originFile);
		}
		else if (substr($originFile, -4) === '.php')
		{
			$this->validateLangFile($sourceFile, $originFile);
		}
		else if (substr($originFile, -9) === 'index.htm')
		{
			$this->validateIndexFile($originFile);
		}
		else if ($originFile === $this->originLanguagePath . 'LICENSE')
		{
			$this->validateLicenseFile($originFile);
		}
		else if ($originFile === $this->originLanguagePath . 'iso.txt')
		{
			$this->validateIsoFile($originFile);
		}
		else if (substr($originFile, -4) === '.css')
		{
			$this->validateUtf8withoutbom($originFile);
			$this->validateCSSFile($sourceFile, $originFile);
		}
		else
		{
			$this->output->addMessage(Output::NOTICE, 'File is not validated', $originFile);
		}
	}
public function validate ( $ sourceFile , $ originFile ) { $ this -> validateLineEndings ( $ originFile ) ; if ( substr ( $ originFile , - 4 ) === '.php' ) { $ this -> validateDefinedInPhpbb ( $ originFile ) ; $ this -> validateUtf8withoutbom ( $ originFile ) ; $ this -> validateNoPhpClosingTag ( $ originFile ) ; } if ( strpos ( $ originFile , $ this -> originLanguagePath . 'email/' ) === 0 && substr ( $ originFile , - 4 ) === '.txt' ) { $ this -> validateEmail ( $ sourceFile , $ originFile ) ; } else if ( strpos ( $ originFile , $ this -> originLanguagePath . 'help_' ) === 0 && substr ( $ originFile , - 4 ) === '.php' ) { $ this -> validateHelpFile ( $ sourceFile , $ originFile ) ; } else if ( $ originFile == $ this -> originLanguagePath . 'search_synonyms.php' ) { $ this -> validateSearchSynonymsFile ( $ originFile ) ; } else if ( $ originFile == $ this -> originLanguagePath . 'search_ignore_words.php' ) { $ this -> validateSearchIgnoreWordsFile ( $ originFile ) ; } else if ( substr ( $ originFile , - 4 ) === '.php' ) { $ this -> validateLangFile ( $ sourceFile , $ originFile ) ; } else if ( substr ( $ originFile , - 9 ) === 'index.htm' ) { $ this -> validateIndexFile ( $ originFile ) ; } else if ( $ originFile === $ this -> originLanguagePath . 'LICENSE' ) { $ this -> validateLicenseFile ( $ originFile ) ; } else if ( $ originFile === $ this -> originLanguagePath . 'iso.txt' ) { $ this -> validateIsoFile ( $ originFile ) ; } else if ( substr ( $ originFile , - 4 ) === '.css' ) { $ this -> validateUtf8withoutbom ( $ originFile ) ; $ this -> validateCSSFile ( $ sourceFile , $ originFile ) ; } else { $ this -> output -> addMessage ( Output :: NOTICE , 'File is not validated' , $ originFile ) ; } }
Decides which validation function to use

@param	string	$sourceFile		Source file for comparison
@param	string	$originFile		File to validate
@return	null
Decides which validation function to use