original_string: private function getEventDetailsHtml(&$details) {
      $html = '<h4>Event Goal</h4><pre>' .
              'Use Event Value = ' . $details->getUseEventValue();
  
      // Get all the event goal conditions.
      $conditions = $details->getEventConditions();
  
      // String condition types.
      $stringTypes = array('CATEGORY', 'ACTION', 'LABEL');
  
      foreach ($conditions as &$condition) {
        $html .= "Event Type = $condition->getEventType()";
  
        $eventType = $condition->getType();
        if (in_array($eventType, $stringTypes)) {
          // Process CATEGORY, ACTION, LABEL.
          $html .= "Match Type = $condition->getMatchType()" .
                   "Expression = $condition->getExpression()";
        } else {
          // Process VALUE.
          $html .= "Comparison Type  = $condition->getComparisonType()" .
                   "Comparison Value = $condition->getComparisonValue()";
        }
      }
  
      return $html . '</pre>';
    }
code: private function getEventDetailsHtml(&$details) {
      $html = '<h4>Event Goal</h4><pre>' .
              'Use Event Value = ' . $details->getUseEventValue();
  
      // Get all the event goal conditions.
      $conditions = $details->getEventConditions();
  
      // String condition types.
      $stringTypes = array('CATEGORY', 'ACTION', 'LABEL');
  
      foreach ($conditions as &$condition) {
        $html .= "Event Type = $condition->getEventType()";
  
        $eventType = $condition->getType();
        if (in_array($eventType, $stringTypes)) {
          // Process CATEGORY, ACTION, LABEL.
          $html .= "Match Type = $condition->getMatchType()" .
                   "Expression = $condition->getExpression()";
        } else {
          // Process VALUE.
          $html .= "Comparison Type  = $condition->getComparisonType()" .
                   "Comparison Value = $condition->getComparisonValue()";
        }
      }
  
      return $html . '</pre>';
    }
code_tokens: private function getEventDetailsHtml ( & $ details ) { $ html = '<h4>Event Goal</h4><pre>' . 'Use Event Value = ' . $ details -> getUseEventValue ( ) ; // Get all the event goal conditions. $ conditions = $ details -> getEventConditions ( ) ; // String condition types. $ stringTypes = array ( 'CATEGORY' , 'ACTION' , 'LABEL' ) ; foreach ( $ conditions as & $ condition ) { $ html .= "Event Type = $condition->getEventType()" ; $ eventType = $ condition -> getType ( ) ; if ( in_array ( $ eventType , $ stringTypes ) ) { // Process CATEGORY, ACTION, LABEL. $ html .= "Match Type = $condition->getMatchType()" . "Expression = $condition->getExpression()" ; } else { // Process VALUE. $ html .= "Comparison Type  = $condition->getComparisonType()" . "Comparison Value = $condition->getComparisonValue()" ; } } return $ html . '</pre>' ; }
docstring: Returns important information for event goals.
  @param Google_GoalEventDetails $details The result from the API.
  @return string An HTML representation.
docstring_tokens: Returns important information for event goals .