original_string: public function add_refs($item, array $ids) {
          $this->validate_item($item);
          foreach ($ids as $id) {
              $this->refs[$item][$id] = true;
          }
      }
code: public function add_refs($item, array $ids) {
          $this->validate_item($item);
          foreach ($ids as $id) {
              $this->refs[$item][$id] = true;
          }
      }
code_tokens: public function add_refs ( $ item , array $ ids ) { $ this -> validate_item ( $ item ) ; foreach ( $ ids as $ id ) { $ this -> refs [ $ item ] [ $ id ] = true ; } }
docstring: Adds a bulk of references
  
  @param string $item the name of referenced item (like user, file, scale, outcome or grade_item)
  @param array $ids the list of referenced ids
docstring_tokens: Adds a bulk of references