Coding style
This commit is contained in:
parent
e5a88c918f
commit
eff2b34c7d
@ -569,10 +569,10 @@ final class Photo {
|
|||||||
case 5:
|
case 5:
|
||||||
// rotate 90 and mirror
|
// rotate 90 and mirror
|
||||||
$sourceImg = imagerotate($sourceImg, -90, 0);
|
$sourceImg = imagerotate($sourceImg, -90, 0);
|
||||||
$newWidth = $info['height'];
|
$newWidth = $info['height'];
|
||||||
$newHeight = $info['width'];
|
$newHeight = $info['width'];
|
||||||
$swapSize = true;
|
$swapSize = true;
|
||||||
imageflip($sourceImg, IMG_FLIP_HORIZONTAL);
|
imageflip($sourceImg, IMG_FLIP_HORIZONTAL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
@ -585,10 +585,10 @@ final class Photo {
|
|||||||
case 7:
|
case 7:
|
||||||
// rotate -90 and mirror
|
// rotate -90 and mirror
|
||||||
$sourceImg = imagerotate($sourceImg, 90, 0);
|
$sourceImg = imagerotate($sourceImg, 90, 0);
|
||||||
$newWidth = $info['height'];
|
$newWidth = $info['height'];
|
||||||
$newHeight = $info['width'];
|
$newHeight = $info['width'];
|
||||||
$swapSize = true;
|
$swapSize = true;
|
||||||
imageflip($sourceImg, IMG_FLIP_HORIZONTAL);
|
imageflip($sourceImg, IMG_FLIP_HORIZONTAL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 8:
|
case 8:
|
||||||
|
Loading…
Reference in New Issue
Block a user