Home
last modified time | relevance | path

Searched refs:stringRatio (Results 1 – 2 of 2) sorted by relevance

/plugin/combo/ComboStrap/
H A DImageSystem.php22 $stringRatio = $tagAttributes->getValue(Dimension::RATIO_ATTRIBUTE);
23 if ($stringRatio === null) {
33 $targetRatio = Dimension::convertTextualRatioToNumber($stringRatio);
35 LogUtility::error("The ratio ($stringRatio) is not a valid ratio. Error: {$e->getMessage()}", PageImageTag::CANONICAL);
H A DDimension.php215 * @param string $stringRatio
219 public static function convertTextualRatioToNumber(string $stringRatio): float argument
221 list($width, $height) = explode(":", $stringRatio, 2);
225 throw new ExceptionBadSyntax("The width value ($width) of the ratio `$stringRatio` is not numeric", PageImageTag::CANONICAL);
230 throw new ExceptionBadSyntax("The width value ($height) of the ratio `$stringRatio` is not numeric", PageImageTag::CANONICAL);
233 throw new ExceptionBadSyntax("The height value of the ratio `$stringRatio` should not be zero", PageImageTag::CANONICAL);