Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 150
Zeile 391... Zeile 391...
391
		int $srcWidth,
391
		int $srcWidth,
392
		int $srcHeight,
392
		int $srcHeight,
393
		$newWidth,
393
		$newWidth,
394
		$newHeight,
394
		$newHeight,
395
		int $flags = self::FIT
395
		int $flags = self::FIT
396
	): array {
396
	): array
-
 
397
	{
397
		if ($newWidth === null) {
398
		if ($newWidth === null) {
398
		} elseif (self::isPercent($newWidth)) {
399
		} elseif (self::isPercent($newWidth)) {
399
			$newWidth = (int) round($srcWidth / 100 * abs($newWidth));
400
			$newWidth = (int) round($srcWidth / 100 * abs($newWidth));
400
			$percents = true;
401
			$percents = true;
401
		} else {
402
		} else {