Lines Matching refs:value
49 * @param string $value A PHP value
53 public static function requiresDoubleQuoting(string $value): bool argument
55 return 0 < preg_match('/'.self::REGEX_CHARACTER_TO_ESCAPE.'/u', $value);
61 * @param string $value A PHP value
65 public static function escapeWithDoubleQuotes(string $value): string argument
67 return sprintf('"%s"', str_replace(self::$escapees, self::$escaped, $value));
73 * @param string $value A PHP value
77 public static function requiresSingleQuoting(string $value): bool argument
81 …if (\in_array(strtolower($value), ['null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off…
87 …n 0 < preg_match('/[ \s \' " \: \{ \} \[ \] , & \* \# \?] | \A[ \- ? | < > = ! % @ ` ]/x', $value);
93 * @param string $value A PHP value
97 public static function escapeWithSingleQuotes(string $value): string argument
99 return sprintf("'%s'", str_replace('\'', '\'\'', $value));