Code Duplication    Length = 3-3 lines in 2 locations

src/Elphin/IcoFileLoader/GdRenderer.php 1 location

@@ 281-283 (lines=3) @@
278
279
        $colorbits = '';
280
        $total = strlen($img->bmpData);
281
        for ($i = 0; $i < $total; ++$i) {
282
            $colorbits .= str_pad(decbin(ord($img->bmpData[$i])), 8, '0', STR_PAD_LEFT);
283
        }
284
285
        $offset = 0;
286
        for ($i = $img->height - 1; $i >= 0; --$i) {

src/Elphin/IcoFileLoader/Ico.php 1 location

@@ 514-516 (lines=3) @@
511
         **/
512
        $colorbits = '';
513
        $total = strlen($metadata['data']);
514
        for ($i = 0; $i < $total; ++$i) {
515
            $colorbits .= str_pad(decbin(ord($metadata['data'][$i])), 8, '0', STR_PAD_LEFT);
516
        }
517
518
        $offset = 0;
519
        for ($i = $metadata['Height'] - 1; $i >= 0; --$i) {