original_string: protected function _normalize($obs)
      {
          $add = array();
  
          if (!($obs instanceof Horde_Mail_Rfc822_List) &&
              !is_array($obs)) {
              $obs = array($obs);
          }
  
          foreach ($obs as $val) {
              if (is_string($val)) {
                  $rfc822 = new Horde_Mail_Rfc822();
                  $val = $rfc822->parseAddressList($val);
              }
  
              if ($val instanceof Horde_Mail_Rfc822_List) {
                  $val->setIteratorFilter(self::BASE_ELEMENTS);
                  foreach ($val as $val2) {
                      $add[] = $val2;
                  }
              } elseif ($val instanceof Horde_Mail_Rfc822_Object) {
                  $add[] = $val;
              }
          }
  
          return $add;
      }
code: protected function _normalize($obs)
      {
          $add = array();
  
          if (!($obs instanceof Horde_Mail_Rfc822_List) &&
              !is_array($obs)) {
              $obs = array($obs);
          }
  
          foreach ($obs as $val) {
              if (is_string($val)) {
                  $rfc822 = new Horde_Mail_Rfc822();
                  $val = $rfc822->parseAddressList($val);
              }
  
              if ($val instanceof Horde_Mail_Rfc822_List) {
                  $val->setIteratorFilter(self::BASE_ELEMENTS);
                  foreach ($val as $val2) {
                      $add[] = $val2;
                  }
              } elseif ($val instanceof Horde_Mail_Rfc822_Object) {
                  $add[] = $val;
              }
          }
  
          return $add;
      }
code_tokens: protected function _normalize ( $ obs ) { $ add = array ( ) ; if ( ! ( $ obs instanceof Horde_Mail_Rfc822_List ) && ! is_array ( $ obs ) ) { $ obs = array ( $ obs ) ; } foreach ( $ obs as $ val ) { if ( is_string ( $ val ) ) { $ rfc822 = new Horde_Mail_Rfc822 ( ) ; $ val = $ rfc822 -> parseAddressList ( $ val ) ; } if ( $ val instanceof Horde_Mail_Rfc822_List ) { $ val -> setIteratorFilter ( self :: BASE_ELEMENTS ) ; foreach ( $ val as $ val2 ) { $ add [ ] = $ val2 ; } } elseif ( $ val instanceof Horde_Mail_Rfc822_Object ) { $ add [ ] = $ val ; } } return $ add ; }
docstring: Normalize objects to add to list.
  
  @param mixed $obs  Address data to store in this object.
  
  @return array  Entries to add.
docstring_tokens: Normalize objects to add to list .