Skip to content

Commit 52c0537

Browse files
committed
minor #860 [Demo] Fix cs on image crop demo (chr-hertel)
This PR was merged into the main branch. Discussion ---------- [Demo] Fix cs on image crop demo | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | | License | MIT Only CS Commits ------- da09919 Fix cs on image crop demo
2 parents 07594e9 + da09919 commit 52c0537

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/src/Crop/Image/Analyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ public function getRelevantArea(string $imageData): RelevantArea
5858
}
5959
}
6060

61-
return new RelevantArea((int) $xMin, (int)$yMin, (int)$xMax, (int)$yMax);
61+
return new RelevantArea((int) $xMin, (int) $yMin, (int) $xMax, (int) $yMax);
6262
}
6363
}

demo/src/Crop/Image/Resampler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@ public function resample(string $imageData, RelevantArea $area, string $format,
8888
imagedestroy($resampled);
8989
unlink($filePath);
9090

91-
return 'data:'.explode(';', explode(':', $imageData, 2)[1], 2)[0].';base64,'. base64_encode($imageContent);
91+
return 'data:'.explode(';', explode(':', $imageData, 2)[1], 2)[0].';base64,'.base64_encode($imageContent);
9292
}
9393
}

0 commit comments

Comments
 (0)