Determines if a PHP value would require double quoting in YAML.
string $value A PHP value:
Boolean True if the value would require double quotes.
public static function requiresDoubleQuoting($value) {
return preg_match('/' . self::REGEX_CHARACTER_TO_ESCAPE . '/u', $value);
}