original_string: protected function make_rules($quizobj, $timenow, $canignoretimelimits) {
  
          $rules = array();
          foreach (self::get_rule_classes() as $ruleclass) {
              $rule = $ruleclass::make($quizobj, $timenow, $canignoretimelimits);
              if ($rule) {
                  $rules[$ruleclass] = $rule;
              }
          }
  
          $superceededrules = array();
          foreach ($rules as $rule) {
              $superceededrules += $rule->get_superceded_rules();
          }
  
          foreach ($superceededrules as $superceededrule) {
              unset($rules['quizaccess_' . $superceededrule]);
          }
  
          return $rules;
      }
code: protected function make_rules($quizobj, $timenow, $canignoretimelimits) {
  
          $rules = array();
          foreach (self::get_rule_classes() as $ruleclass) {
              $rule = $ruleclass::make($quizobj, $timenow, $canignoretimelimits);
              if ($rule) {
                  $rules[$ruleclass] = $rule;
              }
          }
  
          $superceededrules = array();
          foreach ($rules as $rule) {
              $superceededrules += $rule->get_superceded_rules();
          }
  
          foreach ($superceededrules as $superceededrule) {
              unset($rules['quizaccess_' . $superceededrule]);
          }
  
          return $rules;
      }
code_tokens: protected function make_rules ( $ quizobj , $ timenow , $ canignoretimelimits ) { $ rules = array ( ) ; foreach ( self :: get_rule_classes ( ) as $ ruleclass ) { $ rule = $ ruleclass :: make ( $ quizobj , $ timenow , $ canignoretimelimits ) ; if ( $ rule ) { $ rules [ $ ruleclass ] = $ rule ; } } $ superceededrules = array ( ) ; foreach ( $ rules as $ rule ) { $ superceededrules += $ rule -> get_superceded_rules ( ) ; } foreach ( $ superceededrules as $ superceededrule ) { unset ( $ rules [ 'quizaccess_' . $ superceededrule ] ) ; } return $ rules ; }
docstring: Make all the rules relevant to a particular quiz.
  @param quiz $quizobj information about the quiz in question.
  @param int $timenow the time that should be considered as 'now'.
  @param bool $canignoretimelimits whether the current user is exempt from
  time limits by the mod/quiz:ignoretimelimits capability.
  @return array of {@link quiz_access_rule_base}s.
docstring_tokens: Make all the rules relevant to a particular quiz .