Completed
Branch master (4dbcc3)
by Paul
01:59
created
class.icothumb.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,9 +174,13 @@
 block discarded – undo
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--;
Please login to merge, or discard this patch.
class.ico.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.