original_string: protected function get_list_of_favourites_from_records(array $records) {
          $list = [];
          foreach ($records as $index => $record) {
              $list[$index] = $this->get_favourite_from_record($record);
          }
          return $list;
      }
code: protected function get_list_of_favourites_from_records(array $records) {
          $list = [];
          foreach ($records as $index => $record) {
              $list[$index] = $this->get_favourite_from_record($record);
          }
          return $list;
      }
code_tokens: protected function get_list_of_favourites_from_records ( array $ records ) { $ list = [ ] ; foreach ( $ records as $ index => $ record ) { $ list [ $ index ] = $ this -> get_favourite_from_record ( $ record ) ; } return $ list ; }
docstring: Get a list of favourite objects, based on a list of records.
  @param array $records the record we wish to hydrate.
  @return array the list of favourites.
docstring_tokens: Get a list of favourite objects based on a list of records .