Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Minor formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stil committed Oct 14, 2016
1 parent 3d63f7c commit 45e42a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ protected function readImageDescriptor()

/**
* @param int $bytesCount How many bytes to read
* @return bool
*/
protected function readBytes($bytesCount)
{
Expand Down
7 changes: 2 additions & 5 deletions src/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
) {
Expand Down Expand Up @@ -190,8 +189,6 @@ public function addFrame(Frame $frame)

$this->output->writeString($imgData);

// ADD FRAMES END //

$this->frameIndex++;
}

Expand Down Expand Up @@ -238,4 +235,4 @@ public function getStream()
{
return $this->output;
}
}
}

0 comments on commit 45e42a2

Please sign in to comment.