original_string: private function tryParseAttribute($displayValue, IItem $item)
      {
          $parsedValue = $item->parseAttribute($displayValue);
          if (isset($parsedValue['text'])) {
              return $parsedValue['text'];
          }
  
          return $item->get($displayValue);
      }
code: private function tryParseAttribute($displayValue, IItem $item)
      {
          $parsedValue = $item->parseAttribute($displayValue);
          if (isset($parsedValue['text'])) {
              return $parsedValue['text'];
          }
  
          return $item->get($displayValue);
      }
code_tokens: private function tryParseAttribute ( $ displayValue , IItem $ item ) { $ parsedValue = $ item -> parseAttribute ( $ displayValue ) ; if ( isset ( $ parsedValue [ 'text' ] ) ) { return $ parsedValue [ 'text' ] ; } return $ item -> get ( $ displayValue ) ; }
docstring: Parse a column as text or return the native value if that failed.
  
  @param string $displayValue The attribute to parse.
  @param IITem  $item         The item to extract the value from.
  
  @return mixed
docstring_tokens: Parse a column as text or return the native value if that failed .