wikimedia/mediawiki-core

View on GitHub
includes/revisiondelete/RevDelFileItem.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method getApiData has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getApiData( ApiResult $result ) {
        $file = $this->file;
        $user = $this->list->getUser();
        $ret = [
            'title' => $this->list->getPageName(),
Severity: Minor
Found in includes/revisiondelete/RevDelFileItem.php - About 1 hr to fix

    Method setBits has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function setBits( $bits ) {
            # Queue the file op
            # @todo FIXME: Move to LocalFile.php
            if ( $this->isDeleted() ) {
                if ( $bits & File::DELETED_FILE ) {
    Severity: Minor
    Found in includes/revisiondelete/RevDelFileItem.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status