@@ -453,7 +453,7 @@ |
||
453 | 453 | * @param int $red Red component |
454 | 454 | * @param int $green Green component |
455 | 455 | * @param int $blue Blue component |
456 | - * @param int $alphpa Alpha channel |
|
456 | + * @param int $alpha Alpha channel |
|
457 | 457 | * |
458 | 458 | * @return int Color index |
459 | 459 | **/ |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | **/ |
108 | 108 | for ($i = 0; $i < count($this->formats); ++$i) { |
109 | 109 | $icodata = unpack( |
110 | - 'LSize/LWidth/LHeight/SPlanes/SBitCount/LCompression/LImageSize/'. |
|
110 | + 'LSize/LWidth/LHeight/SPlanes/SBitCount/LCompression/LImageSize/' . |
|
111 | 111 | 'LXpixelsPerM/LYpixelsPerM/LColorsUsed/LColorsImportant', |
112 | 112 | substr($data, $this->formats[$i]['FileOffset']) |
113 | 113 | ); |
@@ -230,9 +230,9 @@ discard block |
||
230 | 230 | public function setBackground($red = 255, $green = 255, $blue = 255) |
231 | 231 | { |
232 | 232 | if (is_string($red) && preg_match('/^\#[0-9a-f]{6}$/', $red)) { |
233 | - $green = hexdec($red[3].$red[4]); |
|
234 | - $blue = hexdec($red[5].$red[6]); |
|
235 | - $red = hexdec($red[1].$red[2]); |
|
233 | + $green = hexdec($red[3] . $red[4]); |
|
234 | + $blue = hexdec($red[5] . $red[6]); |
|
235 | + $red = hexdec($red[1] . $red[2]); |
|
236 | 236 | } |
237 | 237 | |
238 | 238 | $this->bgcolor = [$red, $green, $blue]; |