build/commands/TranslationsCommand.php
protected function checkFiles($translatedFilePath = null, $sourceFilePath = null)
	{
		$errors = array();
		if($translatedFilePath!==null && !file_exists($translatedFilePath)) {
			$errors[] = 'Translation does not exist.';
		}

		if($sourceFilePath!==null && !file_exists($sourceFilePath)) {
			$errors[] = 'Source does not exist.';
		}

		return $errors;
	}
protected function checkFiles($translatedFilePath = null, $sourceFilePath = null)
	{
		$errors = array();
		if($translatedFilePath!==null && !file_exists($translatedFilePath)) {
			$errors[] = 'Translation does not exist.';
		}

		if($sourceFilePath!==null && !file_exists($sourceFilePath)) {
			$errors[] = 'Source does not exist.';
		}

		return $errors;
	}
protected function checkFiles ( $ translatedFilePath = null , $ sourceFilePath = null ) { $ errors = array ( ) ; if ( $ translatedFilePath !== null && ! file_exists ( $ translatedFilePath ) ) { $ errors [ ] = 'Translation does not exist.' ; } if ( $ sourceFilePath !== null && ! file_exists ( $ sourceFilePath ) ) { $ errors [ ] = 'Source does not exist.' ; } return $ errors ; }
Checks for files existence

@param string $translatedFilePath
@param string $sourceFilePath
@return array errors
Checks for files existence