@@ -62,6 +62,9 @@ |
||
62 | 62 | return $icon; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $data |
|
67 | + */ |
|
65 | 68 | private function parseIconDirEntries(Icon $icon, $data, $count) |
66 | 69 | { |
67 | 70 | for ($i = 0; $i < $count; ++$i) { |
@@ -38,10 +38,10 @@ |
||
38 | 38 | public function findBest() |
39 | 39 | { |
40 | 40 | $bestBitCount = 0; |
41 | - $bestWidth=0; |
|
41 | + $bestWidth = 0; |
|
42 | 42 | $best = null; |
43 | 43 | foreach ($this->images as $image) { |
44 | - if (($image->width > $bestWidth) || |
|
44 | + if (($image->width > $bestWidth) || |
|
45 | 45 | (($image->width == $bestWidth) && ($image->bitCount > $bestBitCount)) |
46 | 46 | ) { |
47 | 47 | $bestWidth = $image->width; |
@@ -110,9 +110,9 @@ |
||
110 | 110 | |
111 | 111 | public function setBitmapInfoHeader($bmpInfo) |
112 | 112 | { |
113 | - if ($this->bitCount!=$bmpInfo['BitCount']) { |
|
113 | + if ($this->bitCount != $bmpInfo['BitCount']) { |
|
114 | 114 | //the original code updated the ICONDIRENTRY with this, but it doesn't seem necessary... |
115 | - throw new \Exception("bit count changed from ".$this->bitCount. " to ".$bmpInfo['BitCount']); |
|
115 | + throw new \Exception("bit count changed from " . $this->bitCount . " to " . $bmpInfo['BitCount']); |
|
116 | 116 | } |
117 | 117 | //we need this to calculate offsets when rendering |
118 | 118 | $this->bmpHeaderWidth = $bmpInfo['Width']; |