Code Duplication    Length = 3-7 lines in 2 locations

src/Elphin/IcoFileLoader/Ico.php 2 locations

@@ 404-406 (lines=3) @@
401
                                'High' => bindec(substr(decbin(ord($color)), 0, 4)),
402
                                'Low' => bindec(substr(decbin(ord($color)), 4)),
403
                            ];
404
                            if ($bits[$maskoffset++] == 0) {
405
                                imagesetpixel($im, $j, $i, $c[$color['High']]);
406
                            }
407
                            $leftbits = false;
408
                        } else {
409
                            if ($bits[$maskoffset++] == 0) {
@@ 408-414 (lines=7) @@
405
                                imagesetpixel($im, $j, $i, $c[$color['High']]);
406
                            }
407
                            $leftbits = false;
408
                        } else {
409
                            if ($bits[$maskoffset++] == 0) {
410
                                imagesetpixel($im, $j, $i, $c[$color['Low']]);
411
                            }
412
                            ++$offset;
413
                            $leftbits = true;
414
                        }
415
                    }
416
                }
417
                break;