original_string: protected function updateCacheControlHeader(): void
      {
          $parts = [];
          ksort($this->container);
          foreach ($this->container as $key => $value) {
              if (true === $value) {
                  $parts[] = $key;
              } else {
                  if (preg_match('#[^a-zA-Z0-9._-]#', (string)$value)) {
                      $value = '"' . $value . '"';
                  }
                  $parts[] = "$key=$value";
              }
          }
          if (\count($parts)) {
              $this->response->setHeader('Cache-Control', implode(', ', $parts));
          }
      }
code: protected function updateCacheControlHeader(): void
      {
          $parts = [];
          ksort($this->container);
          foreach ($this->container as $key => $value) {
              if (true === $value) {
                  $parts[] = $key;
              } else {
                  if (preg_match('#[^a-zA-Z0-9._-]#', (string)$value)) {
                      $value = '"' . $value . '"';
                  }
                  $parts[] = "$key=$value";
              }
          }
          if (\count($parts)) {
              $this->response->setHeader('Cache-Control', implode(', ', $parts));
          }
      }
code_tokens: protected function updateCacheControlHeader ( ) : void { $ parts = [ ] ; ksort ( $ this -> container ) ; foreach ( $ this -> container as $ key => $ value ) { if ( true === $ value ) { $ parts [ ] = $ key ; } else { if ( preg_match ( '#[^a-zA-Z0-9._-]#' , ( string ) $ value ) ) { $ value = '"' . $ value . '"' ; } $ parts [ ] = "$key=$value" ; } } if ( \ count ( $ parts ) ) { $ this -> response -> setHeader ( 'Cache-Control' , implode ( ', ' , $ parts ) ) ; } }
docstring: Prepare Cache-Control header
  
  @return void
docstring_tokens: Prepare Cache - Control header