includes/Query/DeepcatFeature.php
Method fetchCategories
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function fetchCategories( $rootCategory, WarningCollector $warningCollector ) {
$title = Title::makeTitleSafe( NS_CATEGORY, $rootCategory );
if ( $title === null ) {
$warningCollector->addWarning( 'cirrussearch-feature-deepcat-invalid-title' );
return [];
Method doApply
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function doApply( SearchContext $context, $key, $value, $quotedValue, $negated ) {