@@ -174,9 +174,13 @@ |
||
| 174 | 174 | $p = 0; |
| 175 | 175 | while ($total_icons > 0) {
|
| 176 | 176 | if (!$this->use_diferent_depths) {
|
| 177 | - while (isset($icons[$p + 1]) && $icons[$p]['size'] == $last_size) $p++; |
|
| 177 | + while (isset($icons[$p + 1]) && $icons[$p]['size'] == $last_size) {
|
|
| 178 | + $p++; |
|
| 179 | + } |
|
| 178 | 180 | } |
| 179 | - if (!isset($icons[$p])) break; |
|
| 181 | + if (!isset($icons[$p])) {
|
|
| 182 | + break; |
|
| 183 | + } |
|
| 180 | 184 | $chosen_icons[] = $icons[$p]['index']; |
| 181 | 185 | $last_size = $icons[$p++]['size']; |
| 182 | 186 | $total_icons--; |
@@ -99,7 +99,9 @@ |
||
| 99 | 99 | for ($i = 0; $i < $this->ico['Count']; $i ++) {
|
| 100 | 100 | $icodata = unpack("CWidth/CHeight/CColorCount/CReserved/SPlanes/SBitCount/LSizeInBytes/LFileOffset", $data);
|
| 101 | 101 | $icodata['FileOffset'] -= ($this->ico['Count'] * 16) + 6; |
| 102 | - if ($icodata['ColorCount'] == 0) $icodata['ColorCount'] = 256; |
|
| 102 | + if ($icodata['ColorCount'] == 0) {
|
|
| 103 | + $icodata['ColorCount'] = 256; |
|
| 104 | + } |
|
| 103 | 105 | $this->formats[] = $icodata; |
| 104 | 106 | |
| 105 | 107 | $data = substr($data, 16); |