1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-21 05:01:20 +02:00

Reformat code

This commit is contained in:
Oliver Vogel
2022-05-22 18:52:52 +02:00
parent f3b4092fac
commit bdcf6d490c

View File

@@ -25,8 +25,13 @@ class GifEncoder extends AbstractEncoder implements EncoderInterface
protected function encodeAnimated($image): EncodedImage
{
$builder = GifBuilder::canvas($image->getWidth(), $image->getHeight(), $image->getLoops());
foreach ($image as $key => $frame) {
$builder = GifBuilder::canvas(
$image->getWidth(),
$image->getHeight(),
$image->getLoops()
);
foreach ($image as $frame) {
$source = $this->encode($frame->toImage());
$builder->addFrame($source, $frame->getDelay());
}