diff --git a/src/Decoder.php b/src/Decoder.php index b9c6411..f8f50c0 100644 --- a/src/Decoder.php +++ b/src/Decoder.php @@ -323,7 +323,6 @@ protected function readImageDescriptor() /** * @param int $bytesCount How many bytes to read - * @return bool */ protected function readBytes($bytesCount) { diff --git a/src/Encoder.php b/src/Encoder.php index cd8bf8c..7ce20f6 100644 --- a/src/Encoder.php +++ b/src/Encoder.php @@ -137,8 +137,7 @@ public function addFrame(Frame $frame) if ($tcolor instanceof Color && $localPackedFields & 0x80) { // Look for transparent color in Global Color Table for ($j = 0; $j < $localColorTableSize / 3; $j++) { - if ( - ord($localColorTable[3 * $j + 0]) == ($tcolor->red & 0xFF) && + if (ord($localColorTable[3 * $j + 0]) == ($tcolor->red & 0xFF) && ord($localColorTable[3 * $j + 1]) == ($tcolor->green & 0xFF) && ord($localColorTable[3 * $j + 2]) == ($tcolor->blue & 0xFF) ) { @@ -190,8 +189,6 @@ public function addFrame(Frame $frame) $this->output->writeString($imgData); - // ADD FRAMES END // - $this->frameIndex++; } @@ -238,4 +235,4 @@ public function getStream() { return $this->output; } -} \ No newline at end of file +}