$length) { if ($preserve) { if (false !== ($breakpoint = mb_strpos($value, ' ', $length))) { $length = $breakpoint; } } return mb_substr($value, 0, $length) . $separator; } return $value; } function twig_ratio_function($w, $h) { return fraction($w, $h, ':'); }