original_string: public function addHeaders(array $headers)
      {
  
          foreach ($headers as $key => $value) {
              $header = NULL;
              //Handle Array of String based Headers
              if (is_numeric($key) && strpos($value,":") !== FALSE) {
                  $arr = explode(":",$value,2);
                  if (count($arr)==2){
                      $header = $arr[0];
                      $value = trim($arr[1]);
                  }
              } else {
                  $header = $key;
              }
              if ($header !== NULL){
                  $this->addHeader($header, $value);
              }
          }
          return $this;
      }
code: public function addHeaders(array $headers)
      {
  
          foreach ($headers as $key => $value) {
              $header = NULL;
              //Handle Array of String based Headers
              if (is_numeric($key) && strpos($value,":") !== FALSE) {
                  $arr = explode(":",$value,2);
                  if (count($arr)==2){
                      $header = $arr[0];
                      $value = trim($arr[1]);
                  }
              } else {
                  $header = $key;
              }
              if ($header !== NULL){
                  $this->addHeader($header, $value);
              }
          }
          return $this;
      }
code_tokens: public function addHeaders ( array $ headers ) { foreach ( $ headers as $ key => $ value ) { $ header = NULL ; //Handle Array of String based Headers if ( is_numeric ( $ key ) && strpos ( $ value , ":" ) !== FALSE ) { $ arr = explode ( ":" , $ value , 2 ) ; if ( count ( $ arr ) == 2 ) { $ header = $ arr [ 0 ] ; $ value = trim ( $ arr [ 1 ] ) ; } } else { $ header = $ key ; } if ( $ header !== NULL ) { $ this -> addHeader ( $ header , $ value ) ; } } return $ this ; }
docstring: Add multiple headers via an array
  @param array $headers
  @return $this
docstring_tokens: Add multiple headers via an array