protected function formatValue($value)
    {
        if (\is_object($value)) {
            return sprintf('object(%s)', \get_class($value));
        }

        if (\is_string($value)) {
            return $value;
        }

        return preg_replace("/\n\s*/s", '', var_export($value, true));
    }
protected function formatValue($value)
    {
        if (\is_object($value)) {
            return sprintf('object(%s)', \get_class($value));
        }

        if (\is_string($value)) {
            return $value;
        }

        return preg_replace("/\n\s*/s", '', var_export($value, true));
    }
protected function formatValue ( $ value ) { if ( \ is_object ( $ value ) ) { return sprintf ( 'object(%s)' , \ get_class ( $ value ) ) ; } if ( \ is_string ( $ value ) ) { return $ value ; } return preg_replace ( "/\n\s*/s" , '' , var_export ( $ value , true ) ) ; }
Formats a value as string.

@param mixed $value

@return string
Formats a value as string .