original_string: protected function addValidAttributes( $attrs ) {
          foreach( $attrs as $attr ) {
              //add if string
              if( is_string( $attr ) ) {
                  $this->validAttributes[] = $attr;
              }
          }
      }
code: protected function addValidAttributes( $attrs ) {
          foreach( $attrs as $attr ) {
              //add if string
              if( is_string( $attr ) ) {
                  $this->validAttributes[] = $attr;
              }
          }
      }
code_tokens: protected function addValidAttributes ( $ attrs ) { foreach ( $ attrs as $ attr ) { //add if string
   if ( is_string ( $ attr ) ) { $ this -> validAttributes [ ] = $ attr ; } } }
docstring: Adds array of attributes to the valid attributes.
  
  @param $attrs an array of attributes
docstring_tokens: Adds array of attributes to the valid attributes .