Skip to content

Commit

Permalink
Merge pull request #123 from thiemowmde/undeprecate
Browse files Browse the repository at this point in the history
Replace deprecated getPrefixedId
  • Loading branch information
JeroenDeDauw committed Apr 2, 2015
2 parents 6a274ab + 6ef8957 commit 6aa918d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/PropertySuggester/ResultBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct( ApiResult $result, TermIndex $termIndex, EntityTitl
/**
* @param Suggestion[] $suggestions
* @param string $language
* @return array
* @return array[]
*/
public function createResultArray( array $suggestions, $language ) {
$entries = array();
Expand All @@ -79,13 +79,13 @@ public function createResultArray( array $suggestions, $language ) {

/**
* @param EntityId $id
* @param array $clusteredTerms
* @param array[] $clusteredTerms
* @param Suggestion $suggestion
* @return array $entry
* @return array
*/
private function buildEntry( EntityId $id, array $clusteredTerms, Suggestion $suggestion ) {
$entry = array();
$entry['id'] = $id->getPrefixedId();
$entry['id'] = $id->getSerialization();
$entry['url'] = $this->entityTitleLookup->getTitleForId( $id )->getFullUrl();
$entry['rating'] = $suggestion->getProbability();

Expand Down Expand Up @@ -146,10 +146,10 @@ private function checkAndSetAlias( array &$entry, Term $term ) {
}

/**
* @param array $entries
* @param array $searchResults
* @param array[] $entries
* @param array[] $searchResults
* @param int $resultSize
* @return array representing Json
* @return array[] representing Json
*/
public function mergeWithTraditionalSearchResults( array &$entries, array $searchResults, $resultSize ) {
// Avoid duplicates
Expand Down

0 comments on commit 6aa918d

Please sign in to comment.