lib/PHPRtfLite/DocHead/ColorTable.php
private static function getColorAsFullHexCode($color)
    {
        $color = ltrim($color, '#');

        if (strlen($color) == 3) {
            $color = str_repeat(substr($color, 0, 1), 2)
                   . str_repeat(substr($color, 1, 1), 2)
                   . str_repeat(substr($color, 2, 1), 2);
        }

        return strtoupper($color);
    }
private static function getColorAsFullHexCode($color)
    {
        $color = ltrim($color, '#');

        if (strlen($color) == 3) {
            $color = str_repeat(substr($color, 0, 1), 2)
                   . str_repeat(substr($color, 1, 1), 2)
                   . str_repeat(substr($color, 2, 1), 2);
        }

        return strtoupper($color);
    }
private static function getColorAsFullHexCode ( $ color ) { $ color = ltrim ( $ color , '#' ) ; if ( strlen ( $ color ) == 3 ) { $ color = str_repeat ( substr ( $ color , 0 , 1 ) , 2 ) . str_repeat ( substr ( $ color , 1 , 1 ) , 2 ) . str_repeat ( substr ( $ color , 2 , 1 ) , 2 ) ; } return strtoupper ( $ color ) ; }
gets color in hex code

@param  string $color
@return string
gets color in hex code