original_string: public function get_time_left_display($attempt, $timenow) {
          $timeleft = false;
          foreach ($this->rules as $rule) {
              $ruletimeleft = $rule->time_left_display($attempt, $timenow);
              if ($ruletimeleft !== false && ($timeleft === false || $ruletimeleft < $timeleft)) {
                  $timeleft = $ruletimeleft;
              }
          }
          return $timeleft;
      }
code: public function get_time_left_display($attempt, $timenow) {
          $timeleft = false;
          foreach ($this->rules as $rule) {
              $ruletimeleft = $rule->time_left_display($attempt, $timenow);
              if ($ruletimeleft !== false && ($timeleft === false || $ruletimeleft < $timeleft)) {
                  $timeleft = $ruletimeleft;
              }
          }
          return $timeleft;
      }
code_tokens: public function get_time_left_display ( $ attempt , $ timenow ) { $ timeleft = false ; foreach ( $ this -> rules as $ rule ) { $ ruletimeleft = $ rule -> time_left_display ( $ attempt , $ timenow ) ; if ( $ ruletimeleft !== false && ( $ timeleft === false || $ ruletimeleft < $ timeleft ) ) { $ timeleft = $ ruletimeleft ; } } return $ timeleft ; }
docstring: Compute what should be displayed to the user for time remaining in this attempt.
  
  @param object $attempt the data from the relevant quiz_attempts row.
  @param int $timenow the time to consider as 'now'.
  @return int|false the number of seconds remaining for this attempt.
  False if no limit should be displayed.
docstring_tokens: Compute what should be displayed to the user for time remaining in this attempt .