Showing 11,545 of 11,545 total issues
Method cancelAtomic
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final public function cancelAtomic(
$fname = __METHOD__,
AtomicSectionIdentifier $sectionId = null
) {
$this->transactionManager->onCancelAtomicBeforeCriticalSection( $this, $fname );
Method open
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function open( $server, $user, $password, $db, $schema, $tablePrefix ) {
if ( !function_exists( 'pg_connect' ) ) {
throw $this->newExceptionAfterConnectError(
"Postgres functions missing, have you compiled PHP with the --with-pgsql\n" .
"option? (Note: if you recently installed PHP, you may need to restart your\n" .
Method reuseOrOpenConnectionForNewRef
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function reuseOrOpenConnectionForNewRef( $i, DatabaseDomain $domain, $flags = 0 ) {
// Figure out which connection pool to use based on the flags
if ( $this->fieldHasBit( $flags, self::CONN_UNTRACKED_GAUGE ) ) {
// Use low timeouts, use autocommit mode, ignore transaction rounds
$category = self::CATEGORY_GAUGE;
Method doAutoblock
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function doAutoblock( DatabaseBlock $parentBlock, $autoblockIP ) {
// If autoblocks are disabled, go away.
if ( !$parentBlock->isAutoblocking() ) {
return false;
}
Method __construct
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(
LinkRenderer $linkRenderer,
LinkBatchFactory $linkBatchFactory,
HookContainer $hookContainer,
RevisionStore $revisionStore,
Method getInputHTML
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputHTML( $value ) {
$html = '';
$tableContents = '';
$rows = $this->mParams['rows'];
$columns = $this->mParams['columns'];
Method modifyDisplayQueryBuilder
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function modifyDisplayQueryBuilder(
SelectQueryBuilder $queryBuilder,
$table,
$filter_tag = '',
bool $exclude = false
Method wfThumbIsStandard
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wfThumbIsStandard( File $file, array $params ) {
global $wgThumbLimits, $wgImageLimits, $wgResponsiveImages;
$multipliers = [ 1 ];
if ( $wgResponsiveImages ) {
Method trySubmit
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function trySubmit() {
$status = false;
$form = $this->getAuthForm( $this->authRequests, $this->authAction );
$form->setSubmitCallback( [ $this, 'handleFormSubmit' ] );
Method registerFilters
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function registerFilters() {
$this->registerFiltersFromDefinitions( $this->filterGroupDefinitions );
// Make sure this is not being transcluded (we don't want to show this
// information to all users just because the user that saves the edit can
Method execute
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
global $wgLang;
$r = $this->parent->request;
$userLang = $r->getVal( 'uselang' );
$contLang = $r->getVal( 'ContLang' );
Method execute
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$this->mParams = $this->extractRequestParams();
// Instantiate requested modules
$allModules = [];
Method load
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function load() {
$this->loadStatus = new Status();
$request = $this->getRequest();
$this->searchEngineType = $request->getVal( 'srbackend' );
Method getUploadForm
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getUploadForm( $message = '', $sessionKey = '', $hideIgnoreWarning = false ) {
# Initialize form
$form = new UploadForm(
[
'watch' => $this->getWatchCheck(),
Method cleanUpTocLine
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function cleanUpTocLine( Node $container ) {
'@phan-var Element|DocumentFragment $container'; // @var Element|DocumentFragment $container
# Strip out HTML
# Allowed tags are:
# * <sup> and <sub> (T10393)
Method upload
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function upload( $src, $comment, $pageText, $flags = 0, $props = false,
$timestamp = false, Authority $uploader = null, $tags = [],
$createNullRevision = true, $revert = false
) {
if ( $this->getRepo()->getReadOnlyReason() !== false ) {
Method pb2pb
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function pb2pb( array $attribs ) {
$opts = $attribs['opts'];
$revision = $opts['previous'] ?? $opts['original'] ?? null;
if ( !isset( $revision['html'] ) ) {
Method getJsData
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getJsData() {
$output = [
'name' => $this->name,
'type' => $this->type,
'fullCoverage' => $this->isFullCoverage,
Method buildItems
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function buildItems( $rows ) {
$items = [];
# Merge adjacent edits by one user
$sorted = [];
Method start
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function start() {
// Trap SIGTERM
pcntl_signal( SIGTERM, [ $this, 'handleTermSignal' ], false );
do {