original_string: private function setModifiedSince(Request $request, Item $item)
      {
          if ($modifiedAt = $item->getCreation()) {
              $modifiedAt->setTimezone(new DateTimeZone('GMT'));
  
              $date = sprintf('%s GMT', $modifiedAt->format('l, d-M-y H:i:s'));
  
              $request->addHeader('If-Modified-Since', $date);
          }
      }
code: private function setModifiedSince(Request $request, Item $item)
      {
          if ($modifiedAt = $item->getCreation()) {
              $modifiedAt->setTimezone(new DateTimeZone('GMT'));
  
              $date = sprintf('%s GMT', $modifiedAt->format('l, d-M-y H:i:s'));
  
              $request->addHeader('If-Modified-Since', $date);
          }
      }
code_tokens: private function setModifiedSince ( Request $ request , Item $ item ) { if ( $ modifiedAt = $ item -> getCreation ( ) ) { $ modifiedAt -> setTimezone ( new DateTimeZone ( 'GMT' ) ) ; $ date = sprintf ( '%s GMT' , $ modifiedAt -> format ( 'l, d-M-y H:i:s' ) ) ; $ request -> addHeader ( 'If-Modified-Since' , $ date ) ; } }
docstring: Sets If-Modified-Since header if creation time is available
  
  @param Request $request
  @param Item    $item
docstring_tokens: Sets If - Modified - Since header if creation time is available