Code Duplication    Length = 10-10 lines in 2 locations

thumbs/phpthumb.bmp.php 1 location

@@ 916-925 (lines=10) @@
913
     * @param $byteword
914
     * @return string
915
     */
916
    public function BigEndian2Bin($byteword)
917
    {
918
        $binvalue    = '';
919
        $bytewordlen = strlen($byteword);
920
        for ($i = 0; $i < $bytewordlen; $i++) {
921
            $binvalue .= str_pad(decbin(ord($byteword{$i})), 8, '0', STR_PAD_LEFT);
922
        }
923
924
        return $binvalue;
925
    }
926
927
    /**
928
     * @param $rawdata

thumbs/phpthumb.functions.php 1 location

@@ 276-285 (lines=10) @@
273
     * @param $string
274
     * @return string
275
     */
276
    public static function HexCharDisplay($string)
277
    {
278
        $len    = strlen($string);
279
        $output = '';
280
        for ($i = 0; $i < $len; $i++) {
281
            $output .= ' 0x' . str_pad(dechex(ord($string{$i})), 2, '0', STR_PAD_LEFT);
282
        }
283
284
        return $output;
285
    }
286
287
    /**
288
     * @param $HexColorString