original_string: public function find_all(int $limitfrom = 0, int $limitnum = 0) : array {
          global $DB;
          $records = $DB->get_records($this->favouritetable, null, '', '*', $limitfrom, $limitnum);
          return $this->get_list_of_favourites_from_records($records);
      }
code: public function find_all(int $limitfrom = 0, int $limitnum = 0) : array {
          global $DB;
          $records = $DB->get_records($this->favouritetable, null, '', '*', $limitfrom, $limitnum);
          return $this->get_list_of_favourites_from_records($records);
      }
code_tokens: public function find_all ( int $ limitfrom = 0 , int $ limitnum = 0 ) : array { global $ DB ; $ records = $ DB -> get_records ( $ this -> favouritetable , null , '' , '*' , $ limitfrom , $ limitnum ) ; return $ this -> get_list_of_favourites_from_records ( $ records ) ; }
docstring: Return all items in this repository, as an array, indexed by id.
  
  @param int $limitfrom optional pagination control for returning a subset of records, starting at this point.
  @param int $limitnum optional pagination control for returning a subset comprising this many records.
  @return array the list of all favourites stored within this repository.
  @throws \dml_exception if any database errors are encountered.
docstring_tokens: Return all items in this repository as an array indexed by id .