Skip to content

Commit a00ef02

Browse files
committed
Improve CS in buildTupleCondition
1 parent 96ce148 commit a00ef02

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/PropertySuggester/Suggesters/SimpleSuggester.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,12 @@ public function suggestByItem( Item $item, $limit, $minProbability, $context ) {
163163
}
164164

165165
/**
166-
* @param int $a
167-
* @param int $b
166+
* @param int|string $propertyId
167+
* @param int|string $itemId
168168
* @return string
169169
*/
170-
private function buildTupleCondition( $pid, $qid ){
171-
$tuple = '(pid1 = '. ( int )$pid .' AND qid1 = '. ( int )$qid .')';
172-
return $tuple;
170+
private function buildTupleCondition( $propertyId, $itemId ) {
171+
return '(pid1 = '. (int)$propertyId .' AND qid1 = '. (int)$itemId .')';
173172
}
174173

175174
/**

0 commit comments

Comments
 (0)