Coding style

This commit is contained in:
Quentin Ligier 2016-08-20 12:36:27 +02:00 committed by GitHub
parent e5a88c918f
commit eff2b34c7d

View File

@ -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: