minor fixes
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
2eff174deb
commit
f446ec83dd
|
@ -79,7 +79,7 @@ class SearchResult implements ISearchResult {
|
||||||
public function unsetResult(SearchResultType $type) {
|
public function unsetResult(SearchResultType $type) {
|
||||||
$type = $type->getLabel();
|
$type = $type->getLabel();
|
||||||
$this->result[$type] = [];
|
$this->result[$type] = [];
|
||||||
if(isset($this->$result['exact'][$type])) {
|
if(isset($this->result['exact'][$type])) {
|
||||||
$this->result['exact'][$type] = [];
|
$this->result['exact'][$type] = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,7 @@ class SearchResultType {
|
||||||
* @param $type
|
* @param $type
|
||||||
* @return string
|
* @return string
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
|
* @since 13.0.0
|
||||||
*/
|
*/
|
||||||
protected function getValidatedType($type) {
|
protected function getValidatedType($type) {
|
||||||
$type = trim(strval($type));
|
$type = trim(strval($type));
|
||||||
|
|
Loading…
Reference in New Issue