Lines Matching refs:string
15 * @param string $name
19 public static function validNameGuard(string $name)
33 * @param $string
34 * @return string
38 public static function toHtmlId($string): string
46 $string = str_replace(array(':', '.'), '', $string);
47 return sectionID($string, $check);
70 * @return string
76 public static function encode($text): string
98 public static function decode($int): string
103 public static function getDiffBetweenValuesSeparatedByBlank(string $expected, string $actual, string $expectedName = "expected class", string $actualName = "actual class"): string
127 public static function getDiffBetweenSrcSet(string $expected, string $actual)
171 public static function getDiffBetweenUrlStrings(string $expected, string $actual)
176 throw new ExceptionBadSyntax("The expected URL string ($expected) is not valid. Error: {$e->getMessage()}");
181 throw new ExceptionBadSyntax("The $actual URL string ($actual) is not valid. Error: {$e->getMessage()}");
189 * @param string $newNames - the name that we want to add
190 * @param ?string $actualNames - the actual names
191 * @return string - the class name list
199 public static function mergeClassNames(string $newNames, ?string $actualNames): string
217 * @return string - the value for the style attribute (ie all rules where joined with the comma)