includes/search/searchwidgets/SearchFormWidget.php
File SearchFormWidget.php
has 297 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace MediaWiki\Search\SearchWidgets;
use MediaWiki\Config\ServiceOptions;
Method shortDialogHtml
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function shortDialogHtml(
$profile,
$term,
$numResults,
$totalResults,
Method profileTabsHtml
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function profileTabsHtml( $profile, $term ) {
$bareterm = $this->startsWithImage( $term )
? substr( $term, strpos( $term, ':' ) + 1 )
: $term;
$lang = $this->specialSearch->getLanguage();
Method render
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$profile,
$term,
$numResults,
$totalResults,
$offset,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ServiceOptions $options,
SpecialSearch $specialSearch,
SearchEngineConfig $searchConfig,
HookContainer $hookContainer,
ILanguageConverter $languageConverter,
Method shortDialogHtml
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$profile,
$term,
$numResults,
$totalResults,
$offset,