original_string: public function setExpires($date): void
      {
          if ($date instanceof \DateTime) {
              $date = clone $date;
          } else {
              $date = new \DateTime($date);
          }
  
          $date->setTimezone(new \DateTimeZone('UTC'));
          $this->response->setHeader('Expires', $date->format('D, d M Y H:i:s') . ' GMT');
      }
code: public function setExpires($date): void
      {
          if ($date instanceof \DateTime) {
              $date = clone $date;
          } else {
              $date = new \DateTime($date);
          }
  
          $date->setTimezone(new \DateTimeZone('UTC'));
          $this->response->setHeader('Expires', $date->format('D, d M Y H:i:s') . ' GMT');
      }
code_tokens: public function setExpires ( $ date ) : void { if ( $ date instanceof \ DateTime ) { $ date = clone $ date ; } else { $ date = new \ DateTime ( $ date ) ; } $ date -> setTimezone ( new \ DateTimeZone ( 'UTC' ) ) ; $ this -> response -> setHeader ( 'Expires' , $ date -> format ( 'D, d M Y H:i:s' ) . ' GMT' ) ; }
docstring: Sets the Expires HTTP header with a DateTime instance
  
  @param  \DateTime|string $date A \DateTime instance or date as string
  
  @return void
docstring_tokens: Sets the Expires HTTP header with a DateTime instance