original_string: public function is_finished($numprevattempts, $lastattempt) {
          foreach ($this->rules as $rule) {
              if ($rule->is_finished($numprevattempts, $lastattempt)) {
                  return true;
              }
          }
          return false;
      }
code: public function is_finished($numprevattempts, $lastattempt) {
          foreach ($this->rules as $rule) {
              if ($rule->is_finished($numprevattempts, $lastattempt)) {
                  return true;
              }
          }
          return false;
      }
code_tokens: public function is_finished ( $ numprevattempts , $ lastattempt ) { foreach ( $ this -> rules as $ rule ) { if ( $ rule -> is_finished ( $ numprevattempts , $ lastattempt ) ) { return true ; } } return false ; }
docstring: Do any of the rules mean that this student will no be allowed any further attempts at this
  quiz. Used, for example, to change the label by the grade displayed on the view page from
  'your current grade is' to 'your final grade is'.
  
  @param int $numattempts the number of previous attempts this user has made.
  @param object $lastattempt information about the user's last completed attempt.
  @return bool true if there is no way the user will ever be allowed to attempt
  this quiz again.
docstring_tokens: Do any of the rules mean that this student will no be allowed any further attempts at this quiz . Used for example to change the label by the grade displayed on the view page from your current grade is to your final grade is .