private function implode($value, $separator = '|'): string
    {
        if (is_string($value)) {
            return $value;
        }

        if (is_array($value) && count($value) === 1) {
            return reset($value);
        }

        return sprintf('(%s)', collect($value)->implode($separator));
    }
private function implode($value, $separator = '|'): string
    {
        if (is_string($value)) {
            return $value;
        }

        if (is_array($value) && count($value) === 1) {
            return reset($value);
        }

        return sprintf('(%s)', collect($value)->implode($separator));
    }
private function implode ( $ value , $ separator = '|' ) : string { if ( is_string ( $ value ) ) { return $ value ; } if ( is_array ( $ value ) && count ( $ value ) === 1 ) { return reset ( $ value ) ; } return sprintf ( '(%s)' , collect ( $ value ) -> implode ( $ separator ) ) ; }
Implode values with the appropriate prefix, suffix and separator.
Implode values with the appropriate prefix suffix and separator .