original_string: public static function update_date($courseid, $timeshift) {
          if ($criteria = self::fetch(array('course' => $courseid))) {
              $criteria->timeend = $criteria->timeend + $timeshift;
              $criteria->update();
          }
      }
code: public static function update_date($courseid, $timeshift) {
          if ($criteria = self::fetch(array('course' => $courseid))) {
              $criteria->timeend = $criteria->timeend + $timeshift;
              $criteria->update();
          }
      }
code_tokens: public static function update_date ( $ courseid , $ timeshift ) { if ( $ criteria = self :: fetch ( array ( 'course' => $ courseid ) ) ) { $ criteria -> timeend = $ criteria -> timeend + $ timeshift ; $ criteria -> update ( ) ; } }
docstring: Shift the date when resetting course.
  
  @param int $courseid the course id
  @param int $timeshift number of seconds to shift date
  @return boolean was the operation successful?
docstring_tokens: Shift the date when resetting course .