Skip to content

Commit

Permalink
Replace deprecated getPrefixedId
Browse files Browse the repository at this point in the history
  • Loading branch information
thiemowmde committed Apr 2, 2015
1 parent 9aab4d3 commit 6ef8957
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 @@ -54,7 +54,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 ) {
$profiler = new ProfileSection( __METHOD__ );
Expand Down Expand Up @@ -82,13 +82,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 @@ -149,10 +149,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 ) {
$profiler = new ProfileSection( __METHOD__ );
Expand Down

0 comments on commit 6ef8957

Please sign in to comment.