src/Decorator/Parser/Ansi.php
protected function codeStr($codes)
    {
        // If we get something that is already a code string, just pass it back
        if (!is_array($codes) && strpos($codes, ';')) {
            return $codes;
        }

        $codes = Helper::toArray($codes);

        // Sort for the sake of consistency and testability
        sort($codes);

        return implode(';', $codes);
    }
protected function codeStr($codes)
    {
        // If we get something that is already a code string, just pass it back
        if (!is_array($codes) && strpos($codes, ';')) {
            return $codes;
        }

        $codes = Helper::toArray($codes);

        // Sort for the sake of consistency and testability
        sort($codes);

        return implode(';', $codes);
    }
protected function codeStr ( $ codes ) { // If we get something that is already a code string, just pass it back if ( ! is_array ( $ codes ) && strpos ( $ codes , ';' ) ) { return $ codes ; } $ codes = Helper :: toArray ( $ codes ) ; // Sort for the sake of consistency and testability sort ( $ codes ) ; return implode ( ';' , $ codes ) ; }
Stringify the codes

@param  mixed  $codes

@return string
Stringify the codes