* @return mixed the feature value or null if unset
*/
public function getFeatureData( $feature ) {
- if ( isset( $this->features[$feature] ) ) {
- return $this->features[$feature];
- }
- return null;
+ return $this->features[$feature] ?? null;
}
/**
return static::defaultNearMatcher()->getNearMatch( $searchterm );
}
- /**
- * Do a near match (see SearchEngine::getNearMatch) and wrap it into a
- * SearchResultSet.
- * @deprecated since 1.27; Use SearchEngine::getNearMatcher()
- * @param string $searchterm
- * @return SearchResultSet
- */
- public static function getNearMatchResultSet( $searchterm ) {
- return static::defaultNearMatcher()->getNearMatchResultSet( $searchterm );
- }
-
/**
* Get chars legal for search
* NOTE: usage as static is deprecated and preserved only as BC measure