original_string: public function setAccept($accept): void
      {
          // allow accept map
          $acceptMap = [
              'ANY' => Request::TYPE_ANY,
              'HTML' => Request::TYPE_HTML,
              'JSON' => Request::TYPE_JSON
          ];
  
          $accept = strtoupper($accept);
  
          if (isset($acceptMap[$accept])) {
              $this->accept[] = $acceptMap[$accept];
          }
      }
code: public function setAccept($accept): void
      {
          // allow accept map
          $acceptMap = [
              'ANY' => Request::TYPE_ANY,
              'HTML' => Request::TYPE_HTML,
              'JSON' => Request::TYPE_JSON
          ];
  
          $accept = strtoupper($accept);
  
          if (isset($acceptMap[$accept])) {
              $this->accept[] = $acceptMap[$accept];
          }
      }
code_tokens: public function setAccept ( $ accept ) : void { // allow accept map $ acceptMap = [ 'ANY' => Request :: TYPE_ANY , 'HTML' => Request :: TYPE_HTML , 'JSON' => Request :: TYPE_JSON ] ; $ accept = strtoupper ( $ accept ) ; if ( isset ( $ acceptMap [ $ accept ] ) ) { $ this -> accept [ ] = $ acceptMap [ $ accept ] ; } }
docstring: Set accepted types
  
  @param  string $accept
  
  @return void
docstring_tokens: Set accepted types