src/Data/Extensions/YamlTranslator.php
public function validate()
	{
		try
		{
			Yaml\Yaml::parse($this->data);

		} catch(\Exception $e)
		{
			return false;
		}

		return true;
	}
public function validate()
	{
		try
		{
			Yaml\Yaml::parse($this->data);

		} catch(\Exception $e)
		{
			return false;
		}

		return true;
	}
public function validate ( ) { try { Yaml \ Yaml :: parse ( $ this -> data ) ; } catch ( \ Exception $ e ) { return false ; } return true ; }
Validates a Yaml string

@return Boolean
@author Dan Cox
Validates a Yaml string