original_string: 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));
      }
code: 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));
      }
code_tokens: 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 ) ) ; }
docstring: Formats a value as string.
  
  @param mixed $value
  
  @return string
docstring_tokens: Formats a value as string .