original_string: protected function determineHeaders()
      {
          $params = $this->getServerParams();
          $headers = [];
          
          foreach ($params as $key => $value) {
              $name = $this->serverParamKeyToHeaderName($key);
              
              if (isset($name) && is_string($value)) {
                  $headers[$name] = [$value];
              }
          }
          
          return $headers;
      }
code: protected function determineHeaders()
      {
          $params = $this->getServerParams();
          $headers = [];
          
          foreach ($params as $key => $value) {
              $name = $this->serverParamKeyToHeaderName($key);
              
              if (isset($name) && is_string($value)) {
                  $headers[$name] = [$value];
              }
          }
          
          return $headers;
      }
code_tokens: protected function determineHeaders ( ) { $ params = $ this -> getServerParams ( ) ; $ headers = [ ] ; foreach ( $ params as $ key => $ value ) { $ name = $ this -> serverParamKeyToHeaderName ( $ key ) ; if ( isset ( $ name ) && is_string ( $ value ) ) { $ headers [ $ name ] = [ $ value ] ; } } return $ headers ; }
docstring: Determine the headers based on the server parameters
  
  @return array headers array with structure $key => [$value]
docstring_tokens: Determine the headers based on the server parameters